github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/contrib/cirrus/logformatter.t (about)

     1  #!/usr/bin/perl
     2  #
     3  # tests for logformatter
     4  #
     5  (our $ME = $0) =~ s|^.*/||;
     6  
     7  use v5.14;
     8  use strict;
     9  use warnings;
    10  
    11  use FindBin;
    12  use File::Temp          qw(tempdir);
    13  use Test::More;
    14  
    15  # To test links to source files
    16  $ENV{CIRRUS_CHANGE_IN_REPO} = 'ceci-nest-pas-une-sha';
    17  
    18  #
    19  # Read the test cases (see __END__ section below)
    20  #
    21  my @tests;
    22  my $context = '';
    23  while (my $line = <DATA>) {
    24      chomp $line;
    25  
    26      if ($line =~ /^==\s+(.*)/) {
    27          push @tests, { name => $1, input => [], expect => [] };
    28          $context = '';
    29      }
    30      elsif ($line =~ /^<<</) {
    31          $context = 'input';
    32      }
    33      elsif ($line =~ /^>>>/) {
    34          $context = 'expect';
    35      }
    36      elsif (@tests && $line) {
    37          push @{ $tests[-1]{$context} }, $line;
    38      }
    39  }
    40  
    41  plan tests => scalar(@tests);
    42  
    43  my $tempdir = tempdir("logformatter-test.XXXXXX", TMPDIR => 1, CLEANUP => !$ENV{DEBUG});
    44  
    45  chdir $tempdir
    46      or die "$ME: Could not cd $tempdir: $!\n";
    47  
    48  for my $t (@tests) {
    49      my $name = $t->{name};
    50      (my $fname = $name) =~ s/\s+/_/g;
    51  
    52      open my $fh_out, '>', "$fname.txt"
    53          or die "$ME: Cannot create $tempdir/$fname.txt: $!\n";
    54      print { $fh_out } "$_\n" for @{$t->{input}};
    55      close $fh_out
    56          or die "$ME: Error writing $tempdir/$fname.txt: $!\n";
    57  
    58      system("$FindBin::Bin/logformatter $fname <$fname.txt >/dev/null");
    59      open my $fh_in, '<', "$fname.log.html"
    60          or die "$ME: Fatal: $fname: logformatter did not create .log.html\n";
    61      my @actual;
    62      while (my $line = <$fh_in>) {
    63          chomp $line;
    64          push @actual, $line  if $line =~ / begin processed output / .. $line =~ / end processed output /;
    65      }
    66      close $fh_in;
    67  
    68      # Strip off leading and trailing "<pre>"
    69      shift @actual; pop @actual;
    70  
    71      # For debugging: preserve expected results
    72      if ($ENV{DEBUG}) {
    73          open my $fh_out, '>', "$fname.expect";
    74          print { $fh_out } "$_\n" for @{$t->{expect}};
    75          close $fh_out;
    76      }
    77  
    78      is_deeply \@actual, $t->{expect}, $name;
    79  }
    80  
    81  chdir '/';
    82  
    83  
    84  
    85  __END__
    86  
    87  == simple bats
    88  
    89  <<<
    90  1..4
    91  ok 1 hi
    92  ok 2 bye # skip no reason
    93  not ok 3 fail
    94  # (from function `assert' in file ./helpers.bash, line 343,
    95  #  from function `expect_output' in file ./helpers.bash, line 370,
    96  #  in test file ./run.bats, line 786)
    97  # $ /path/to/podman foo -bar
    98  # #| FAIL: exit code is 123; expected 321
    99  ok 4 blah
   100  >>>
   101  1..4
   102  <span class='bats-passed'><a name='t--00001'>ok 1 hi</a></span>
   103  <span class='bats-skipped'><a name='t--00002'>ok 2 bye # skip no reason</a></span>
   104  <span class='bats-failed'><a name='t--00003'>not ok 3 fail</a></span>
   105  <span class='bats-log'># (from function `assert&#39; in file ./<a class="codelink" href="https://github.com/containers/podman/blob/ceci-nest-pas-une-sha/test/system/helpers.bash#L343">helpers.bash, line 343</a>,</span>
   106  <span class='bats-log'>#  from function `expect_output&#39; in file ./<a class="codelink" href="https://github.com/containers/podman/blob/ceci-nest-pas-une-sha/test/system/helpers.bash#L370">helpers.bash, line 370</a>,</span>
   107  <span class='bats-log'>#  in test file ./<a class="codelink" href="https://github.com/containers/podman/blob/ceci-nest-pas-une-sha/test/system/run.bats#L786">run.bats, line 786</a>)</span>
   108  <span class='bats-log'># $ <b><span title="/path/to/podman">podman</span> foo -bar</b></span>
   109  <span class='bats-log-esm'># #| FAIL: exit code is 123; expected 321</span>
   110  <span class='bats-passed'><a name='t--00004'>ok 4 blah</a></span>
   111  <hr/><span class='bats-summary'>Summary: <span class='bats-passed'>2 Passed</span>, <span class='bats-failed'>1 Failed</span>, <span class='bats-skipped'>1 Skipped</span>. Total tests: 4</span>
   112  
   113  
   114  
   115  
   116  
   117  
   118  
   119  == simple ginkgo
   120  
   121  <<<
   122  $SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
   123  [08:26:19] START - All [+xxxx] lines that follow are relative to right now.
   124  [+0002s] GO111MODULE=on go build -mod=vendor  -gcflags 'all=-trimpath=/var/tmp/go/src/github.com/containers/podman' -asmflags 'all=-trimpath=/var/tmp/go/src/github.com/containers/podman' -ldflags '-X github.com/containers/podman/libpod/define.gitCommit=40f5d8b1becd381c4e8283ed3940d09193e4fe06 -X github.com/containers/podman/libpod/define.buildInfo=1582809981 -X github.com/containers/podman/libpod/config._installPrefix=/usr/local -X github.com/containers/podman/libpod/config._etcDir=/etc -extldflags ""' -tags "   selinux systemd exclude_graphdriver_devicemapper seccomp varlink" -o bin/podman github.com/containers/podman/cmd/podman
   125  [+0103s] •
   126  [+0103s] ------------------------------
   127  [+0103s] Podman pod restart
   128  [+0103s]   podman pod restart single empty pod
   129  [+0103s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:41
   130  [+0103s] [BeforeEach] Podman pod restart
   131  [+0103s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:18
   132  [+0103s] [It] podman pod restart single empty pod
   133  [+0103s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:41
   134  [+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --network-backend netavark --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod create --infra=false --share
   135  [+0103s] 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
   136  [+0103s] output: 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
   137  [+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod restart 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
   138  [+0103s] Error: no containers in pod 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89 have no dependencies, cannot start pod: no such container
   139  [+0103s] output:
   140  [+0103s] [AfterEach] Podman pod restart
   141  [+0103s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:28
   142  [+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod rm -fa
   143  [+0103s] 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
   144  [+0104s] Running: /var/tmp/go/src/github.com/containers/libpod/bin/podman-remote --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs --remote --url unix:/run/user/12345/podman-xyz.sock pod rm -fa
   145  [+0104s] 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89 again
   146  
   147  
   148  [+0107s] •
   149  [+0523s] ------------------------------
   150  [+0523s] Podman play kube with build
   151  [+0523s]   --build should override image in store
   152  [+0523s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/play_build_test.go:215
   153  
   154  
   155  [+0479s] •
   156  [+0479s] ------------------------------
   157  [+0479s] Podman pod rm
   158  [+0479s]   podman pod rm -a doesn't remove a running container
   159  [+0479s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_rm_test.go:119
   160  
   161  
   162  [+1405s] •
   163  [+1405s] ------------------------------
   164  [+1405s] Podman run entrypoint
   165  [+1405s]   podman run entrypoint == [""]
   166  [+1405s]   /var/tmp/go/src/github.com/containers/podman/test/e2e/run_entrypoint_test.go:47
   167  
   168  [+0184s] S [SKIPPING] [3.086 seconds]
   169  [+1385s] S [SKIPPING] in Spec Setup (BeforeEach) [0.001 seconds]
   170  
   171  [+1512s] Summarizing 6 Failures:
   172  [+1512s]
   173  [+1512s] [Fail] Podman play kube with build [It] --build should override image in store
   174  [+1512s] /var/tmp/go/src/github.com/containers/podman/test/e2e/play_build_test.go:259
   175  >>>
   176  $SCRIPT_BASE/integration_test.sh |&amp; ${TIMESTAMP}
   177  [08:26:19] START - All [+xxxx] lines that follow are relative to right now.
   178  <span class="timestamp">[+0002s] </span>GO111MODULE=on go build -mod=vendor  -gcflags &#39;all=-trimpath=/var/tmp/go/src/github.com/containers/podman&#39; -asmflags &#39;all=-trimpath=/var/tmp/go/src/github.com/containers/podman&#39; -ldflags &#39;-X github.com/containers/podman/libpod/define.gitCommit=40f5d8b1becd381c4e8283ed3940d09193e4fe06 -X github.com/containers/podman/libpod/define.buildInfo=1582809981 -X github.com/containers/podman/libpod/config._installPrefix=/usr/local -X github.com/containers/podman/libpod/config._etcDir=/etc -extldflags &quot;&quot;&#39; -tags &quot;   selinux systemd exclude_graphdriver_devicemapper seccomp varlink&quot; -o bin/podman github.com/containers/podman/cmd/podman
   179  <span class="timestamp">[+0103s] </span>•
   180  </pre>
   181  <hr />
   182  <pre>
   183  <span class="timestamp">[+0103s] </span>Podman pod restart
   184  <span class="timestamp">         </span><a name='t--podman-pod-restart-single-empty-pod--1'><h2>  podman pod restart single empty pod</h2></a>
   185  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L41'>/containers/podman/test/e2e/pod_restart_test.go:41</a>
   186  <span class="timestamp">         </span>[BeforeEach] Podman pod restart
   187  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L18'>/containers/podman/test/e2e/pod_restart_test.go:18</a>
   188  <span class="timestamp">         </span><span class="testname">[It] podman pod restart single empty pod</span>
   189  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L41'>/containers/podman/test/e2e/pod_restart_test.go:41</a>
   190  <span class="timestamp">         </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--network-backend netavark
   191  --storage-opt vfs.imagestore=/tmp/podman/imagecachedir
   192  --root /tmp/podman_test553496330/crio
   193  --runroot /tmp/podman_test553496330/crio-run
   194  --runtime /usr/bin/runc
   195  --conmon /usr/bin/conmon
   196  --network-config-dir /etc/cni/net.d
   197  --cgroup-manager systemd
   198  --tmpdir /tmp/podman_test553496330
   199  --events-backend file
   200  --storage-driver vfs">[options]</span><b> pod create --infra=false --share</b>
   201  <span class="timestamp">         </span>4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
   202  <span class="timestamp">         </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
   203  --root /tmp/podman_test553496330/crio
   204  --runroot /tmp/podman_test553496330/crio-run
   205  --runtime /usr/bin/runc
   206  --conmon /usr/bin/conmon
   207  --network-config-dir /etc/cni/net.d
   208  --cgroup-manager systemd
   209  --tmpdir /tmp/podman_test553496330
   210  --events-backend file
   211  --storage-driver vfs">[options]</span><b> pod restart 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89</b>
   212  <span class="timestamp">         </span><span class='log-warn'>Error: no containers in pod 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89 have no dependencies, cannot start pod: no such container</span>
   213  <span class="timestamp">         </span>output:
   214  <span class="timestamp">         </span>[AfterEach] Podman pod restart
   215  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L28'>/containers/podman/test/e2e/pod_restart_test.go:28</a>
   216  <span class="timestamp">         </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
   217  --root /tmp/podman_test553496330/crio
   218  --runroot /tmp/podman_test553496330/crio-run
   219  --runtime /usr/bin/runc
   220  --conmon /usr/bin/conmon
   221  --network-config-dir /etc/cni/net.d
   222  --cgroup-manager systemd
   223  --tmpdir /tmp/podman_test553496330
   224  --events-backend file
   225  --storage-driver vfs">[options]</span><b> pod rm -fa</b>
   226  <span class="timestamp">         </span>4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
   227  
   228  <span class="timestamp">[+0104s] </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/libpod/bin/podman-remote"><b>podman-remote</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
   229  --root /tmp/podman_test553496330/crio
   230  --runroot /tmp/podman_test553496330/crio-run
   231  --runtime /usr/bin/runc
   232  --conmon /usr/bin/conmon
   233  --network-config-dir /etc/cni/net.d
   234  --cgroup-manager systemd
   235  --tmpdir /tmp/podman_test553496330
   236  --events-backend file
   237  --storage-driver vfs
   238  --url unix:/run/user/12345/podman-xyz.sock">[options]</span><b> pod rm -fa</b>
   239  <span class="timestamp">         </span>4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89 again
   240  
   241  
   242  <span class="timestamp">[+0107s] </span>•
   243  </pre>
   244  <hr />
   245  <pre>
   246  <span class="timestamp">[+0523s] </span>Podman play kube with build
   247  <span class="timestamp">         </span><a name='t----build-should-override-image-in-store--1'><h2>  --build should override image in store</h2></a>
   248  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/play_build_test.go#L215'>/containers/podman/test/e2e/play_build_test.go:215</a>
   249  
   250  
   251  <span class="timestamp">[+0479s] </span>•
   252  </pre>
   253  <hr />
   254  <pre>
   255  <span class="timestamp">[+0479s] </span>Podman pod rm
   256  <span class="timestamp">         </span><a name='t--podman-pod-rm--a-doesnt-remove-a-running-container--1'><h2>  podman pod rm -a doesn&#39;t remove a running container</h2></a>
   257  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_rm_test.go#L119'>/containers/podman/test/e2e/pod_rm_test.go:119</a>
   258  
   259  
   260  <span class="timestamp">[+1405s] </span>•
   261  </pre>
   262  <hr />
   263  <pre>
   264  <span class="timestamp">[+1405s] </span>Podman run entrypoint
   265  <span class="timestamp">         </span><a name='t--podman-run-entrypoint---1'><h2>  podman run entrypoint == [&quot;&quot;]</h2></a>
   266  <span class="timestamp">         </span>  /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/run_entrypoint_test.go#L47'>/containers/podman/test/e2e/run_entrypoint_test.go:47</a>
   267  
   268  
   269  <span class="timestamp">[+0184s] </span>S <span class="log-skip">[SKIPPING] [3.086 seconds]</span>
   270  <span class="timestamp">[+1385s] </span>S <span class="log-skip">[SKIPPING] in Spec Setup (BeforeEach) [0.001 seconds]</span>
   271  
   272  
   273  <span class="timestamp">[+1512s] </span>Summarizing 6 Failures:
   274  [+1512s]
   275  <span class="timestamp">         </span><b>[Fail] Podman play kube with build [It] <a href='#t----build-should-override-image-in-store--1'>--build should override image in store</a></b>
   276  <span class="timestamp">         </span>/var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/play_build_test.go#L259'>/containers/podman/test/e2e/play_build_test.go:259</a>
   277  
   278  
   279  == simple python
   280  
   281  <<<
   282  [+0234s] env CONTAINERS_CONF=/var/tmp/go/src/github.com/containers/podman/test/apiv2/containers.conf PODMAN=./bin/podman /usr/bin/python3 -m unittest discover -v ./test/python/docker
   283  [+0238s] test_copy_to_container (compat.test_containers.TestContainers) ... /usr/lib/python3.10/site-packages/docker/utils/utils.py:269: DeprecationWarning: urllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() instead
   284  [+0238s]   host, port = splitnport(parsed_url.netloc)
   285  [+0241s] ok
   286  [+0243s] test_create_container (compat.test_containers.TestContainers) ... ok
   287  [+0244s] test_create_network (compat.test_containers.TestContainers) ... ok
   288  [+0245s] test_filters (compat.test_containers.TestContainers) ... skipped 'TODO Endpoint does not yet support filters'
   289  [+0246s] test_kill_container (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/threading.py:372: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55054), raddr=('127.0.0.1', 8080)>
   290  [+0246s]   waiters_to_notify = _deque(_islice(all_waiters, n))
   291  [+0246s] ResourceWarning: Enable tracemalloc to get the object allocation traceback
   292  [+0247s] ok
   293  [+0248s] test_list_container (compat.test_containers.TestContainers) ... ok
   294  [+0252s] test_mount_preexisting_dir (compat.test_containers.TestContainers) ... ok
   295  [+0253s] test_mount_rw_by_default (compat.test_containers.TestContainers) ... ok
   296  [+0257s] test_non_existant_workdir (compat.test_containers.TestContainers) ... ok
   297  [+0258s] test_pause_container (compat.test_containers.TestContainers) ... ok
   298  [+0260s] test_pause_stopped_container (compat.test_containers.TestContainers) ... ok
   299  [+0261s] test_remove_container (compat.test_containers.TestContainers) ... ok
   300  [+0262s] test_remove_container_without_force (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55068), raddr=('127.0.0.1', 8080)>
   301  [+0262s]   for ateof in reversed(self._eofstack):
   302  [+0262s] ResourceWarning: Enable tracemalloc to get the object allocation traceback
   303  [+0262s] /usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55074), raddr=('127.0.0.1', 8080)>
   304  [+0262s]   for ateof in reversed(self._eofstack):
   305  [+0262s] ResourceWarning: Enable tracemalloc to get the object allocation traceback
   306  [+0262s] ok
   307  [+0264s] test_restart_container (compat.test_containers.TestContainers) ... ok
   308  [+0265s] test_start_container (compat.test_containers.TestContainers) ... ok
   309  [+0267s] test_start_container_with_random_port_bind (compat.test_containers.TestContainers) ... ok
   310  [+0268s] test_stop_container (compat.test_containers.TestContainers) ... ok
   311  [+0269s] test_unpause_container (compat.test_containers.TestContainers) ... ok
   312  [+0273s] test_build_image (compat.test_images.TestImages) ... ok
   313  [+0273s] test_get_image_exists_not (compat.test_images.TestImages)
   314  [+0274s] Negative test for get image ... ok
   315  [+0274s] test_image_history (compat.test_images.TestImages)
   316  [+0274s] Image history ... ok
   317  [+0274s] test_list_images (compat.test_images.TestImages)
   318  [+0276s] List images ... ok
   319  [+0276s] test_load_corrupt_image (compat.test_images.TestImages)
   320  [+0277s] Import|Load Image failure ... ok
   321  [+0277s] test_load_image (compat.test_images.TestImages)
   322  [+0279s] Import|Load Image ... ok
   323  [+0279s] test_remove_image (compat.test_images.TestImages)
   324  [+0280s] Remove image ... ok
   325  [+0280s] test_retag_valid_image (compat.test_images.TestImages)
   326  [+0280s] Validates if name updates when the image is retagged ... ok
   327  [+0280s] test_save_image (compat.test_images.TestImages)
   328  [+0282s] Export Image ... ok
   329  [+0282s] test_search_bogus_image (compat.test_images.TestImages)
   330  [+0290s] Search for bogus image should throw exception ... ok
   331  [+0290s] test_search_image (compat.test_images.TestImages)
   332  [+0291s] Search for image ... FAIL
   333  [+0291s] test_tag_valid_image (compat.test_images.TestImages)
   334  [+0292s] Validates if the image is tagged successfully ... ok
   335  [+0296s] test_Info (compat.test_system.TestSystem) ... ok
   336  [+0298s] test_info_container_details (compat.test_system.TestSystem) ... ok
   337  [+0299s] test_version (compat.test_system.TestSystem) ... ok
   338  [+0299s] ======================================================================
   339  [+0299s] FAIL: test_search_image (compat.test_images.TestImages)
   340  [+0299s] Search for image
   341  [+0299s] ----------------------------------------------------------------------
   342  [+0299s] Traceback (most recent call last):
   343  [+0299s]   File "/var/tmp/go/src/github.com/containers/podman/test/python/docker/compat/test_images.py", line 90, in test_search_image
   344  [+0299s]     self.assertIn("alpine", r["Name"])
   345  [+0299s] AssertionError: 'alpine' not found in 'docker.io/docker/desktop-kubernetes'
   346  [+0299s] ----------------------------------------------------------------------
   347  [+0299s] Ran 33 tests in 63.138s
   348  [+0299s] FAILED (failures=1, skipped=1)
   349  [+0299s] make: *** [Makefile:616: localapiv2] Error 1
   350  >>>
   351  <span class="timestamp">[+0234s] </span>env CONTAINERS_CONF=/var/tmp/go/src/github.com/containers/podman/test/apiv2/containers.conf PODMAN=./bin/podman /usr/bin/python3 -m unittest discover -v ./test/python/docker
   352  <span class="timestamp">[+0238s] </span>test_copy_to_container (compat.test_containers.TestContainers) ... /usr/lib/python3.10/site-packages/docker/utils/utils.py:269: DeprecationWarning: urllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() instead
   353  <span class="timestamp">         </span>  host, port = splitnport(parsed_url.netloc)
   354  <span class="timestamp">[+0241s] </span>ok
   355  <span class="timestamp">[+0243s] </span><span class='bats-passed'>test_create_container (compat.test_containers.TestContainers) ... ok</span>
   356  <span class="timestamp">[+0244s] </span><span class='bats-passed'>test_create_network (compat.test_containers.TestContainers) ... ok</span>
   357  <span class="timestamp">[+0245s] </span><span class='bats-skipped'>test_filters (compat.test_containers.TestContainers) ... skipped &#39;TODO Endpoint does not yet support filters&#39;</span>
   358  <span class="timestamp">[+0246s] </span>test_kill_container (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/threading.py:372: ResourceWarning: unclosed &lt;socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=(&#39;127.0.0.1&#39;, 55054), raddr=(&#39;127.0.0.1&#39;, 8080)&gt;
   359  <span class="timestamp">         </span>  waiters_to_notify = _deque(_islice(all_waiters, n))
   360  <span class="timestamp">         </span>ResourceWarning: Enable tracemalloc to get the object allocation traceback
   361  <span class="timestamp">[+0247s] </span>ok
   362  <span class="timestamp">[+0248s] </span><span class='bats-passed'>test_list_container (compat.test_containers.TestContainers) ... ok</span>
   363  <span class="timestamp">[+0252s] </span><span class='bats-passed'>test_mount_preexisting_dir (compat.test_containers.TestContainers) ... ok</span>
   364  <span class="timestamp">[+0253s] </span><span class='bats-passed'>test_mount_rw_by_default (compat.test_containers.TestContainers) ... ok</span>
   365  <span class="timestamp">[+0257s] </span><span class='bats-passed'>test_non_existant_workdir (compat.test_containers.TestContainers) ... ok</span>
   366  <span class="timestamp">[+0258s] </span><span class='bats-passed'>test_pause_container (compat.test_containers.TestContainers) ... ok</span>
   367  <span class="timestamp">[+0260s] </span><span class='bats-passed'>test_pause_stopped_container (compat.test_containers.TestContainers) ... ok</span>
   368  <span class="timestamp">[+0261s] </span><span class='bats-passed'>test_remove_container (compat.test_containers.TestContainers) ... ok</span>
   369  <span class="timestamp">[+0262s] </span>test_remove_container_without_force (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed &lt;socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=(&#39;127.0.0.1&#39;, 55068), raddr=(&#39;127.0.0.1&#39;, 8080)&gt;
   370  <span class="timestamp">         </span>  for ateof in reversed(self._eofstack):
   371  <span class="timestamp">         </span>ResourceWarning: Enable tracemalloc to get the object allocation traceback
   372  <span class="timestamp">         </span>/usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed &lt;socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=(&#39;127.0.0.1&#39;, 55074), raddr=(&#39;127.0.0.1&#39;, 8080)&gt;
   373  <span class="timestamp">         </span>  for ateof in reversed(self._eofstack):
   374  <span class="timestamp">         </span>ResourceWarning: Enable tracemalloc to get the object allocation traceback
   375  <span class="timestamp">         </span>ok
   376  <span class="timestamp">[+0264s] </span><span class='bats-passed'>test_restart_container (compat.test_containers.TestContainers) ... ok</span>
   377  <span class="timestamp">[+0265s] </span><span class='bats-passed'>test_start_container (compat.test_containers.TestContainers) ... ok</span>
   378  <span class="timestamp">[+0267s] </span><span class='bats-passed'>test_start_container_with_random_port_bind (compat.test_containers.TestContainers) ... ok</span>
   379  <span class="timestamp">[+0268s] </span><span class='bats-passed'>test_stop_container (compat.test_containers.TestContainers) ... ok</span>
   380  <span class="timestamp">[+0269s] </span><span class='bats-passed'>test_unpause_container (compat.test_containers.TestContainers) ... ok</span>
   381  <span class="timestamp">[+0273s] </span><span class='bats-passed'>test_build_image (compat.test_images.TestImages) ... ok</span>
   382  <span class="timestamp">         </span>test_get_image_exists_not (compat.test_images.TestImages)
   383  <span class="timestamp">[+0274s] </span><span class='bats-passed'>Negative test for get image ... ok</span>
   384  <span class="timestamp">         </span>test_image_history (compat.test_images.TestImages)
   385  <span class="timestamp">         </span><span class='bats-passed'>Image history ... ok</span>
   386  <span class="timestamp">         </span>test_list_images (compat.test_images.TestImages)
   387  <span class="timestamp">[+0276s] </span><span class='bats-passed'>List images ... ok</span>
   388  <span class="timestamp">         </span>test_load_corrupt_image (compat.test_images.TestImages)
   389  <span class="timestamp">[+0277s] </span><span class='bats-passed'>Import|Load Image failure ... ok</span>
   390  <span class="timestamp">         </span>test_load_image (compat.test_images.TestImages)
   391  <span class="timestamp">[+0279s] </span><span class='bats-passed'>Import|Load Image ... ok</span>
   392  <span class="timestamp">         </span>test_remove_image (compat.test_images.TestImages)
   393  <span class="timestamp">[+0280s] </span><span class='bats-passed'>Remove image ... ok</span>
   394  <span class="timestamp">         </span>test_retag_valid_image (compat.test_images.TestImages)
   395  <span class="timestamp">         </span><span class='bats-passed'>Validates if name updates when the image is retagged ... ok</span>
   396  <span class="timestamp">         </span>test_save_image (compat.test_images.TestImages)
   397  <span class="timestamp">[+0282s] </span><span class='bats-passed'>Export Image ... ok</span>
   398  <span class="timestamp">         </span>test_search_bogus_image (compat.test_images.TestImages)
   399  <span class="timestamp">[+0290s] </span><span class='bats-passed'>Search for bogus image should throw exception ... ok</span>
   400  <span class="timestamp">         </span>test_search_image (compat.test_images.TestImages)
   401  <span class="timestamp">[+0291s] </span><span class='bats-failed'>Search for image ... FAIL</span>
   402  <span class="timestamp">         </span>test_tag_valid_image (compat.test_images.TestImages)
   403  <span class="timestamp">[+0292s] </span><span class='bats-passed'>Validates if the image is tagged successfully ... ok</span>
   404  <span class="timestamp">[+0296s] </span><span class='bats-passed'>test_Info (compat.test_system.TestSystem) ... ok</span>
   405  <span class="timestamp">[+0298s] </span><span class='bats-passed'>test_info_container_details (compat.test_system.TestSystem) ... ok</span>
   406  <span class="timestamp">[+0299s] </span><span class='bats-passed'>test_version (compat.test_system.TestSystem) ... ok</span>
   407  <div class='log-error'>
   408  <span class="timestamp">         </span>======================================================================
   409  <span class="timestamp">         </span>FAIL: test_search_image (compat.test_images.TestImages)
   410  <span class="timestamp">         </span>Search for image
   411  <span class="timestamp">         </span>----------------------------------------------------------------------
   412  <span class="timestamp">         </span>Traceback (most recent call last):
   413  <span class="timestamp">         </span>  File &quot;/var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/ceci-nest-pas-une-sha/test/python/docker/compat/test_images.py#L90'>/containers/podman/test/python/docker/compat/test_images.py&quot;, line 90</a>, in test_search_image
   414  <span class="timestamp">         </span>    self.assertIn(&quot;alpine&quot;, r[&quot;Name&quot;])
   415  <span class="timestamp">         </span>AssertionError: &#39;alpine&#39; not found in &#39;docker.io/docker/desktop-kubernetes&#39;
   416  <span class="timestamp">         </span>----------------------------------------------------------------------
   417  </div>
   418  <span class="timestamp">         </span>Ran 33 tests in 63.138s
   419  <span class="timestamp">         </span><span class='bats-failed'>FAILED (failures=1, skipped=1)</span>
   420  <span class="timestamp">         </span>make: *** [Makefile:616: localapiv2] Error 1
   421  <hr/><span class='bats-summary'>Summary: <span class='bats-passed'>28 Passed</span>, <span class='bats-failed'>1 Failed</span>, <span class='bats-skipped'>1 Skipped</span>. Total tests: 30 <span class='bats-failed'>(WARNING: expected 33)</span></span>