diff options
author | Matt Clay <matt@mystile.com> | 2019-01-12 00:12:06 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-01-12 00:27:06 +0100 |
commit | d59bc9ae48875da9ffe2153587c32fd998a197fc (patch) | |
tree | 965e7555c054cfae6c7157bdba9240682c65a7ae /test/integration/targets/connection | |
parent | Correct docsite typos: it's -> its (#50812) (diff) | |
download | ansible-d59bc9ae48875da9ffe2153587c32fd998a197fc.tar.xz ansible-d59bc9ae48875da9ffe2153587c32fd998a197fc.zip |
Move unrelated connection test to separate target.
Diffstat (limited to 'test/integration/targets/connection')
-rw-r--r-- | test/integration/targets/connection/aliases | 1 | ||||
-rw-r--r-- | test/integration/targets/connection/inventory | 2 | ||||
-rw-r--r-- | test/integration/targets/connection/play.yml | 19 | ||||
-rw-r--r-- | test/integration/targets/connection/plugin/dummy.py | 46 | ||||
-rwxr-xr-x | test/integration/targets/connection/runme.sh | 5 |
5 files changed, 0 insertions, 73 deletions
diff --git a/test/integration/targets/connection/aliases b/test/integration/targets/connection/aliases deleted file mode 100644 index 765b70da79..0000000000 --- a/test/integration/targets/connection/aliases +++ /dev/null @@ -1 +0,0 @@ -shippable/posix/group2 diff --git a/test/integration/targets/connection/inventory b/test/integration/targets/connection/inventory deleted file mode 100644 index 324f0d3af3..0000000000 --- a/test/integration/targets/connection/inventory +++ /dev/null @@ -1,2 +0,0 @@ -[local] -testhost diff --git a/test/integration/targets/connection/play.yml b/test/integration/targets/connection/play.yml deleted file mode 100644 index b62239379a..0000000000 --- a/test/integration/targets/connection/play.yml +++ /dev/null @@ -1,19 +0,0 @@ -- hosts: testhost - gather_facts: false - tasks: - - name: "use a connection plugin raising an exception, exception message contains Jinja template." - connection: dummy - command: /bin/true # command won't be executed - register: result - ignore_errors: True - - - name: "check that Jinja template embedded in exception message isn't rendered" - debug: - msg: 'ok' - when: result is failed - register: debug_task - - - assert: - that: - - result is failed - - debug_task is success diff --git a/test/integration/targets/connection/plugin/dummy.py b/test/integration/targets/connection/plugin/dummy.py deleted file mode 100644 index de84bb4341..0000000000 --- a/test/integration/targets/connection/plugin/dummy.py +++ /dev/null @@ -1,46 +0,0 @@ -from __future__ import (absolute_import, division, print_function) -__metaclass__ = type - -DOCUMENTATION = """ - author: - - John Doe - connection: dummy - short_description: defective connection plugin - description: - - defective connection plugin - version_added: "2.0" - options: {} -""" -import ansible.constants as C -from ansible.errors import AnsibleError -from ansible.plugins.connection import ConnectionBase - - -class Connection(ConnectionBase): - - transport = 'dummy' - has_pipelining = True - become_methods = frozenset(C.BECOME_METHODS) - - def __init__(self, play_context, new_stdin, *args, **kwargs): - super(Connection, self).__init__(play_context, new_stdin, *args, **kwargs) - - raise AnsibleError('an error with {{ some Jinja }}') - - def transport(self): - pass - - def _connect(self): - pass - - def exec_command(self, cmd, in_data=None, sudoable=True): - pass - - def put_file(self, in_path, out_path): - pass - - def fetch_file(self, in_path, out_path): - pass - - def close(self): - pass diff --git a/test/integration/targets/connection/runme.sh b/test/integration/targets/connection/runme.sh deleted file mode 100755 index 2ab43e0066..0000000000 --- a/test/integration/targets/connection/runme.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -set -o nounset -o errexit -o xtrace - -ANSIBLE_CONNECTION_PLUGINS="$(pwd)/plugin" ansible-playbook -i inventory "$(pwd)/play.yml" -v "$@" |