Skip to content

Commit

Permalink
Switch Pulpcore testing to using puppet-pulpcore test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms authored and Odilhao committed Mar 15, 2024
1 parent f068e14 commit c5e05e1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
21 changes: 7 additions & 14 deletions pipelines/pulpcore/02-install.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
---
- name: Enable Postgresql 12 module if necessary
- name: Setup git repo
become: True
hosts:
- "{{ forklift_server_name }}"
- "{{ forklift_name }}"
vars_files:
- ../vars/install_base.yml
- ../vars/forklift_{{ pipeline_type }}.yml

- ../vars/forklift_pulpcore.yml
tasks:
- name: Enable postgresql 12 module
ansible.builtin.dnf:
name: '@postgresql:12'
state: present
when:
- pipeline_version is defined
- pipeline_version == 'nightly' or pipeline_version is version('3.28', '>=')
- pipeline_os is defined
- pipeline_os is search("centos8-stream")
- name: Install podman-docker
package:
name: podman-docker
state: installed

- name: install pulpcore
hosts:
Expand Down
20 changes: 14 additions & 6 deletions pipelines/pulpcore/03-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
---
- name: run tests
hosts:
- "{{ forklift_server_name }}"
become: True
hosts:
- "{{ forklift_name }}"
vars_files:
- ../vars/install_base.yml
- ../vars/forklift_{{ pipeline_type }}.yml
roles:
- pulp.pulp_installer.pulp_health_check
- ../vars/forklift_pulpcore.yml
tasks:
- name: Run acceptance tests
command: bundle exec rake beaker
args:
chdir: /src/puppet-pulpcore
environment:
BEAKER_HYPERVISOR: "docker"
BEAKER_provision: "yes"
BEAKER_setfile: "centos8-64{hostname=centos8-64.example.com}"
BEAKER_destroy: "no"
BEAKER_FACTER_PULPCORE_VERSION: "{{ pipeline_version }}"
4 changes: 3 additions & 1 deletion pipelines/vars/forklift_pulpcore.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
forklift_name: "pipe-pulp-{{ pipeline_version }}-{{ pipeline_os }}"

server_box:
box: "{{ pipeline_server_os | default(pipeline_os) }}"
memory: 4680

forklift_boxes:
"{{ {forklift_server_name: server_box} }}"
"{{ {forklift_name: server_box} }}"

pulp_install_source: packages
pulp_pkg_repo_gpgcheck: False
Expand Down

0 comments on commit c5e05e1

Please sign in to comment.