diff --git a/test/system/102-list.bats b/test/system/102-list.bats index 1586ed1..311a5f6 100644 --- a/test/system/102-list.bats +++ b/test/system/102-list.bats @@ -243,6 +243,9 @@ teardown() { } @test "list: Containers and images" { + local default_image + default_image="$(get_default_image)" + # Pull the two images pull_default_image pull_distro_image fedora 34 @@ -256,8 +259,8 @@ teardown() { run --keep-empty-lines --separate-stderr $TOOLBOX list --images assert_success - assert_line --index 1 --partial "fedora-toolbox:34" - assert_line --index 2 --partial "$(get_system_id)-toolbox:$(get_system_version)" + assert_line --index 1 --partial "registry.fedoraproject.org/fedora-toolbox:34" + assert_line --index 2 --partial "$default_image" assert [ ${#lines[@]} -eq 4 ] assert [ ${#stderr_lines[@]} -eq 0 ] @@ -275,8 +278,8 @@ teardown() { run --keep-empty-lines --separate-stderr $TOOLBOX list assert_success - assert_line --index 1 --partial "fedora-toolbox:34" - assert_line --index 2 --partial "$(get_system_id)-toolbox:$(get_system_version)" + assert_line --index 1 --partial "registry.fedoraproject.org/fedora-toolbox:34" + assert_line --index 2 --partial "$default_image" assert_line --index 5 --partial "$(get_system_id)-toolbox-$(get_system_version)" assert_line --index 6 --partial "non-default-one" assert_line --index 7 --partial "non-default-two" @@ -300,7 +303,7 @@ teardown() { assert_success assert_line --index 1 --partial "" - assert_line --index 2 --partial "fedora-toolbox:34" + assert_line --index 2 --partial "registry.fedoraproject.org/fedora-toolbox:34" assert_line --index 3 --partial "$default_image" assert [ ${#lines[@]} -eq 5 ] assert [ ${#stderr_lines[@]} -eq 0 ] @@ -318,7 +321,7 @@ teardown() { assert_success assert_line --index 1 --partial "" - assert_line --index 2 --partial "fedora-toolbox:34" + assert_line --index 2 --partial "registry.fedoraproject.org/fedora-toolbox:34" assert_line --index 3 --partial "$default_image" assert [ ${#lines[@]} -eq 5 ] assert [ ${#stderr_lines[@]} -eq 0 ]