summaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-15 12:32:33 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-15 13:57:17 +0200
commitb19532d7b87b700851be3fa92a52731374d31413 (patch)
tree30f211a45e527778306c5ac5c63ae32c920ebb2a /ansible/roles
parent8e67c4a1ff21428f9741f90d8ee57b65b83508ca (diff)
[ANSIBLE][MOLECULE] Skip checking packager cache cleaning idempotency
Change-Id: I621bd2ed4452c10a6747392a709d1c17282a11ef Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles')
-rwxr-xr-xansible/roles/package-repository-check/molecule/default/molecule.yml19
-rwxr-xr-xansible/roles/package-repository-check/molecule/ubuntu/molecule.yml19
-rwxr-xr-xansible/roles/package-repository-check/tasks/Debian.yml5
-rwxr-xr-xansible/roles/package-repository-check/tasks/RedHat.yml2
4 files changed, 7 insertions, 38 deletions
diff --git a/ansible/roles/package-repository-check/molecule/default/molecule.yml b/ansible/roles/package-repository-check/molecule/default/molecule.yml
index 7bb276e4..78d6f32a 100755
--- a/ansible/roles/package-repository-check/molecule/default/molecule.yml
+++ b/ansible/roles/package-repository-check/molecule/default/molecule.yml
@@ -31,25 +31,6 @@ provisioner:
name: ansible
env:
ANSIBLE_ROLES_PATH: ../../../../test/roles
-scenario:
- test_sequence:
- - lint
- - cleanup
- - destroy
- - dependency
- - syntax
- - create
- - prepare
- - converge
- # - idempotence
- # --> Action: 'idempotence'
- # ERROR: Idempotence test failed because of the following tasks:
- # * [infra_host] => package-repository-check : Clean yum cache
- # * [node0] => package-repository-check : Clean yum cache
- - side_effect
- - verify
- - cleanup
- - destroy
verifier:
name: testinfra
options:
diff --git a/ansible/roles/package-repository-check/molecule/ubuntu/molecule.yml b/ansible/roles/package-repository-check/molecule/ubuntu/molecule.yml
index 84ccfb85..a641ae0a 100755
--- a/ansible/roles/package-repository-check/molecule/ubuntu/molecule.yml
+++ b/ansible/roles/package-repository-check/molecule/ubuntu/molecule.yml
@@ -27,25 +27,6 @@ provisioner:
host_vars:
infrastructure-server:
cluster_ip: 6.5.4.3
-scenario:
- test_sequence:
- - lint
- - cleanup
- - destroy
- - dependency
- - syntax
- - create
- - prepare
- - converge
- # - idempotence
- # --> Action: 'idempotence'
- # ERROR: Idempotence test failed because of the following tasks:
- # * [infra_host] => package-repository-check : Clean yum cache
- # * [node0] => package-repository-check : Clean yum cache
- - side_effect
- - verify
- - cleanup
- - destroy
verifier:
name: testinfra
options:
diff --git a/ansible/roles/package-repository-check/tasks/Debian.yml b/ansible/roles/package-repository-check/tasks/Debian.yml
index 45a2b1cf..bfa21c82 100755
--- a/ansible/roles/package-repository-check/tasks/Debian.yml
+++ b/ansible/roles/package-repository-check/tasks/Debian.yml
@@ -6,6 +6,8 @@
command: apt clean && apt autoclean
args:
warn: false
+ tags:
+ - molecule-idempotence-notest
# Refresh cache to ensure repo is reachable
- name: Update apt cache
apt:
@@ -13,6 +15,7 @@
state: latest
tags:
- skip_ansible_lint # Prevent '[403] Package installs should not use latest' ansible lint task rule
+ - molecule-idempotence-notest
rescue:
- name: Fail if apt cache updating failed
fail:
@@ -34,3 +37,5 @@
service:
name: resolvconf
state: restarted
+ tags:
+ - molecule-idempotence-notest
diff --git a/ansible/roles/package-repository-check/tasks/RedHat.yml b/ansible/roles/package-repository-check/tasks/RedHat.yml
index e841f172..b0466b5e 100755
--- a/ansible/roles/package-repository-check/tasks/RedHat.yml
+++ b/ansible/roles/package-repository-check/tasks/RedHat.yml
@@ -6,6 +6,8 @@
command: yum clean all
args:
warn: false
+ tags:
+ - molecule-idempotence-notest
# Refresh cache to ensure repo is reachable
- name: Update yum cache
yum: