From db8039618601088cca351a3d3ed8acf73b368778 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 26 Jan 2022 21:09:43 +0100 Subject: [PATCH] feat: add test for Rocky Linux 8 (#1) Co-authored-by: Robert Kaussow Co-committed-by: Robert Kaussow --- .drone.jsonnet | 6 +++--- .drone.yml | 10 ++++++---- molecule/default | 2 +- molecule/{centos8 => rocky8}/converge.yml | 1 - 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(+), 11 deletions(-) rename molecule/{centos8 => rocky8}/converge.yml (82%) rename molecule/{centos8 => rocky8}/create.yml (100%) rename molecule/{centos8 => rocky8}/destroy.yml (100%) rename molecule/{centos8 => rocky8}/molecule.yml (92%) 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 d0aac95..b8b6e83 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: 23a7011a86e379216d3808bd6e6ef297271124348d3853519e48990c6223073f +hmac: fc5f9e039193be0005c8c3b139b6a31d7b44c42f2222812b72763e1ff37e1d9c ... 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 82% rename from molecule/centos8/converge.yml rename to molecule/rocky8/converge.yml index 2d96ca3..114aadf 100644 --- a/molecule/centos8/converge.yml +++ b/molecule/rocky8/converge.yml @@ -2,7 +2,6 @@ - name: Converge hosts: all vars: - ansible_python_interpreter: /usr/libexec/platform-python lvm_volumes: - name: lv_test group: vg_test 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 92% rename from molecule/centos8/molecule.yml rename to molecule/rocky8/molecule.yml index 57d14fc..5e1bc3f 100644 --- a/molecule/centos8/molecule.yml +++ b/molecule/rocky8/molecule.yml @@ -9,8 +9,8 @@ dependency: driver: name: delegated platforms: - - name: centos8-lvm - image: centos-8 + - name: rocky8-lvm + image: rocky-8 server_type: cx11 volume: True lint: | 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