skopeo/systemtest
Ed Santiago 58248412bd System tests: various fixes
- zstd test - give unique name.

   a36d81c copy/pasted an existing test but didn't give
   the new test a new name, leading to bats warning:
      duplicate test name(s) in [...]/020-copy.bats

 - start_registry() - use bash builtins, not curl, to test
   if registry port is open.

   curl on Fedora now barfs with "Received HTTP/0.9 when not
   allowed" when the registry is run with SSL, because the
   response is not valid HTTP. One workaround would be 'curl
   --http0.9' but (surprise) that option doesn't exist on rhel8;
   and even with that option we would need --output /dev/null
   to silence a different curl warning. Curl is overkill
   for this purpose anyway, all we really need is netcat
   or some simple binary is-port-listening-or-not test.
   Fortunately, bash provides a /dev/tcp/<host>/<port>
   emulator that does the right thing and works on Fedora
   as well as RHEL8.

 - new log_and_run() helper

   This is the noisiest yet least critical part of this PR.
   I'm sorry. It's motivated by my frustration in trying
   to reproduce the curl problem above: getting just the
   right incantation of openssl + podman-run cost me time.
   With this enhancement, important commands are logged
   as part of the output of failing tests, making it
   easy[*] for maintenance programmers to figure out a
   recipe for reproducing the failure.

     [*] "easy" as long as the test-writing developer
         uses log_and_run() wisely.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-10-15 15:59:14 -06:00
..
001-basic.bats systemtest - new set of BATS tests for RHEL8 gating 2019-05-28 10:10:50 -06:00
010-inspect.bats systemtest/010-inspect.bats: require only PATH 2019-09-30 15:31:14 +02:00
020-copy.bats System tests: various fixes 2019-10-15 15:59:14 -06:00
030-local-registry-tls.bats fixup! Incorporate review feedback from mtrmac 2019-05-28 10:10:50 -06:00
040-local-registry-auth.bats Temporarily work around auth.json location confusion 2019-10-15 12:36:19 -04:00
050-signing.bats Skip systemtest/050-signing.bats if skopeo can't create signatures 2019-06-13 18:53:53 +02:00
060-delete.bats systemtest: support deleting image from registry 2019-07-31 18:47:13 +08:00
helpers.bash System tests: various fixes 2019-10-15 15:59:14 -06:00
run-tests fixup! Incorporate review feedback from mtrmac 2019-05-28 10:10:50 -06:00