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: Error fix #678

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion tests/booted/002-test-image-pushpull-upgrade.nu
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def initial_build [] {
let td = mktemp -d
cd $td

do --ignore-errors { podman image rm localhost/bootc o+e>| ignore }
bootc image copy-to-storage
let img = podman image inspect localhost/bootc | from json

Expand Down
32 changes: 5 additions & 27 deletions tests/e2e/playbooks/rollback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,13 @@
wait_for_connection:
delay: 30

- name: check bootc status
command: bootc status
ignore_errors: true
become: true

- name: rollback checking
block:
- name: get booted cachedupdate imageDigest
shell: bootc status --json | jq -r '.status.booted.cachedUpdate.imageDigest'
register: result_booted_cachedupdate_digest
become: true

- name: get rollback image digest
shell: bootc status --json | jq -r '.status.rollback.image.imageDigest'
register: result_rollback_image_digest
become: true

- name: check booted cachedUpdate and rollback image digest
block:
- assert:
that:
- result_booted_cachedupdate_digest.stdout == result_rollback_image_digest.stdout
fail_msg: "rollback failed"
success_msg: "rollback passed"
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
when:
- air_gapped_dir | default('') == ""

- name: check installed package
shell: rpm -qa | sort
register: result_packages
Expand Down
Loading