Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
0001-run-tests-with-ara.patch
[root@bastion ansible]# cat 0001-run-tests-with-ara.patch
From af24cfe08bc33a2a63fd2ccc6736f35fd22cdc59 Mon Sep 17 00:00:00 2001
From: root <root@bastion.novalocal>
Date: Fri, 31 May 2019 12:39:49 +0000
Subject: [PATCH] run tests with ara
---
test/integration/integration.cfg | 5 +++++
test/integration/targets/ping/tasks/main.yml | 12 ++++++++++++
test/runner/requirements/integration.txt | 8 ++++++++
3 files changed, 25 insertions(+)
diff --git a/test/integration/integration.cfg b/test/integration/integration.cfg
index 8f232a276d..928b302004 100644
--- a/test/integration/integration.cfg
+++ b/test/integration/integration.cfg
@@ -5,7 +5,12 @@ force_handlers = True
interpreter_python = /set/ansible_python_interpreter/in/inventory
# prevent use of global inventory
inventory = /dev/null
+callback_plugins = /usr/local/lib/python3.6/dist-packages/ara/plugins/callback
[inventory]
# prevent tests from unintentionally passing when hosts are not found
host_pattern_mismatch = error
+
+[ara]
+api_client=http
+api_server=http://139.178.64.10:8000
diff --git a/test/integration/targets/ping/tasks/main.yml b/test/integration/targets/ping/tasks/main.yml
index bc93f98ad7..34388fbeef 100644
--- a/test/integration/targets/ping/tasks/main.yml
+++ b/test/integration/targets/ping/tasks/main.yml
@@ -20,6 +20,18 @@
ping:
register: result
+- name: DEBUG
+ debug:
+ msg: "{{ playbook_dir }}"
+
+- name: ls things
+ command: ls {{ item }}
+ loop:
+ - /usr/lib
+
+- name: run things
+ command: python3 -m ara.setup.callback_plugins
+
- name: assert the ping worked
assert:
that:
diff --git a/test/runner/requirements/integration.txt b/test/runner/requirements/integration.txt
index 469d21f998..18758dc01e 100644
--- a/test/runner/requirements/integration.txt
+++ b/test/runner/requirements/integration.txt
@@ -3,3 +3,11 @@ jinja2
junit-xml
ordereddict ; python_version < '2.7'
pyyaml
+git+https://github.com/ansible-community/ara@feature/1.0
+Django>=2.1.5
+djangorestframework>=3.9.1
+django-cors-headers
+django-filter
+dynaconf[yaml]
+whitenoise
+
--
2.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.