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
28 changes: 14 additions & 14 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml

- job:
name: system-test-fedora-42
description: Run Toolbx's system tests in Fedora 42
timeout: 9000
nodeset:
nodes:
- name: fedora-42
label: cloud-fedora-42
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml

- job:
name: system-test-fedora-41
description: Run Toolbx's system tests in Fedora 41
Expand All @@ -81,39 +92,28 @@
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml

- job:
name: system-test-fedora-39
description: Run Toolbx's system tests in Fedora 39
timeout: 9000
nodeset:
nodes:
- name: fedora-39
label: cloud-fedora-39
pre-run: playbooks/setup-env.yaml
run: playbooks/system-test.yaml

- project:
periodic:
jobs:
- system-test-fedora-rawhide
- system-test-fedora-42
- system-test-fedora-41
- system-test-fedora-40
- system-test-fedora-39
check:
jobs:
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- unit-test-restricted
- system-test-fedora-rawhide
- system-test-fedora-42
- system-test-fedora-41
- system-test-fedora-40
- system-test-fedora-39
gate:
jobs:
- unit-test
- unit-test-migration-path-for-coreos-toolbox
- unit-test-restricted
- system-test-fedora-rawhide
- system-test-fedora-42
- system-test-fedora-41
- system-test-fedora-40
- system-test-fedora-39
5 changes: 5 additions & 0 deletions test/system/002-help.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ load 'libs/helpers.bash'

setup() {
_setup_environment
pushd "$HOME" || return 1
}

teardown() {
popd || return 1
}

@test "help: Smoke test" {
Expand Down
4 changes: 0 additions & 4 deletions test/system/101-create.bats
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,6 @@ teardown() {
}

@test "create: Try using both --distro and --image" {
pull_distro_image fedora 34

run "$TOOLBOX" --assumeyes create --distro fedora --image fedora-toolbox:34

assert_failure
Expand All @@ -650,8 +648,6 @@ teardown() {
}

@test "create: Try using both --image and --release" {
pull_distro_image fedora 34

run "$TOOLBOX" --assumeyes create --image fedora-toolbox:34 --release 34

assert_failure
Expand Down
55 changes: 9 additions & 46 deletions test/system/203-network.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,21 @@ print(addr)'
readonly RESOLVER_SH='resolvectl --legend false --no-pager --type "$0" query "$1" \
| cut --delimiter " " --fields 4'

setup() {
setup_file() {
bats_require_minimum_version 1.7.0
_setup_environment
cleanup_all
pushd "$HOME" || return 1
create_default_container
create_distro_container arch latest arch-toolbox-latest
create_distro_container fedora 34 fedora-toolbox-34
create_distro_container rhel 8.7 rhel-toolbox-8.7
create_distro_container ubuntu 16.04 ubuntu-toolbox-16.04
create_distro_container ubuntu 18.04 ubuntu-toolbox-18.04
create_distro_container ubuntu 20.04 ubuntu-toolbox-20.04
}

teardown() {
teardown_file() {
popd || return 1
cleanup_all
}
Expand All @@ -47,8 +54,6 @@ teardown() {
local ns_host
ns_host=$(readlink /proc/$$/ns/net)

create_default_container

run --keep-empty-lines --separate-stderr "$TOOLBOX" run sh -c 'readlink /proc/$$/ns/net'

assert_success
Expand All @@ -65,8 +70,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside the default container" {
create_default_container

run --keep-empty-lines --separate-stderr "$TOOLBOX" run readlink /etc/resolv.conf

assert_success
Expand All @@ -83,8 +86,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside Arch Linux" {
create_distro_container arch latest arch-toolbox-latest

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro arch readlink /etc/resolv.conf

assert_success
Expand All @@ -101,8 +102,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside Fedora 34" {
create_distro_container fedora 34 fedora-toolbox-34

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro fedora --release 34 readlink /etc/resolv.conf

assert_success
Expand All @@ -119,8 +118,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside RHEL 8.7" {
create_distro_container rhel 8.7 rhel-toolbox-8.7

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro rhel --release 8.7 readlink /etc/resolv.conf

assert_success
Expand All @@ -137,8 +134,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside Ubuntu 16.04" {
create_distro_container ubuntu 16.04 ubuntu-toolbox-16.04

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro ubuntu --release 16.04 readlink /etc/resolv.conf

assert_success
Expand All @@ -155,8 +150,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside Ubuntu 18.04" {
create_distro_container ubuntu 18.04 ubuntu-toolbox-18.04

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro ubuntu --release 18.04 readlink /etc/resolv.conf

assert_success
Expand All @@ -173,8 +166,6 @@ teardown() {
}

@test "network: /etc/resolv.conf inside Ubuntu 20.04" {
create_distro_container ubuntu 20.04 ubuntu-toolbox-20.04

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro ubuntu --release 20.04 readlink /etc/resolv.conf

assert_success
Expand Down Expand Up @@ -207,8 +198,6 @@ teardown() {
skip "DNS not working on host"
fi

create_default_container

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run python3 -c "$RESOLVER_PYTHON3" A k.root-servers.net

Expand Down Expand Up @@ -257,8 +246,6 @@ teardown() {
skip "DNS not working on host"
fi

create_distro_container arch latest arch-toolbox-latest

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run \
--distro arch \
Expand Down Expand Up @@ -311,8 +298,6 @@ teardown() {
skip "DNS not working on host"
fi

create_distro_container fedora 34 fedora-toolbox-34

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run \
--distro fedora \
Expand Down Expand Up @@ -367,8 +352,6 @@ teardown() {
skip "DNS not working on host"
fi

create_distro_container rhel 8.7 rhel-toolbox-8.7

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run \
--distro rhel \
Expand Down Expand Up @@ -423,8 +406,6 @@ teardown() {
skip "DNS not working on host"
fi

create_distro_container ubuntu 16.04 ubuntu-toolbox-16.04

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run \
--distro ubuntu \
Expand Down Expand Up @@ -479,8 +460,6 @@ teardown() {
skip "DNS not working on host"
fi

create_distro_container ubuntu 18.04 ubuntu-toolbox-18.04

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run \
--distro ubuntu \
Expand Down Expand Up @@ -535,8 +514,6 @@ teardown() {
skip "DNS not working on host"
fi

create_distro_container ubuntu 20.04 ubuntu-toolbox-20.04

if ! $ipv4_skip; then
run --keep-empty-lines --separate-stderr "$TOOLBOX" run \
--distro ubuntu \
Expand Down Expand Up @@ -575,8 +552,6 @@ teardown() {
}

@test "network: ping(8) inside the default container" {
create_default_container

run --keep-empty-lines --separate-stderr "$TOOLBOX" run ping -c 2 f.root-servers.net

if [ "$status" -eq 1 ]; then
Expand All @@ -591,8 +566,6 @@ teardown() {
}

@test "network: ping(8) inside Arch Linux" {
create_distro_container arch latest arch-toolbox-latest

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro arch ping -c 2 f.root-servers.net

if [ "$status" -eq 1 ]; then
Expand All @@ -607,8 +580,6 @@ teardown() {
}

@test "network: ping(8) inside Fedora 34" {
create_distro_container fedora 34 fedora-toolbox-34

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro fedora --release 34 ping -c 2 f.root-servers.net

if [ "$status" -eq 1 ]; then
Expand All @@ -623,8 +594,6 @@ teardown() {
}

@test "network: ping(8) inside RHEL 8.7" {
create_distro_container rhel 8.7 rhel-toolbox-8.7

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro rhel --release 8.7 ping -c 2 f.root-servers.net

if [ "$status" -eq 1 ]; then
Expand All @@ -639,8 +608,6 @@ teardown() {
}

@test "network: ping(8) inside Ubuntu 16.04" {
create_distro_container ubuntu 16.04 ubuntu-toolbox-16.04

run -2 --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro ubuntu --release 16.04 ping -c 2 f.root-servers.net

assert_failure
Expand All @@ -653,8 +620,6 @@ teardown() {
}

@test "network: ping(8) inside Ubuntu 18.04" {
create_distro_container ubuntu 18.04 ubuntu-toolbox-18.04

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro ubuntu --release 18.04 ping -c 2 f.root-servers.net

if [ "$status" -eq 1 ]; then
Expand All @@ -669,8 +634,6 @@ teardown() {
}

@test "network: ping(8) inside Ubuntu 20.04" {
create_distro_container ubuntu 20.04 ubuntu-toolbox-20.04

run --keep-empty-lines --separate-stderr "$TOOLBOX" run --distro ubuntu --release 20.04 ping -c 2 f.root-servers.net

if [ "$status" -eq 1 ]; then
Expand Down
Loading