Skip to content

fix(inputs.opcua): Fix integration test #17044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged

Conversation

marcv81
Copy link
Contributor

@marcv81 marcv81 commented May 20, 2025

Summary

There are 2 problems with the current implementation.

Once the client is connected, changing its URL does not trigger an error because the connection is already established, and the URL is only used when establishing a new connection.

Reconnecting uses the URL from o.client.OpcUAClient.Config.Endpoint, not from o.client.Config.OpcUAClientConfig.Endpoint.

Checklist

  • No AI generated code was used in this PR

Related issues

resolves #17043

@telegraf-tiger telegraf-tiger bot added area/opcua fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels May 20, 2025
Problems with the current implementation.

Once the client is connected, changing its URL does not trigger an error
because the connection is already established, and the URL is only used
when establishing a new connection.

Reconnecting uses the URL from `o.client.OpcUAClient.Config.Endpoint`,
not from `o.client.Config.OpcUAClientConfig.Endpoint`.
@telegraf-tiger
Copy link
Contributor

Copy link
Contributor

@skartikey skartikey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcv81 Thanks for the contribution!

@skartikey skartikey added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label May 20, 2025
@skartikey skartikey changed the title fix(inputs.opcua): Fix the unit tests fix(inputs.opcua): Fix integration test May 20, 2025
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @marcv81!

@srebhan srebhan merged commit 0bc8e10 into influxdata:master May 21, 2025
29 checks passed
@github-actions github-actions bot added this to the v1.35.0 milestone May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/opcua fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpcUA unit tests are broken
4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy