-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add pytest automated testing #25
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vincinator
force-pushed
the
add-automated-testing
branch
from
August 12, 2024 11:45
c1a2717
to
cd563e0
Compare
Vincinator
force-pushed
the
add-automated-testing
branch
from
August 14, 2024 06:49
626331f
to
cd084d9
Compare
Vincinator
force-pushed
the
add-automated-testing
branch
from
August 15, 2024 05:12
38df5a3
to
83c84ac
Compare
Vincinator
force-pushed
the
add-automated-testing
branch
from
August 15, 2024 05:14
83c84ac
to
b699e7a
Compare
Vincinator
force-pushed
the
add-automated-testing
branch
from
August 15, 2024 05:21
08f4b27
to
f4edd06
Compare
Vincinator
added a commit
that referenced
this pull request
Aug 15, 2024
Adds Pytest setup that is run on GitHub actions, and can also run locally. A local oci-registry is started for each test individually if required. CLI commands from gl-oci are tested by utilising the click.testing.CliRunner.invoke[1], so the actual user interface is tested. ephemeral pub/priv key pair is generated per test session. On test session teardown certs are removed again (useful for local development, does not matter in gh actions) On test case teardown zot persistent state stored in output/zot is removed, which is required to start with a fresh zot registry for the next test (to avoid side-effects of tests affecting the next test) [1] https://click.palletsprojects.com/en/7.x/api/#click.testing.CliRunner.invoke
Vincinator
added a commit
that referenced
this pull request
Aug 15, 2024
Adds Pytest setup that is run on GitHub actions, and can also run locally. A local oci-registry is started for each test individually if required. CLI commands from gl-oci are tested by utilising the click.testing.CliRunner.invoke[1], so the actual user interface is tested. ephemeral pub/priv key pair is generated per test session. On test session teardown certs are removed again (useful for local development, does not matter in gh actions) On test case teardown zot persistent state stored in output/zot is removed, which is required to start with a fresh zot registry for the next test (to avoid side-effects of tests affecting the next test) [1] https://click.palletsprojects.com/en/7.x/api/#click.testing.CliRunner.invoke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds tests by using ZOT as local OCI registry.
🚧 Work in Progress
Notes
pytest
orpoetry run pytest