Optimize test for 'resource-data' role 92/85692/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Thu, 18 Apr 2019 13:26:49 +0000 (15:26 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Thu, 18 Apr 2019 13:26:49 +0000 (15:26 +0200)
Moved 'file' package installation from Molecule's
'prepare' stage to Dockerfile to shorten the test
invocation.

Change-Id: Icbb805c54a4fd42003d0cde037fa56208bd6008a
Issue-ID: OOM-1809
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/roles/resource-data/molecule/default/group_vars/all.yml
ansible/test/images/docker/centos7/Dockerfile
ansible/test/roles/prepare-resource-data/tasks/prepare-infra-server.yml
ansible/test/roles/prepare-resource-data/tasks/prepare-resource-server.yml

index 558eacb..46ab3e0 100644 (file)
@@ -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
index 67e3fb9..0f6e559 100644 (file)
@@ -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"]
index 4057ba1..1f12555 100644 (file)
@@ -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