summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-04-19 15:48:20 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-19 15:48:20 +0000
commite307e97ba9c0163b34d91d55cfca51c63848fd83 (patch)
treed7ae7bfb03a37216727ec2dafdf408bc2f4f0465
parent37f8f68fd83cc062cc57b72a0da580f186b5152b (diff)
parentf3f5be4bdb859b64b50865c1fa09925a6c2b4218 (diff)
Merge "Optimize test for 'resource-data' role"
-rw-r--r--ansible/roles/resource-data/molecule/default/group_vars/all.yml2
-rw-r--r--ansible/test/images/docker/centos7/Dockerfile2
-rw-r--r--ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml1
-rw-r--r--ansible/test/roles/prepare-resource-data/tasks/prepare-resource-server.yml6
4 files changed, 2 insertions, 9 deletions
diff --git a/ansible/roles/resource-data/molecule/default/group_vars/all.yml b/ansible/roles/resource-data/molecule/default/group_vars/all.yml
index 558eacb2..46ab3e04 100644
--- a/ansible/roles/resource-data/molecule/default/group_vars/all.yml
+++ b/ansible/roles/resource-data/molecule/default/group_vars/all.yml
@@ -1,5 +1,5 @@
---
-app_data_path: /opt/myleculeapp
+app_data_path: /opt/moleculeapp
aux_data_path: "{{ app_data_path }}/runtime_images_source_dir"
resources_dir: /data
resources_filename: resources_package.tar
diff --git a/ansible/test/images/docker/centos7/Dockerfile b/ansible/test/images/docker/centos7/Dockerfile
index 67e3fb93..0f6e5596 100644
--- a/ansible/test/images/docker/centos7/Dockerfile
+++ b/ansible/test/images/docker/centos7/Dockerfile
@@ -3,7 +3,7 @@ FROM centos/systemd
RUN yum -y update && yum clean all
RUN yum -y install openssh-server sudo openssh-clients \
- epel-release python-docker-py iproute e2fsprogs
+ epel-release python-docker-py iproute e2fsprogs file
RUN systemctl enable sshd.service
VOLUME ["/run"]
diff --git a/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml b/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
index b55842ac..dfaca80b 100644
--- a/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
+++ b/ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
@@ -12,5 +12,4 @@
name: nfs-utils
state: present
when:
- - resources_on_nfs is defined
- resources_on_nfs
diff --git a/ansible/test/roles/prepare-resource-data/tasks/prepare-resource-server.yml b/ansible/test/roles/prepare-resource-data/tasks/prepare-resource-server.yml
index 4057ba14..1f125557 100644
--- a/ansible/test/roles/prepare-resource-data/tasks/prepare-resource-server.yml
+++ b/ansible/test/roles/prepare-resource-data/tasks/prepare-resource-server.yml
@@ -1,9 +1,4 @@
---
-- name: Install file exacutable if not there for archive compression checking
- package:
- name: file
- state: present
-
- name: "Create resource dir {{ resources_dir }}"
file:
path: "{{ resources_dir }}/{{ subdir }}"
@@ -68,5 +63,4 @@
- name: Export nfs
command: exportfs -ar
when:
- - resources_on_nfs is defined
- resources_on_nfs