aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/inventory3
-rw-r--r--tests/requirements.txt2
-rw-r--r--tests/rundeck_files/test.yaml13
-rw-r--r--tests/test.yml10
-rw-r--r--tests/tokens.properties1
5 files changed, 22 insertions, 7 deletions
diff --git a/tests/inventory b/tests/inventory
index 878877b..2302eda 100644
--- a/tests/inventory
+++ b/tests/inventory
@@ -1,2 +1 @@
1localhost localhost ansible_connection=local
2
diff --git a/tests/requirements.txt b/tests/requirements.txt
new file mode 100644
index 0000000..3f27cc4
--- /dev/null
+++ b/tests/requirements.txt
@@ -0,0 +1,2 @@
1httpie
2ansible
diff --git a/tests/rundeck_files/test.yaml b/tests/rundeck_files/test.yaml
new file mode 100644
index 0000000..19fe18d
--- /dev/null
+++ b/tests/rundeck_files/test.yaml
@@ -0,0 +1,13 @@
1- defaultTab: summary
2 description: Test job
3 executionEnabled: true
4 loglevel: INFO
5 name: Test job 2
6 nodeFilterEditable: false
7 scheduleEnabled: true
8 sequence:
9 commands:
10 - exec: "false"
11 keepgoing: false
12 strategy: node-first
13
diff --git a/tests/test.yml b/tests/test.yml
index 25ef811..5d85628 100644
--- a/tests/test.yml
+++ b/tests/test.yml
@@ -1,8 +1,8 @@
1--- 1---
2- hosts: localhost 2- hosts: localhost
3 roles: 3 roles:
4 - role: ansible-rundeck-jobs 4 - role: ../../ansible-rundeck-jobs
5 rundeck_api_url: https://rundeck.example.org 5 rundeck_api_url: http://localhost:4440/api
6 rundeck_project: Test 6 rundeck_project: test
7 rundeck_api_token: token 7 rundeck_api_token: testtoken
8 rundeck_jobs_path: tests/rundeck_files 8 rundeck_jobs_path: rundeck_files
diff --git a/tests/tokens.properties b/tests/tokens.properties
new file mode 100644
index 0000000..3f44bf8
--- /dev/null
+++ b/tests/tokens.properties
@@ -0,0 +1 @@
admin: testtoken, admin