issue #164: basic connection loader tests.
parent
20ecd0af02
commit
680dc1bf68
@ -0,0 +1,3 @@
|
||||
- import_playbook: local_blemished.yml
|
||||
- import_playbook: paramiko_unblemished.yml
|
||||
- import_playbook: ssh_blemished.yml
|
@ -0,0 +1,14 @@
|
||||
# Ensure 'local' connections are grabbed.
|
||||
|
||||
- hosts: all
|
||||
any_errors_fatal: true
|
||||
tasks:
|
||||
- name: integration/connection_loader__local_blemished.yml
|
||||
determine_strategy:
|
||||
|
||||
- custom_python_detect_environment:
|
||||
connection: local
|
||||
register: out
|
||||
|
||||
- assert:
|
||||
that: out.mitogen_loaded or not is_mitogen
|
@ -0,0 +1,12 @@
|
||||
# Ensure paramiko connections aren't grabbed.
|
||||
|
||||
- hosts: all
|
||||
any_errors_fatal: true
|
||||
tasks:
|
||||
- name: integration/connection_loader__paramiko_unblemished.yml
|
||||
custom_python_detect_environment:
|
||||
connection: paramiko
|
||||
register: out
|
||||
|
||||
- assert:
|
||||
that: not out.mitogen_loaded
|
@ -0,0 +1,14 @@
|
||||
# Ensure 'ssh' connections are grabbed.
|
||||
|
||||
- hosts: all
|
||||
any_errors_fatal: true
|
||||
tasks:
|
||||
- name: integration/connection_loader__ssh_blemished.yml
|
||||
determine_strategy:
|
||||
|
||||
- custom_python_detect_environment:
|
||||
connection: ssh
|
||||
register: out
|
||||
|
||||
- assert:
|
||||
that: out.mitogen_loaded or not is_mitogen
|
Loading…
Reference in New Issue