Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR 1062 tests #1081

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
#
9 changes: 5 additions & 4 deletions tests/ansible/integration/context_service/all.yml
Original file line number Diff line number Diff line change
@@ -1,4 +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
35 changes: 35 additions & 0 deletions tests/ansible/integration/context_service/remote_tmp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# issue #1061: ensure remote temporary directory is recreated

- name: integration/context_service/remote_tmp.yml
hosts: test-targets
gather_facts: false
tasks:
- name: Exercise ansible_remote_tmp
copy:
dest: canary
mode: u=rw,go=
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 "{{ lookup('env', 'ANSIBLE_REMOTE_TMP') }}"

- name: Do something else that requires ansible_remote_tmp
file:
path: canary
state: absent
tags:
- issue_1061
- remote_tmp
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
Loading