Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
moreati committed May 22, 2024
1 parent 61113cb commit e2743cc
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 43 deletions.
4 changes: 2 additions & 2 deletions tests/ansible/all.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- import_playbook: setup/all.yml
tags: setup
- import_playbook: regression/all.yml
tags: regression
#- import_playbook: regression/all.yml
# tags: regression
- import_playbook: integration/all.yml
tags: integration
69 changes: 35 additions & 34 deletions tests/ansible/integration/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,40 @@
# This playbook imports all tests that are known to work at present.
#

- import_playbook: action/all.yml
tags: action
- import_playbook: async/all.yml
tags: async
- import_playbook: become/all.yml
tags: become
- import_playbook: connection/all.yml
tags: connection
- import_playbook: connection_delegation/all.yml
tags: connection_delegation
- import_playbook: connection_loader/all.yml
tags: connection_loader
#- import_playbook: action/all.yml
# tags: action
#- import_playbook: async/all.yml
# tags: async
#- import_playbook: become/all.yml
# tags: become
#- import_playbook: connection/all.yml
# tags: connection
#- import_playbook: connection_delegation/all.yml
# tags: connection_delegation
#- import_playbook: connection_loader/all.yml
# tags: connection_loader
- import_playbook: context_service/all.yml
tags: context_service
- import_playbook: glibc_caches/all.yml
tags: glibc_caches
- import_playbook: interpreter_discovery/all.yml
tags: interpreter_discovery
- import_playbook: local/all.yml
tags: local
- import_playbook: module_utils/all.yml
tags: module_utils
- import_playbook: playbook_semantics/all.yml
tags: playbook_semantics
- import_playbook: process/all.yml
tags: process
- import_playbook: runner/all.yml
tags: runner
- import_playbook: ssh/all.yml
tags: ssh
- import_playbook: strategy/all.yml
tags: strategy
- import_playbook: stub_connections/all.yml
tags: stub_connections
- import_playbook: transport_config/all.yml
tags: transport_config
#- import_playbook: glibc_caches/all.yml
# tags: glibc_caches
#- import_playbook: interpreter_discovery/all.yml
# tags: interpreter_discovery
#- import_playbook: local/all.yml
# tags: local
#- import_playbook: module_utils/all.yml
# tags: module_utils
#- import_playbook: playbook_semantics/all.yml
# tags: playbook_semantics
#- import_playbook: process/all.yml
# tags: process
#- import_playbook: runner/all.yml
# tags: runner
#- import_playbook: ssh/all.yml
# tags: ssh
#- import_playbook: strategy/all.yml
# tags: strategy
#- import_playbook: stub_connections/all.yml
# tags: stub_connections
#- import_playbook: transport_config/all.yml
# tags: transport_config
#
8 changes: 4 additions & 4 deletions tests/ansible/integration/context_service/all.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- import_playbook: disconnect_cleanup.yml
- import_playbook: lru_one_target.yml
- import_playbook: reconnection.yml
- import_playbook: remote_name.yml
#- import_playbook: disconnect_cleanup.yml
#- import_playbook: lru_one_target.yml
#- import_playbook: reconnection.yml
#- import_playbook: remote_name.yml
- import_playbook: remote_tmp.yml
15 changes: 12 additions & 3 deletions tests/ansible/integration/context_service/remote_tmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
- name: integration/context_service/remote_tmp.yml
hosts: test-targets
gather_facts: false
vars:
ansible_remote_tmp: ~/.ansible/remote_tmp_test
tasks:
- name: Exercise ansible_remote_tmp
copy:
Expand All @@ -13,9 +11,20 @@
content: |
Created by integration/context_service/remote_tmp.yml
- debug:
msg: ANSIBLE_REMOTE_TMP={{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}

- command:
ls -l "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"
changed_when: false
register: out

- debug:
var: out

- name: Delete ansible_remote_tmp
raw: |
rm -rf "{{ ansible_remote_tmp }}"
rm -rf "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"
- name: Do something else that requires ansible_remote_tmp
file:
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ passenv =
AWS_SECRET_ACCESS_KEY
HOME
setenv =
ANSIBLE_REMOTE_TMP = ~/.local/remote_tmp_test
# See also azure-pipelines.yml
ANSIBLE_STRATEGY = mitogen_linear
ANSIBLE_VERBOSITY=3
NOCOVERAGE_ERASE = 1
NOCOVERAGE_REPORT = 1
# Only applicable to MODE=mitogen
Expand Down

0 comments on commit e2743cc

Please sign in to comment.