podman/hack
Ed Santiago 1161e8bd54 manifest_test: safer registry setup and teardown
manifest_test:authenticated_push() is the final test left to
fix before merging #14397. The reason it's failing _seems_ to be
that podman is running with a mix of netavark and CNI, and
that _seems_ to be because this test invokes hack/podman-registry
which invokes plain podman without whatever options used in e2e.

Starting a registry directly from the test is insane: there is
no reusable code for doing that (see login_logout_test.go and
push_test.go. Yeesh.)

Solution: set $PODMAN, by inspecting the podmanTest object
which includes both a path and a list of options. podman-registry
will invoke that. (It will also override --root and --runroot.
This is the desired behavior).

Also: add cleanup. If auth-push test fails, stop the registry.

Also: add a sanity check to podman-registry script, have it
wait for the registry port to activate. Die if it doesn't.
That could've saved us a nice bit of debugging time.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2022-07-07 14:03:42 -06:00
..
podman-registry-go hack/test/utils: switch to golang native error wrapping 2022-07-05 12:13:33 +02:00
apparmor_tag.sh Use `bash` binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
bats hack/bats: fix broken usage message 2022-02-02 11:26:22 -07:00
branch_commits.rb Add script for identifying commits in release branches 2021-05-17 16:40:35 -04:00
btrfs_installed_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
btrfs_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
buildah-vendor-treadmill [CI:DOCS] Treadmill script: add --reset option 2022-05-12 13:14:04 -06:00
check_root.sh Use `bash` binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
get_ci_vm.sh Cirrus: Update images + new automation library 2022-05-10 10:49:32 -04:00
golangci-lint.sh golangci-lint: add systemd build tag 2022-06-14 15:28:45 +02:00
install_bats.sh Install bats as root 2020-09-18 12:50:25 -05:00
install_catatonit.sh cirrus: force-install catatonit 2021-11-15 12:53:25 +01:00
install_golangci.sh golangci install: explicitly set BINDIR 2022-07-05 15:59:32 -06:00
libdm_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
libsubid_tag.sh build: fix test for subid 4 2021-12-20 10:09:34 +01:00
make-and-check-size Fix size-check to display more context 2022-04-21 14:07:20 -04:00
man-page-checker Switch use of Flags to Options 2020-10-21 08:37:57 -04:00
parse-localbenchmarks [CI:DOCS] Benchmarks: new tool for parsing results 2022-05-11 11:44:17 -06:00
podman-commands.sh Add shell completion with cobra 2020-11-12 11:38:31 +01:00
podman-registry manifest_test: safer registry setup and teardown 2022-07-07 14:03:42 -06:00
podman-socat rename --cni-config-dir to --network-config-dir 2022-01-18 19:28:25 +01:00
podmanv2-retry Use `bash` binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
release.sh Remove changelog.txt from the repository 2021-09-07 10:53:26 -04:00
selinux_tag.sh Use `bash` binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
swagger-check Fix swagger issue 2021-08-25 15:50:55 -05:00
systemd_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
tree_status.sh Use `bash` binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
xref-helpmsgs-manpages manpage vs --help checker: better error messages 2022-04-18 10:09:38 -06:00