diff options
author | Sloane Hertel <19572925+s-hertel@users.noreply.github.com> | 2024-12-05 23:24:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-05 23:24:48 +0100 |
commit | af2bb2c182de106a9364eb3e4e44dbdf8b52846e (patch) | |
tree | ece8b3e61ef1ab5374a3ae1c1055f1786d09b7a5 | |
parent | fix reset_connection with templated connection variables (#84240) (diff) | |
download | ansible-af2bb2c182de106a9364eb3e4e44dbdf8b52846e.tar.xz ansible-af2bb2c182de106a9364eb3e4e44dbdf8b52846e.zip |
wait_for_connection - test connection=local does not emit warning (#84438)
Add test for PR 84421
-rw-r--r-- | test/integration/targets/wait_for_connection/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/wait_for_connection/tasks/main.yml b/test/integration/targets/wait_for_connection/tasks/main.yml index 19749e686e..c768ec96e8 100644 --- a/test/integration/targets/wait_for_connection/tasks/main.yml +++ b/test/integration/targets/wait_for_connection/tasks/main.yml @@ -28,3 +28,14 @@ that: - invalid_parameter is failed - "invalid_parameter.msg == 'Invalid options for wait_for_connection: foo'" + +- name: Test local connection with wait_for_connection + command: ansible localhost -m wait_for_connection + delegate_to: localhost + register: local_wait_for_connection + +- name: Assert reset is a no-op rather than unimplemented + assert: + that: unexpected_warning not in local_wait_for_connection.stderr + vars: + unexpected_warning: "Reset is not implemented for this connection" |