Skip to content
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
7 changes: 5 additions & 2 deletions tmt/plans/integration.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,21 @@ execute:
test:
- /tmt/tests/tests/test-44-shadow-fixup

/plan-45-composefs-corruped-state-resilience:
/plan-45-composefs-corrupted-state-resilience:
summary: Test composefs backend resilience to state corruption
discover:
how: fmf
test:
- /tmt/tests/tests/test-45-composefs-corruped-state-resilience
- /tmt/tests/tests/test-45-composefs-corrupted-state-resilience
extra-skip_if_ostree: true

/plan-46-etc-merge-conflict:
summary: Verify etc merge conflicts are caught during upgrade, not finalization
discover:
how: fmf
test:
- /tmt/tests/tests/test-46-etc-merge-conflict
extra-skip_if_ostree: true

/plan-47-download-only-switch:
summary: Execute download-only switch tests
Expand All @@ -311,4 +313,5 @@ execute:
how: fmf
test:
- /tmt/tests/tests/test-48-composefs-uki-dumpfile
extra-skip_if_ostree: true
# END GENERATED PLANS
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
# tmt:
# summary: Test composefs backend resilience to state corruption
# duration: 30m
# extra:
# skip_if_ostree: true

use std assert
use tap.nu

if not (tap is_composefs) {
exit 0
}

let st = bootc status --json | from json
let booted = $st.status.booted.image
let is_uki = ($st.status.booted.composefs.bootType | str downcase) == "uki"
Expand Down
4 changes: 0 additions & 4 deletions tmt/tests/booted/test-composefs-gc-uki.nu
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
use std assert
use tap.nu

if not (tap is_composefs) {
exit 0
}

# bootc status
let st = bootc status --json | from json
let booted = $st.status.booted.image
Expand Down
8 changes: 0 additions & 8 deletions tmt/tests/booted/test-composefs-gc.nu
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,12 @@
use std assert
use tap.nu

if not (tap is_composefs) {
exit 0
}

# bootc status
let st = bootc status --json | from json
let booted = $st.status.booted.image

let dir_prefix = "bootc_composefs-"

if ($st.status.booted.composefs.bootType | str downcase) == "uki" {
exit 0
}

# Create a large file in a new container image, then bootc switch to the image
def first_boot [] {
bootc image copy-to-storage
Expand Down
6 changes: 2 additions & 4 deletions tmt/tests/booted/test-composefs-uki-dumpfile.nu
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
# tmt:
# summary: Test composefs UKI dumpfile diff print
# duration: 30m
# extra:
# skip_if_ostree: true

use std assert
use tap.nu

if not (tap is_composefs) {
exit 0
}

# bootc status
let st = bootc status --json | from json
let booted = $st.status.booted.image
Expand Down
6 changes: 2 additions & 4 deletions tmt/tests/booted/test-etc-merge-conflict.nu
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# tmt:
# summary: Verify etc merge conflicts are caught during upgrade, not finalization
# duration: 15m
# extra:
# skip_if_ostree: true
#
# Verifies that file-to-directory and directory-to-file type changes between
# the current /etc and the new image's /etc are detected during `bootc switch`
Expand All @@ -12,10 +14,6 @@
use std assert
use tap.nu

if not (tap is_composefs) {
exit 0
}

tap begin "etc merge conflict detection during upgrade"

def main [] {
Expand Down
4 changes: 0 additions & 4 deletions tmt/tests/booted/test-switch-same-digest.nu
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
use std assert
use tap.nu

if not (tap is_composefs) {
exit 0
}

tap begin "bootc switch to same-digest image must error"

# Copy the booted image into podman storage so we can retag it.
Expand Down
4 changes: 2 additions & 2 deletions tmt/tests/tests.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ check:
duration: 30m
test: nu booted/test-44-shadow-fixup.nu

/test-45-composefs-corruped-state-resilience:
/test-45-composefs-corrupted-state-resilience:
summary: Test composefs backend resilience to state corruption
duration: 30m
test: nu booted/test-composefs-corruped-state-resilience.nu
test: nu booted/test-composefs-corrupted-state-resilience.nu

/test-46-etc-merge-conflict:
summary: Verify etc merge conflicts are caught during upgrade, not finalization
Expand Down
Loading