Debian Codegraph @

test/integration/targets/connection_delegation/connection_plugins/delegation_connection.py

raw
1 from __future__ import annotations
2
3 DOCUMENTATION = """
4 author: Ansible Core Team
5 connection: delegation_connection
6 short_description: Test connection for delegated host check
7 description:
8 - Some further description that you don't care about.
9 options:
10 remote_password:
11 description: The remote password
12 type: str
13 vars:
14 - name: ansible_password
15 # Tests that an aliased key gets the -k option which hardcodes the value to password
16 aliases:
17 - password
18 """
19
20 from ansible.plugins.connection import ConnectionBase
21
22
23 class Connection(ConnectionBase):
24
25 transport = 'delegation_connection'
26 has_pipelining = True
27
28 def __init__(self, *args, **kwargs):
29 super(Connection, self).__init__(*args, **kwargs)
30
31 def _connect(self):
32 super(Connection, self)._connect()
33
34 def exec_command(self, cmd, in_data=None, sudoable=True):
35 super(Connection, self).exec_command(cmd, in_data, sudoable)
36
37 def put_file(self, in_path, out_path):
38 super(Connection, self).put_file(in_path, out_path)
39
40 def fetch_file(self, in_path, out_path):
41 super(Connection, self).fetch_file(in_path, out_path)
42
43 def close(self):
44 super(Connection, self).close()