summaryrefslogtreecommitdiff
path: root/test/apiv2/60-auth.at
Commit message (Collapse)AuthorAge
* apiv2 tests: clean upEd Santiago2022-06-08
| | | | | | | | | | | | | Mostly fix a bad design decision I made early on, re: registry. old: registry starts once, runs to the end new: registry is brought up on demand, then stopped Reason: there are times when we need a password-controlled registry, and times when we need it open. As long as I'm in here, I've also cleaned up some confusing code and fixed things so tests can run rootless again. Signed-off-by: Ed Santiago <santiago@redhat.com>
* Fix /auth compat endpointMatej Vasek2021-09-15
| | | | Signed-off-by: Matej Vasek <mvasek@redhat.com>
* fix use with localhost (testing)troyready2021-03-12
| | | | Signed-off-by: troyready <troy@troyready.com>
* apiv2 tests: add helpers to start/stop a local registryEd Santiago2021-03-08
...and a rudimentary set of /auth tests for PR#9589 (disabled). This simply adds a new start_registry() helper function that allocates a random unused port, pulls a registry image, creates a local certificate + random username + random password, and fires everything up. Since none of this is (yet) used in CI, this is very low risk. The only infinitessimally-risky change is using a dedicated subdirectory of $WORKDIR (instead of $WORKDIR itself) as the podman root. This fixes a dumb oversight on my part: the workdir has grown to be used for much more than just podman root; this change removes clutter and makes it easier for humans to debug in cases of problems. Signed-off-by: Ed Santiago <santiago@redhat.com>