mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
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:
@@ -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
|
||||
@@ -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
|
||||
@@ -1 +1 @@
|
||||
centos-8
|
||||
fedora-latest
|
||||
@@ -92,19 +92,21 @@ pip install molecule[docker]>=3
|
||||
|
||||
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:
|
||||
* fedora-latest
|
||||
* centos-7
|
||||
* centos-8
|
||||
* c8s
|
||||
* c9s
|
||||
|
||||
### Running the tests inside the container
|
||||
|
||||
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
|
||||
@@ -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:
|
||||
|
||||
```
|
||||
molecule destroy -s centos-8
|
||||
molecule destroy -s c8s
|
||||
```
|
||||
|
||||
See [Running the tests](#running-the-tests) section for more information on available options.
|
||||
|
||||
@@ -40,16 +40,6 @@ stages:
|
||||
scenario: c8s
|
||||
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
|
||||
|
||||
|
||||
@@ -21,12 +21,6 @@ jobs:
|
||||
container_name: centos-7
|
||||
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
|
||||
parameters:
|
||||
job_name_suffix: C8S
|
||||
|
||||
@@ -128,43 +128,6 @@ stages:
|
||||
scenario: c8s
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user