summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-19 14:36:11 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-20 11:32:54 +0800
commit88f4e7f34bda4fbfc4ee6d513ffbec772037be1f (patch)
tree083cf0ec5a7a57a51079ca6f2bdbbdfccf6c21fa
parentd9af3b2977080be6ab33fcf785f726625e46f370 (diff)
Use different folder for cached data
- `dump` is for raw testing data and logs from remote - `cache` for temporary data required for testing Change-Id: I540338eae2dd7bbd14b359e1a0dbce186ada902b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
-rw-r--r--.gitignore1
-rw-r--r--resources/metric/nDPI.yaml8
-rw-r--r--tests/integration/group_vars/all1
3 files changed, 6 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index a098d85d..298e4d8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,6 +76,7 @@ ChangeLog
# integration data
/tests/integration/*.retry
+/tests/integration/.cache
/tests/integration/dump
/tests/integration/hosts
/tests/integration/reports
diff --git a/resources/metric/nDPI.yaml b/resources/metric/nDPI.yaml
index 0391302a..41bedc3d 100644
--- a/resources/metric/nDPI.yaml
+++ b/resources/metric/nDPI.yaml
@@ -10,9 +10,9 @@
- name: prepare sample pcap file
get_url:
- url: "https://build.opnfv.org/artifacts.opnfv.org/qtip/utilities/test.pcap"
- dest: "{{ qtip_dump }}/localhost/{{ nDPI_file }}"
- validate_certs: no # required when using proxy for https
+ url: "http://artifacts.opnfv.org/qtip/utilities/test.pcap"
+ dest: "{{ qtip_cache }}/{{ nDPI_file }}"
+ # validate_certs: no # required when using proxy for https
run_once: yes
delegate_to: localhost
@@ -60,7 +60,7 @@
- name: copy sample packet file
copy:
- src: "{{ qtip_dump }}/localhost/{{ nDPI_file }}"
+ src: "{{ qtip_cache}}/{{ nDPI_file }}"
dest: "{{ nDPI_cwd }}/example/{{ nDPI_file }}"
- name:
diff --git a/tests/integration/group_vars/all b/tests/integration/group_vars/all
index a84ab51f..251b1420 100644
--- a/tests/integration/group_vars/all
+++ b/tests/integration/group_vars/all
@@ -2,3 +2,4 @@ qtip_resources: ../../resources
qtip_reports: ./reports
qtip_fixtures: ./fixtures
qtip_dump: ./dump
+qtip_cache: ./.cache