Clark Boylan 8dfb9dc968 Add more robust testing of the registry
We use a non trivial image now (the registry's image in fact) and then
push with 4 processes at a time every time we push to the test registry.
The idea here is we're generating concurrency in the system that should
trip over the bugs that we are finding if they still exist.

Change-Id: I4f03132fa0fad6f40806030b14d429d29036a42f
2022-02-28 14:19:03 -08:00

81 lines
1.9 KiB
YAML

# This installs docker and runs a buildset registry
- hosts: all
roles:
- build-docker-image
- hosts: all
name: Set up for tests
vars:
tasks:
# Set facts here to apply to all plays below
- name: Set variables for all tests
set_fact:
workspace: /tmp/registry-test
local: false
- name: Add project atomic PPA
apt_repository:
repo: ppa:projectatomic/ppa
become: true
- name: Install packages
package:
name:
- docker-compose
- openssl
- skopeo
- buildah
- podman
- findutils
state: present
become: true
- name: Run setup tasks
include_tasks: setup.yaml
- hosts: all
name: Run docker standard registry test
tasks:
- name: Run docker test tasks
include_tasks: docker.yaml
- hosts: all
name: Run restricted buildset registry test
tasks:
- name: Run restricted buildset test tasks
include_tasks: restricted.yaml
- hosts: all
name: Run podman standard registry test
tasks:
- name: Run podman test tasks
include_tasks: podman.yaml
- hosts: all
name: Run docker buildset registry test
tasks:
- name: Run docker buildset test tasks
include_tasks: docker-buildset.yaml
- hosts: all
name: Run podman buildset registry test
tasks:
- name: Run podman buildset test tasks
include_tasks: podman-buildset.yaml
- hosts: all
name: Clean up after tests
tasks:
- name: Run cleanup tasks
include_tasks: cleanup.yaml
# If buildset_registry is defined, that means a parent job is running it;
# only if it is not defined does it mean that we are running it. If we
# are running it, pause the job so that child jobs will automatically
# use it.
- hosts: localhost
tasks:
- name: Pause the job
when: buildset_registry is not defined
zuul_return:
data:
zuul:
pause: true