mirror of
https://github.com/mitogen-hq/mitogen.git
synced 2025-02-26 21:00:41 +00:00

To do so the test suite allows a weak cryptographic alogorithm (SHA1) to be used, principally for CentOS 6 targets. This can be removed if/when support for older (legacy) targets is dropped. Only the test suite enables this known weak alogorithm. Mitogen as-shipped doesn't enable or disable algorithms.
35 lines
868 B
YAML
35 lines
868 B
YAML
- name: integration/process/unix_socket_cleanup.yml
|
|
hosts: test-targets[0]
|
|
tasks:
|
|
- mitogen_action_script:
|
|
script: |
|
|
import glob
|
|
result['sockets'] = glob.glob('/tmp/mitogen_unix*.sock')
|
|
register: socks
|
|
|
|
- shell: >
|
|
ANSIBLE_STRATEGY=mitogen_linear
|
|
ANSIBLE_SSH_ARGS="-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
|
|
ansible -m shell -c local -a whoami
|
|
{% for inv in ansible_inventory_sources %}
|
|
-i "{{ inv }}"
|
|
{% endfor %}
|
|
test-targets
|
|
args:
|
|
chdir: ../..
|
|
register: out
|
|
connection: local
|
|
when: is_mitogen
|
|
|
|
- mitogen_action_script:
|
|
script: |
|
|
import glob
|
|
result['sockets'] = glob.glob('/tmp/mitogen_unix*.sock')
|
|
register: socks2
|
|
|
|
- assert_equal:
|
|
left: socks
|
|
right: socks2
|
|
tags:
|
|
- custom_python_new_style_module
|