mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Copy collection integration tests in
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
- name: Set the value of AWX_PROOT_SHOW_PATHS to a baseline
|
||||
tower_settings:
|
||||
name: AWX_PROOT_SHOW_PATHS
|
||||
value: '["/var/lib/awx/projects/"]'
|
||||
|
||||
- name: Set the value of AWX_PROOT_SHOW_PATHS to get an error back from Tower
|
||||
tower_settings:
|
||||
settings:
|
||||
AWX_PROOT_SHOW_PATHS:
|
||||
'not': 'a valid'
|
||||
'tower': 'setting'
|
||||
register: result
|
||||
ignore_errors: True
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is failed"
|
||||
|
||||
- name: Set the value of AWX_PROOT_SHOW_PATHS
|
||||
tower_settings:
|
||||
name: AWX_PROOT_SHOW_PATHS
|
||||
value: '["/var/lib/awx/projects/", "/tmp"]'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Attempt to set the value of AWX_PROOT_BASE_PATH to what it already is
|
||||
tower_settings:
|
||||
name: AWX_PROOT_BASE_PATH
|
||||
value: /tmp
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
msg: "{{ result }}"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is not changed"
|
||||
|
||||
- name: Apply a single setting via settings
|
||||
tower_settings:
|
||||
name: AWX_PROOT_SHOW_PATHS
|
||||
value: '["/var/lib/awx/projects/", "/var/tmp"]'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Apply multiple setting via settings with no change
|
||||
tower_settings:
|
||||
name: AWX_PROOT_BASE_PATH
|
||||
value: /tmp
|
||||
name: AWX_PROOT_SHOW_PATHS
|
||||
value: '["/var/lib/awx/projects/", "/var/tmp"]'
|
||||
register: result
|
||||
|
||||
- debug:
|
||||
msg: "{{ result }}"
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is not changed"
|
||||
|
||||
- name: Apply multiple setting via settings with change
|
||||
tower_settings:
|
||||
name: AWX_PROOT_BASE_PATH
|
||||
value: /tmp
|
||||
name: AWX_PROOT_SHOW_PATHS
|
||||
value: '["/var/lib/awx/new_projects/", "/tmp"]'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
Reference in New Issue
Block a user