Skip to content

Commit

Permalink
issue #340: one more test, update Changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
dw committed Aug 18, 2018
1 parent 916e466 commit ad365da
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Expand Up @@ -33,6 +33,11 @@ v0.2.3 (2018-08-??)
Mitogen for Ansible
~~~~~~~~~~~~~~~~~~~

* `#251 <https://github.com/dw/mitogen/issues/251>`_,
`#340 <https://github.com/dw/mitogen/issues/340>`_: Connection Delegation
could establish connections to the wrong target when ``delegate_to:`` is
present.

* `#291 <https://github.com/dw/mitogen/issues/291>`_: when Mitogen had
previously been installed using ``pip`` or ``setuptools``, the globally
installed version could conflict with a newer version bundled with an
Expand Down
25 changes: 25 additions & 0 deletions tests/ansible/integration/delegation/stack_construction.yml
Expand Up @@ -18,6 +18,13 @@

- name: integration/delegation/stack_construction.yml
hosts: cd-normal
tasks:
# used later for local_action test.
- local_action: custom_python_detect_environment
register: local_env


- hosts: cd-normal
any_errors_fatal: true
tasks:
- mitogen_get_stack:
Expand Down Expand Up @@ -281,6 +288,24 @@
]
- hosts: cd-newuser-normal-normal
tasks:
- local_action: mitogen_get_stack
register: out
- assert:
that: |
out.result == [
{
'kwargs': {
'python_path': [
hostvars['cd-normal'].local_env.sys_executable
],
},
'method': 'local',
},
]
- hosts: cd-newuser-doas-normal
tasks:
- mitogen_get_stack:
Expand Down

0 comments on commit ad365da

Please sign in to comment.