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: check output during CLI integration tests #2249
Conversation
Pushed a minor fix to address a test failure: on some machines the directory traversal would happen differently, causing the expected output of some should-fail tests to slightly differ from the received output based on which files exist/were visited first, so I've added a new directory under tests/client/data rather than hackily using the workspace root itself as test input. |
This also slightly improves the OIDC mock server to fix a test, and allows setting an option to `enarx user register` via an env var. Signed-off-by: bstrie <865233+bstrie@users.noreply.github.com>
One of the tests is testing JSON output, which was causing test failures to due the nondeterministic order of array elements. I've pushed a fix for that, moving that test to earlier in the script to a point where there's only one element in the returned array, making the output deterministic. |
Seems like we could use a JSON normalizer for comparison. |
We may need that in the future, as we begin more aggressively testing CLI output. But for now it should be fine. |
Codecov Report
@@ Coverage Diff @@
## main #2249 +/- ##
==========================================
- Coverage 61.05% 61.04% -0.01%
==========================================
Files 197 197
Lines 12313 12313
==========================================
- Hits 7518 7517 -1
- Misses 4795 4796 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This also:
enarx user register
via an env varSigned-off-by: bstrie 865233+bstrie@users.noreply.github.com