zuul-operator/playbooks/zuul-operator-functional/tasks/test_registry.yaml
James E. Blair 5bf96c1e30 Fix functional test job
* Pin minikube to 1.22.0

Version 1.23.0 is failing with
  error: unable to recognize "deploy/crds/zuul-ci_v1alpha2_zuul_crd.yaml":
    no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

Until we learn more, pin to the previously working k8s version.

* Add debug log-level to the podman login test command

This change should improve the test failure debugging where it
currently may just prints "Shutting down, got signal: Terminated".

* Remove "https://" from registry login

f8136e70f9
Added path-based authentication to "podman login" which they argue
is incompatible with including https:// in the registry identifier.
Doing so now produces an error.

Co-Authored-By: Tristan Cacqueray <tdecacqu@redhat.com>
Change-Id: Ic44b56a2eb6ac15cc5f4af5312fa4e3956d6e457
2021-09-09 07:29:00 -07:00

24 lines
649 B
YAML

- k8s:
namespace: default
definition:
apiVersion: batch/v1
kind: Job
metadata:
name: test-registry
spec:
template:
spec:
containers:
- name: test-registry
image: quay.io/containers/podman:latest
command: ['podman', '--log-level=debug', 'login', '--tls-verify=false', 'zuul-registry', '-u', 'testuser', '-p', 'testpass']
securityContext:
privileged: true
restartPolicy: Never
backoffLimit: 4
wait: yes
wait_timeout: 300
wait_condition:
type: Complete
status: "True"