Skip to content

Commit

Permalink
Move edpm_update molecule to Zuul
Browse files Browse the repository at this point in the history
For a future change, we need a more "baremetal-like" environment to be
able to test a new feature (kpatch).
  • Loading branch information
cjeanner committed Nov 18, 2024
1 parent e197c75 commit ccbccb1
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 39 deletions.
1 change: 0 additions & 1 deletion .github/workflows/molecule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
- edpm_timezone
- edpm_telemetry
- edpm_telemetry_logging
- edpm_update
- edpm_users
- env_data
- edpm_pre_adoption_validation
Expand Down
14 changes: 0 additions & 14 deletions roles/edpm_update/molecule/default/Containerfile.j2

This file was deleted.

37 changes: 13 additions & 24 deletions roles/edpm_update/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,24 @@ dependency:
options:
role-file: collections.yml
driver:
name: podman
name: delegated
options:
managed: false
ansible_connection_options:
ansible_connection: local
platforms:
- command: /sbin/init
dockerfile: Containerfile.j2
image: ${EDPM_ANSIBLE_MOLECULE_IMAGE:-"ubi9/ubi-init"}
name: instance
privileged: true
registry:
url: ${EDPM_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"}
ulimits:
- host
- name: edpm-0.localdomain
groups:
- compute
provisioner:
log: true
name: ansible
inventory:
hosts:
all:
hosts:
instance:
canonical_hostname: edpm-0.localdomain

scenario:
test_sequence:
- dependency
- destroy
- create
- prepare
- converge
- verify
- cleanup
- destroy
- prepare
- converge
- cleanup
- destroy
verifier:
name: ansible
7 changes: 7 additions & 0 deletions roles/edpm_update/molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Prepare test_deps
hosts: all
gather_facts: false
roles:
- role: ../../../../molecule/common/test_deps
test_deps_setup_edpm: true
test_deps_setup_stream: true

- name: Prepare
hosts: all
Expand Down
5 changes: 5 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
parent: edpm-ansible-molecule-base
vars:
TEST_RUN: edpm_telemetry_power_monitoring
- job:
name: edpm-ansible-molecule-edpm_update
parent: edpm-ansible-molecule-base
vars:
TEST_RUN: edpm_update
- job:
name: edpm-ansible-tempest-multinode
parent: openstack-operator-tempest-multinode
2 changes: 2 additions & 0 deletions zuul.d/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- edpm-ansible-molecule-edpm_tripleo_cleanup
- edpm-ansible-molecule-edpm_tuned
- edpm-ansible-molecule-edpm_telemetry_power_monitoring
- edpm-ansible-molecule-edpm_update
- openstack-k8s-operators-content-provider
- adoption-standalone-to-crc-ceph-provider:
dependencies:
Expand Down Expand Up @@ -56,3 +57,4 @@
- ^roles/edpm_telemetry/*
- ^roles/edpm_pre_adoption_validation/*
- ^roles/edpm_tripleo_cleanup/*
- ^roles/edpm_update/*

0 comments on commit ccbccb1

Please sign in to comment.