upstream CI: removed all CentOS 8 support.

CentOS 8 images are not supported anymore, and we are using CentOS 8
Stream images.

This patch removes all configuration for CentOS 8 and updates test
README to point to the available container images.
This commit is contained in:
Rafael Guterres Jeffman
2022-05-09 14:01:31 -03:00
parent 7011283335
commit d3af87c731
7 changed files with 7 additions and 96 deletions

View File

@@ -1,19 +0,0 @@
---
driver:
name: docker
platforms:
- name: centos-8-build
image: "centos:centos8"
pre_build_image: true
hostname: ipaserver.test.local
dns_servers:
- 8.8.8.8
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
command: /usr/sbin/init
privileged: true
provisioner:
name: ansible
playbooks:
prepare: ../resources/playbooks/prepare-build.yml
prerun: false

View File

@@ -1,19 +0,0 @@
---
driver:
name: docker
platforms:
- name: centos-8
image: quay.io/ansible-freeipa/upstream-tests:centos-8
pre_build_image: true
hostname: ipaserver.test.local
dns_servers:
- 127.0.0.1
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
command: /usr/sbin/init
privileged: true
provisioner:
name: ansible
playbooks:
prepare: ../resources/playbooks/prepare.yml
prerun: false

View File

@@ -1 +1 @@
centos-8 fedora-latest

View File

@@ -92,19 +92,21 @@ pip install molecule[docker]>=3
Now you can start a test container using the following command: Now you can start a test container using the following command:
``` ```
molecule create -s centos-8 molecule create -s c8s
``` ```
Note: Currently the containers available for running the tests are: Note: Currently the containers available for running the tests are:
* fedora-latest
* centos-7 * centos-7
* centos-8 * c8s
* c9s
### Running the tests inside the container ### Running the tests inside the container
To run the tests you will use pytest (works the same as for VMs). To run the tests you will use pytest (works the same as for VMs).
``` ```
RUN_TESTS_IN_DOCKER=1 IPA_SERVER_HOST=centos-8 pytest RUN_TESTS_IN_DOCKER=1 IPA_SERVER_HOST=c8s pytest
``` ```
### Cleaning up after tests ### Cleaning up after tests
@@ -112,7 +114,7 @@ RUN_TESTS_IN_DOCKER=1 IPA_SERVER_HOST=centos-8 pytest
After running the tests you should probably destroy the test container using: After running the tests you should probably destroy the test container using:
``` ```
molecule destroy -s centos-8 molecule destroy -s c8s
``` ```
See [Running the tests](#running-the-tests) section for more information on available options. See [Running the tests](#running-the-tests) section for more information on available options.

View File

@@ -40,16 +40,6 @@ stages:
scenario: c8s scenario: c8s
ansible_version: ">=2.9,<2.10" ansible_version: ">=2.9,<2.10"
# # CentOS 8
#
# - stage: CentOS8_Ansible_2_9
# dependsOn: []
# jobs:
# - template: templates/group_tests.yml
# parameters:
# build_number: $(Build.BuildNumber)
# scenario: centos-8
# ansible_version: ">=2.9,<2.10"
# CentOS 7 # CentOS 7

View File

@@ -21,12 +21,6 @@ jobs:
container_name: centos-7 container_name: centos-7
build_scenario_name: centos-7-build build_scenario_name: centos-7-build
# - template: templates/build_container.yml
# parameters:
# job_name_suffix: Centos8
# container_name: centos-8
# build_scenario_name: centos-8-build
- template: templates/build_container.yml - template: templates/build_container.yml
parameters: parameters:
job_name_suffix: C8S job_name_suffix: C8S

View File

@@ -128,43 +128,6 @@ stages:
scenario: c8s scenario: c8s
ansible_version: "" ansible_version: ""
# # CentOS 8
#
# - stage: CentOS8_Ansible_2_9
# dependsOn: []
# jobs:
# - template: templates/group_tests.yml
# parameters:
# build_number: $(Build.BuildNumber)
# scenario: centos-8
# ansible_version: ">=2.9,<2.10"
#
# - stage: CentOS8_Ansible_Core_2_11
# dependsOn: []
# jobs:
# - template: templates/group_tests.yml
# parameters:
# build_number: $(Build.BuildNumber)
# scenario: centos-8
# ansible_version: "-core >=2.11,<2.12"
#
# - stage: CentOS8_Ansible_Core_2_12
# dependsOn: []
# jobs:
# - template: templates/group_tests.yml
# parameters:
# build_number: $(Build.BuildNumber)
# scenario: centos-8
# ansible_version: "-core >=2.12,<2.13"
#
# - stage: CentOS8_Ansible_latest
# dependsOn: []
# jobs:
# - template: templates/group_tests.yml
# parameters:
# build_number: $(Build.BuildNumber)
# scenario: centos-8
# ansible_version: ""
# CentOS 7 # CentOS 7