Adapt testing to stack oriented framework
Change-Id: I88d48e309cb22d59c6cb3241231c6462f8fe017a
diff --git a/playbooks/roles/prepare-testframework/tasks/main.yaml b/playbooks/roles/prepare-testframework/tasks/main.yaml
new file mode 100644
index 0000000..cb8f3fd
--- /dev/null
+++ b/playbooks/roles/prepare-testframework/tasks/main.yaml
@@ -0,0 +1,30 @@
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+- name: Set test framework container image name and version
+ set_fact:
+ testfw_image_name: "{{ framework[test_framework][test_suite].image_name }}"
+ testfw_image_version: "{{ framework[test_framework][test_suite].image_version }}"
+ testfw_git_version: "{{ framework[test_framework].version }}"
+ test_filter: "{{ framework[test_framework][test_suite].filter | default(['all'], true) }}"
+
+# Prepare tests
+- include: "prepare-{{ test_framework }}.yaml"
+
+# vim: set ts=2 sw=2 expandtab: