generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 8
tests: Add bootc end-to-end validation test #58
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6d5944b
ci: Ignore "passt" codespell complaint
martinpitt 505f439
ci: Bump tox-lsr to 3.10.0
martinpitt d6b1ece
ci: Use defined $TOX_ARGS in qemu-kvm-integration-tests
martinpitt 8e008d3
ci: Update to podman 5.x in qemu-kvm-integration-tests bootc tests
martinpitt 28579c0
ci: Add support for bootc end-to-end validation tests
martinpitt 42df7f1
tests: Add bootc end-to-end validation test
martinpitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| passt |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # SPDX-License-Identifier: MIT | ||
| --- | ||
| - name: Bootc end-to-end test | ||
| hosts: all | ||
| tags: | ||
| - tests::bootc-e2e | ||
| gather_facts: false # test that role works in this case | ||
| tasks: | ||
| - name: Bootc image build preparation | ||
| when: ansible_connection == "buildah" | ||
| block: | ||
| - name: Run the role | ||
| include_role: | ||
| name: linux-system-roles.sudo | ||
| vars: | ||
| sudo_check_if_configured: false | ||
|
|
||
| - name: Create QEMU deployment | ||
| delegate_to: localhost | ||
| command: "{{ lsr_scriptdir }}/bootc-buildah-qcow.sh {{ ansible_host }}" | ||
| changed_when: true | ||
richm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Validation of deployed image | ||
| when: ansible_connection != "buildah" | ||
| block: | ||
| - name: Check header for ansible_managed, fingerprint | ||
| include_tasks: tasks/check_present_header.yml | ||
| vars: | ||
| __file: /etc/sudoers | ||
| __fingerprint: system_role:sudo | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you remove previous skip tags here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also use
TOX_ARGS: "--skip-tags tests::infiniband,tests::nvme,tests::scsi"for this.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because that's the exact value of the defined
TOX_ARGS. The workflow defines that at the top but never actually used it. And it seems sensible to be able to parameterize it. Otherwise we could drop the unused definition at the top and repeat the value (or not, it's not super important for bootc e2e tests)