diff options
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/targets/connection_winrm/aliases | 1 | ||||
-rw-r--r-- | test/integration/targets/connection_winrm/tests.yml | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/connection_winrm/aliases b/test/integration/targets/connection_winrm/aliases index af3f193fb0..59dba60272 100644 --- a/test/integration/targets/connection_winrm/aliases +++ b/test/integration/targets/connection_winrm/aliases @@ -1,3 +1,4 @@ +destructive windows shippable/windows/group1 shippable/windows/smoketest diff --git a/test/integration/targets/connection_winrm/tests.yml b/test/integration/targets/connection_winrm/tests.yml index cf109a8c6c..3a117fe7ee 100644 --- a/test/integration/targets/connection_winrm/tests.yml +++ b/test/integration/targets/connection_winrm/tests.yml @@ -41,3 +41,20 @@ - assert: that: - timeout_cmd.msg == 'The win_shell action failed to execute in the expected time frame (5) and was terminated' + + - name: get WinRM quota value + win_shell: (Get-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser).Value + changed_when: false + register: winrm_quota + + - block: + - name: set WinRM quota to lower value + win_shell: Set-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser 3 + + - name: run ping with loop to exceed quota + win_ping: + loop: '{{ range(0, 4) }}' + + always: + - name: reset WinRM quota value + win_shell: Set-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser {{ winrm_quota.stdout | trim }} |