Adapt xtesting-onap to stack oriented framework

This commit adds an initial testing capability for onap with the following two testsuits
support.

1. infra-healthcheck
2. healthcheck

Signed-off-by: eprasad <prasad.mukhedkar@est.tech>
Change-Id: I1f669880ba7ae9301c8f86974072e114ae28951d
Signed-off-by: eprasad <prasad.mukhedkar@est.tech>
diff --git a/playbooks/roles/prepare-testframework/tasks/prepare-xtesting-healthcheck.yaml b/playbooks/roles/prepare-testframework/tasks/prepare-xtesting-healthcheck.yaml
new file mode 100644
index 0000000..461c34c
--- /dev/null
+++ b/playbooks/roles/prepare-testframework/tasks/prepare-xtesting-healthcheck.yaml
@@ -0,0 +1,69 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2020 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 work and result directories
+  set_fact:
+    testfw_workdir: "{{ test_cache }}/{{ test_framework }}/{{ test_type }}"
+    testfw_configdir: "{{ config_path }}/{{ test_framework }}"
+    testfw_resultdir: "{{ test_cache }}/{{ test_framework }}/{{ test_type }}/results"
+
+- name: Ensure {{ testfw_workdir }} exists and empty
+  file:
+    path: "{{ testfw_workdir }}"
+    state: "{{ item }}"
+    mode: 0755
+  with_items:
+    - absent
+    - directory
+  become: true
+
+- name: Ensure {{ testfw_configdir }} exists and empty
+  file:
+    path: "{{ testfw_configdir }}"
+    state: "{{ item }}"
+    mode: 0755
+  with_items:
+    - absent
+    - directory
+  become: true
+
+- name: Ensure {{ testfw_resultdir }} exists and empty
+  file:
+    path: "{{ testfw_resultdir }}"
+    state: "{{ item }}"
+    mode: 0755
+  with_items:
+    - absent
+    - directory
+  become: true
+
+- name: Delete healthcheck job
+  k8s:
+    state: absent
+    api: batch/v1
+    kind: Job
+    namespace: onap
+    name: "xtesting-onap-{{ test_type }}"
+
+- name: Construct and Save healthcheck deployment to file
+  template:
+    src: "healthcheck_deployment.j2"
+    dest: "{{ testfw_configdir }}/healthcheck-{{ test_type }}.yaml"
+
+# vim: set ts=2 sw=2 expandtab: