More htpasswd fallout: use httpd-tools

Newer buildah tests now depend on encryption functionality
only present in later (2.7? 2.8?) versions of docker.io/registry.
So, undo our earlier change in which we forced registry:2.6
to use its htpasswd. Instead, tests now require httpd-tools
package and we use native host htpasswd. We revert back to
using registry:2 (no dot), which is a moving target, so be
prepared for future breakage.

Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
Ed Santiago 2020-07-20 08:38:12 -06:00
parent d3311a0623
commit 4c0f649efd
2 changed files with 3 additions and 3 deletions

View File

@ -89,6 +89,7 @@ Requires: bzip2
Requires: podman
Requires: golang
Requires: jq
Requires: httpd-tools
%description tests
%{summary}

View File

@ -19,7 +19,7 @@ export IMGTYPE_BINARY=/usr/bin/buildah-imgtype
# Start a registry
pre_bats_setup() {
REGISTRY_FQIN=docker.io/library/registry:2.6
REGISTRY_FQIN=docker.io/library/registry:2
AUTHDIR=/tmp/buildah-tests-auth.$$
mkdir -p $AUTHDIR
@ -33,8 +33,7 @@ pre_bats_setup() {
fi
if [ ! -e $AUTHDIR/htpasswd ]; then
podman run --rm --entrypoint htpasswd $REGISTRY_FQIN \
-Bbn testuser testpassword > $AUTHDIR/htpasswd
htpasswd -Bbn testuser testpassword > $AUTHDIR/htpasswd
fi
podman rm -f registry || true