Skip to content
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

test: Implement an integration test for simple-server #357

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AiyionPrime
Copy link
Contributor

@AiyionPrime AiyionPrime commented Jul 2, 2024

which verifies it passes configuration parsing and binds to the configured port in time.

This intends verify on a regular basis that the server fires up properly.
Which in turn closes #152, I think.

@lsabi I hope this test helps verifying your problem and prevent regressions,
but at the moment this appears to pass locally.

This test fires up the server, lets it bind the port, kills it and marks the test result accordingly.

@AiyionPrime
Copy link
Contributor Author

@einarmo I hope to extend upon this tomorrow and spawn a client simultaneously and make sure its stdout contains value changes.

@AiyionPrime
Copy link
Contributor Author

AiyionPrime commented Jul 2, 2024

@AiyionPrime
Copy link
Contributor Author

Looks like I need to mark OpenSSL in the Windows run, but Linux appears to be fine.
Any suggestions @locka99 ?

@AiyionPrime AiyionPrime force-pushed the test/simple_server_starts branch 5 times, most recently from 895ace1 to 28e6dac Compare July 25, 2024 15:44
@AiyionPrime AiyionPrime marked this pull request as ready for review July 25, 2024 15:52
@AiyionPrime AiyionPrime force-pushed the test/simple_server_starts branch 3 times, most recently from 3638b90 to 4c735d0 Compare July 30, 2024 14:11
to spawn the sample with opcua/test-vendored-openssl if intended.
Without this invocation of the sample will fail on hosts without OpenSSL installed.
that verifies it passes configuration parsing
and binds to the configured port in time.

The test helper which checks for open ports by trying to bind them,
does not work on windows, which is why the test is linux-only for now.
@AiyionPrime
Copy link
Contributor Author

The Cargo.lock appears to be unclean; I'll provide a CI step to prevent this.

@AiyionPrime AiyionPrime marked this pull request as draft July 31, 2024 13:15
@AiyionPrime
Copy link
Contributor Author

Might have been an issue during rebases; nevertheless #372 contains a check for cargo build induced changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simple-server failed to parse config
1 participant