From af2bb2c182de106a9364eb3e4e44dbdf8b52846e Mon Sep 17 00:00:00 2001 From: Sloane Hertel <19572925+s-hertel@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:24:48 -0500 Subject: wait_for_connection - test connection=local does not emit warning (#84438) Add test for PR 84421 --- test/integration/targets/wait_for_connection/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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" -- cgit v1.2.3