Commit Graph

10 Commits

Author SHA1 Message Date
Ed Santiago
53b3ac8e48 add Subject Alternative Name to local openssl cert
Go 1.15 deprecates checking CN; this broke gating tests:

   Get "https://localhost:5000/v2/": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0

Easy two-line solution in the 'openssl' invocation. Huge
thanks to Nalin for tracking down and fixing while I was
still getting started:

   https://github.com/containers/buildah/pull/2595

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-09-08 10:43:34 -06:00
Ed Santiago
4c0f649efd 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>
2020-07-20 08:45:28 -06:00
Ed Santiago
d3311a0623 buildah test helper: run registry:2.6, not :2
The docker.io/registry:2 image broke suddenly and with no warning:

https://github.com/docker/distribution-library-image/issues/106

Symptom: running 'htpasswd' from that container no longer works,
even though it's been documented for years (at docker.com) and
as of this writing still remains documented.

One solution is to run htpasswd locally (requires installing the
httpd-tools package) or using any crypt library to hash. Not
hard, but tedious, and it doesn't address the issue of the
docker registry:2 image being a moving target.

I choose to force the use of the :2.6 tag, in hopes that that
image will remain unmodified. Refactored to use FQIN instead
of shortname, and to define it in only one place.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-06-24 13:11:01 -06:00
Ed Santiago
8a2d099e47 Oops - typo fix: IMGTYPE, not imgtest
Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-10-31 13:58:06 -06:00
Ed Santiago
59753d6b20 Gating tests: timeout: bump to 60m (from 30)
buildah tests take a looooong time

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-10-30 14:34:47 -06:00
Ed Santiago
eb545536dd Gating tests
This commit gets rid of the existing, unused, nonworking
and nonmaintained tests. The person who created them
is (AFAICT) no longer with Red Hat; and the tests weren't
being run in gating; and they aren't even in working
condition.

Replace with our standard convention: install the -tests
package, and run it with BATS. This setup is more complex
than podman/skopeo because we need to fire up a local
registry before the tests begin, then tear it down at
the end.

I am expecting these tests to fail in actual gating due
to what I believe are actual buildah problems.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-10-16 23:54:39 +00:00
Bruno Goncalves
eea687c42a Sync new tests from upstreamfirst
* the tests is quite old since it moved from upstreamfirst
    * lots of new cases are added, like option 'run', 'inspect' etc
    * save log to TEST_ARTIFACTS when the variable is set
    * always run tests with latest runc built from source
    * merge task and task status to same line
2018-05-24 12:58:54 +02:00
Lokesh Mandvekar
5cce5a1ada Revert "buildah-0.16-2.git4743c2e"
This reverts commit 61290b1bc7
since it removed the tests/ dir, which is obviously unwanted behavior.
2018-04-07 23:03:14 -04:00
Lokesh Mandvekar
61290b1bc7 buildah-0.16-2.git4743c2e
- autobuilt commit 4743c2e

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-04-07 23:02:44 -04:00
Yevhenii Shapovalov
e671b026e2 add tests 2017-12-12 13:28:04 +02:00