From 90973cdf7586554890e1ef1c9f8026df96166b84 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 3 Oct 2021 16:32:26 +0200 Subject: [PATCH] feat: add test for Rocky Linux 8 --- .drone.jsonnet | 6 +++--- .drone.yml | 10 ++++++---- molecule/default | 2 +- molecule/{centos8 => rocky8}/converge.yml | 2 -- molecule/{centos8 => rocky8}/create.yml | 0 molecule/{centos8 => rocky8}/destroy.yml | 0 molecule/{centos8 => rocky8}/molecule.yml | 4 ++-- molecule/{centos8 => rocky8}/prepare.yml | 0 molecule/{centos8 => rocky8}/tests/test_default.py | 0 9 files changed, 12 insertions(+), 12 deletions(-) rename molecule/{centos8 => rocky8}/converge.yml (50%) rename molecule/{centos8 => rocky8}/create.yml (100%) rename molecule/{centos8 => rocky8}/destroy.yml (100%) rename molecule/{centos8 => rocky8}/molecule.yml (91%) rename molecule/{centos8 => rocky8}/prepare.yml (100%) rename molecule/{centos8 => rocky8}/tests/test_default.py (100%) diff --git a/.drone.jsonnet b/.drone.jsonnet index 4e00da4..439fb8e 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -71,7 +71,7 @@ local PipelineDeployment(scenario='centos7') = { 'linting', ], trigger: { - ref: ['refs/heads/master', 'refs/tags/**'], + ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'], }, }; @@ -116,7 +116,7 @@ local PipelineDocumentation = { }, depends_on: [ 'testing-centos7', - 'testing-centos8', + 'testing-rocky8', ], }; @@ -155,7 +155,7 @@ local PipelineNotification = { [ PipelineLinting, PipelineDeployment(scenario='centos7'), - PipelineDeployment(scenario='centos8'), + PipelineDeployment(scenario='rocky8'), PipelineDocumentation, PipelineNotification, ] diff --git a/.drone.yml b/.drone.yml index 838f1cf..be1dc9c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,13 +62,14 @@ trigger: ref: - refs/heads/master - refs/tags/** + - refs/pull/** depends_on: - linting --- kind: pipeline -name: testing-centos8 +name: testing-rocky8 platform: os: linux @@ -85,7 +86,7 @@ steps: - name: ansible-molecule image: thegeeklab/molecule:3 commands: - - molecule test -s centos8 + - molecule test -s rocky8 environment: HCLOUD_TOKEN: from_secret: hcloud_token @@ -94,6 +95,7 @@ trigger: ref: - refs/heads/master - refs/tags/** + - refs/pull/** depends_on: - linting @@ -140,7 +142,7 @@ trigger: depends_on: - testing-centos7 - - testing-centos8 + - testing-rocky8 --- kind: pipeline @@ -180,6 +182,6 @@ depends_on: --- kind: signature -hmac: 1faa1e56e1790b1ac35110d8becd2e9597e3a9feb96cfa1738192f88c3488605 +hmac: 728dafd8f0ff6fedcd8d8b08072e795bb59ba1310cbe66119a36ddf8cd59097c ... diff --git a/molecule/default b/molecule/default index 575742e..62ea184 120000 --- a/molecule/default +++ b/molecule/default @@ -1 +1 @@ -centos8 \ No newline at end of file +rocky8 \ No newline at end of file diff --git a/molecule/centos8/converge.yml b/molecule/rocky8/converge.yml similarity index 50% rename from molecule/centos8/converge.yml rename to molecule/rocky8/converge.yml index 5159684..69f2b4b 100644 --- a/molecule/centos8/converge.yml +++ b/molecule/rocky8/converge.yml @@ -1,7 +1,5 @@ --- - name: Converge hosts: all - vars: - ansible_python_interpreter: /usr/libexec/platform-python roles: - role: xoxys.cacerts diff --git a/molecule/centos8/create.yml b/molecule/rocky8/create.yml similarity index 100% rename from molecule/centos8/create.yml rename to molecule/rocky8/create.yml diff --git a/molecule/centos8/destroy.yml b/molecule/rocky8/destroy.yml similarity index 100% rename from molecule/centos8/destroy.yml rename to molecule/rocky8/destroy.yml diff --git a/molecule/centos8/molecule.yml b/molecule/rocky8/molecule.yml similarity index 91% rename from molecule/centos8/molecule.yml rename to molecule/rocky8/molecule.yml index 90d6fac..63f9d7d 100644 --- a/molecule/centos8/molecule.yml +++ b/molecule/rocky8/molecule.yml @@ -9,8 +9,8 @@ dependency: driver: name: delegated platforms: - - name: centos8-cacerts - image: centos-8 + - name: rocky8-cacerts + image: rocky-8 server_type: cx11 lint: | /usr/local/bin/flake8 diff --git a/molecule/centos8/prepare.yml b/molecule/rocky8/prepare.yml similarity index 100% rename from molecule/centos8/prepare.yml rename to molecule/rocky8/prepare.yml diff --git a/molecule/centos8/tests/test_default.py b/molecule/rocky8/tests/test_default.py similarity index 100% rename from molecule/centos8/tests/test_default.py rename to molecule/rocky8/tests/test_default.py