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

Write Customization tests in python #2918

Merged
merged 18 commits into from
Mar 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add newline to eof
  • Loading branch information
hubertdeng123 committed Mar 25, 2024
commit 867ed00e5ad6b8afd8df84ba52a167ecb14bbe5a
2 changes: 1 addition & 1 deletion _integration-test/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,6 @@
for command in commands:
result = subprocess.run(command, check=False)
if os.getenv("TEST_CUSTOMIZATIONS", "False") == "True":
assert result.returncode == 0

Check warning on line 242 in _integration-test/test_run.py

View check run for this annotation

Codecov / codecov/patch

_integration-test/test_run.py#L242

Added line #L242 was not covered by tests
Copy link
Contributor

Choose a reason for hiding this comment

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

Does test_customization run in both matrix variants?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it does. If customizations enabled, it checks to ensure that they are truly enabled by making sure a dependency can be imported that is included in the custom image (ldap). If not, it checks to ensure that an error is thrown when trying to import a dependency that comes from the custom image.

else:
assert result.returncode != 0
assert result.returncode != 0
Loading