diff options
author | Ed Santiago <santiago@redhat.com> | 2020-10-14 06:24:17 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-10-14 15:32:02 -0600 |
commit | 1646da834c06d55e7bf56b272f2666659117e6fa (patch) | |
tree | 85044a2360ddbb7a7845de11ec1016bf6996baab /test/system/500-networking.bats | |
parent | 1814bac92e98bf24c8f757dcd42fc0ae9fb9f9b0 (diff) | |
download | podman-1646da834c06d55e7bf56b272f2666659117e6fa.tar.gz podman-1646da834c06d55e7bf56b272f2666659117e6fa.tar.bz2 podman-1646da834c06d55e7bf56b272f2666659117e6fa.zip |
System test additions
- run --userns=keep-id: confirm that $HOME gets set (#8013)
- inspect: confirm that JSON output is a sane number of
lines (10 or more), not an unreadable one-liner (#8011
and #8021). Do so with image, pod, network, volume
because the code paths might be different.
- cgroups: confirm that 'run' preserves cgroup manager (#7970)
- sdnotify: reenable tests, and hope CI doesn't hang. This
test was disabled on August 18 because CI jobs were hanging
and timing out. My suspicion was that it was #7316, which
in turn seems to have hinged on conmon #182. The latter
was merged on Sep 16, so let's cross our fingers and see
what happens.
Also: remove inaccurate warning from a networking test.
And, wow, fix is_cgroupsv2(), it has never actually worked.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/500-networking.bats')
-rw-r--r-- | test/system/500-networking.bats | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats index a923402ac..44cc731cf 100644 --- a/test/system/500-networking.bats +++ b/test/system/500-networking.bats @@ -90,7 +90,12 @@ load helpers run_podman network create --subnet "${mysubnet}.0/24" $mynetname is "$output" ".*/cni/net.d/$mynetname.conflist" "output of 'network create'" - # WARNING: this pulls a ~100MB image from quay.io, hence is slow/flaky + # (Assert that output is formatted, not a one-line blob: #8011) + run_podman network inspect $mynetname + if [[ "${#lines[*]}" -lt 5 ]]; then + die "Output from 'pod inspect' is only ${#lines[*]} lines; see #8011" + fi + run_podman run --rm --network $mynetname $IMAGE ip a is "$output" ".* inet ${mysubnet}\.2/24 brd ${mysubnet}\.255 " \ "sdfsdf" |