aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/samples/helloworld.yml
diff options
context:
space:
mode:
authorAjay Kumar <ajay4.kumar@orange.com>2021-04-05 16:08:01 +0530
committerCédric Ollivier <cedric.ollivier@orange.com>2021-04-27 17:23:38 +0200
commit95611ad4a2943831f710c32867d8636f03021346 (patch)
tree68a85ed47cdb7e7cab64f06e6436deeca836fa4a /xtesting/samples/helloworld.yml
parent49504223bc2ca476e63484e98d8b4cdbe299a09d (diff)
Add an Ansible driver
It calls ansible_runner.interface.run() by converting the testcase description data to kwargs. It only overrides quiet and artifact_dir to implement the Xtesting behavior. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ifd09810400babc0f2b81f2c33edf55a3ed88807b Signed-off-by: Ajay kumar <ajay4.kumar@orange.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/samples/helloworld.yml')
-rw-r--r--xtesting/samples/helloworld.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/xtesting/samples/helloworld.yml b/xtesting/samples/helloworld.yml
new file mode 100644
index 00000000..399f0c04
--- /dev/null
+++ b/xtesting/samples/helloworld.yml
@@ -0,0 +1,6 @@
+---
+- name: Hello World!
+ hosts: 127.0.0.1
+ tasks:
+ - name: Hello World!
+ shell: echo "Hello World!"