Add connection tests for winrm connection plugin.

These are the same tests used for the other connection plugins,
adapted to use winrm modules and Windows friendly paths.
This commit is contained in:
Matt Clay
2016-03-24 10:00:24 -07:00
parent e1461ef792
commit 262c341cda
4 changed files with 61 additions and 5 deletions

View File

@@ -102,6 +102,13 @@ test_connection: setup
$(call TEST_CONNECTION_CMD)
$(call TEST_CONNECTION_CMD, LC_ALL=C LANG=C)
# Connection plugin test command to repeat with each locale setting. WinRM specific version.
TEST_CONNECTION_WINRM_CMD = $(1) ansible-playbook test_connection_winrm.yml -i inventory.winrm $(TEST_FLAGS)
test_connection_winrm: setup
$(call TEST_CONNECTION_WINRM_CMD)
$(call TEST_CONNECTION_WINRM_CMD, LC_ALL=C LANG=C)
destructive: setup
ansible-playbook destructive.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -e @$(VARS_FILE) $(CREDENTIALS_ARG) -v $(TEST_FLAGS)