summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/roles/test_win_ping/library/win_ping_set_attr.ps131
-rw-r--r--test/integration/roles/test_win_ping/library/win_ping_strict_mode_error.ps130
-rw-r--r--test/integration/roles/test_win_ping/library/win_ping_syntax_error.ps130
-rw-r--r--test/integration/roles/test_win_ping/library/win_ping_throw.ps130
-rw-r--r--test/integration/roles/test_win_ping/library/win_ping_throw_string.ps130
-rw-r--r--test/integration/roles/test_win_ping/tasks/main.yml65
6 files changed, 0 insertions, 216 deletions
diff --git a/test/integration/roles/test_win_ping/library/win_ping_set_attr.ps1 b/test/integration/roles/test_win_ping/library/win_ping_set_attr.ps1
deleted file mode 100644
index 8279b4b414..0000000000
--- a/test/integration/roles/test_win_ping/library/win_ping_set_attr.ps1
+++ /dev/null
@@ -1,31 +0,0 @@
-#!powershell
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-# POWERSHELL_COMMON
-
-$params = Parse-Args $args $true;
-
-$data = Get-Attr $params "data" "pong";
-
-$result = New-Object psobject @{
- changed = $false
- ping = "pong"
-};
-
-# Test that Set-Attr will replace an existing attribute.
-Set-Attr $result "ping" $data
-
-Exit-Json $result;
diff --git a/test/integration/roles/test_win_ping/library/win_ping_strict_mode_error.ps1 b/test/integration/roles/test_win_ping/library/win_ping_strict_mode_error.ps1
deleted file mode 100644
index d498cbcf17..0000000000
--- a/test/integration/roles/test_win_ping/library/win_ping_strict_mode_error.ps1
+++ /dev/null
@@ -1,30 +0,0 @@
-#!powershell
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-# POWERSHELL_COMMON
-
-$params = Parse-Args $args $true;
-
-$x = $params.thisPropertyDoesNotExist
-
-$data = Get-Attr $params "data" "pong";
-
-$result = New-Object psobject @{
- changed = $false
- ping = $data
-};
-
-Exit-Json $result;
diff --git a/test/integration/roles/test_win_ping/library/win_ping_syntax_error.ps1 b/test/integration/roles/test_win_ping/library/win_ping_syntax_error.ps1
deleted file mode 100644
index 6bfe621a80..0000000000
--- a/test/integration/roles/test_win_ping/library/win_ping_syntax_error.ps1
+++ /dev/null
@@ -1,30 +0,0 @@
-#!powershell
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-# POWERSHELL_COMMON
-
-$blah = 'I can't quote my strings correctly.'
-
-$params = Parse-Args $args $true;
-
-$data = Get-Attr $params "data" "pong";
-
-$result = New-Object psobject @{
- changed = $false
- ping = $data
-};
-
-Exit-Json $result;
diff --git a/test/integration/roles/test_win_ping/library/win_ping_throw.ps1 b/test/integration/roles/test_win_ping/library/win_ping_throw.ps1
deleted file mode 100644
index f0b32186d8..0000000000
--- a/test/integration/roles/test_win_ping/library/win_ping_throw.ps1
+++ /dev/null
@@ -1,30 +0,0 @@
-#!powershell
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-# POWERSHELL_COMMON
-
-throw
-
-$params = Parse-Args $args $true;
-
-$data = Get-Attr $params "data" "pong";
-
-$result = New-Object psobject @{
- changed = $false
- ping = $data
-};
-
-Exit-Json $result;
diff --git a/test/integration/roles/test_win_ping/library/win_ping_throw_string.ps1 b/test/integration/roles/test_win_ping/library/win_ping_throw_string.ps1
deleted file mode 100644
index e1f3ca6065..0000000000
--- a/test/integration/roles/test_win_ping/library/win_ping_throw_string.ps1
+++ /dev/null
@@ -1,30 +0,0 @@
-#!powershell
-# This file is part of Ansible
-#
-# Ansible is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# Ansible is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
-# POWERSHELL_COMMON
-
-throw "no ping for you"
-
-$params = Parse-Args $args $true;
-
-$data = Get-Attr $params "data" "pong";
-
-$result = New-Object psobject @{
- changed = $false
- ping = $data
-};
-
-Exit-Json $result;
diff --git a/test/integration/roles/test_win_ping/tasks/main.yml b/test/integration/roles/test_win_ping/tasks/main.yml
index aa5d03c908..f17a4a9227 100644
--- a/test/integration/roles/test_win_ping/tasks/main.yml
+++ b/test/integration/roles/test_win_ping/tasks/main.yml
@@ -79,68 +79,3 @@
- "not win_ping_extra_args_result|failed"
- "not win_ping_extra_args_result|changed"
- "win_ping_extra_args_result.ping == 'bloop'"
-
-- name: test modified win_ping that throws an exception
- action: win_ping_throw
- register: win_ping_throw_result
- ignore_errors: true
-
-- name: check win_ping_throw result
- assert:
- that:
- - "win_ping_throw_result|failed"
- - "not win_ping_throw_result|changed"
- - "win_ping_throw_result.msg == 'ScriptHalted'"
- - "win_ping_throw_result.exception"
- - "win_ping_throw_result.error_record"
-
-- name: test modified win_ping that throws a string exception
- action: win_ping_throw_string
- register: win_ping_throw_string_result
- ignore_errors: true
-
-- name: check win_ping_throw_string result
- assert:
- that:
- - "win_ping_throw_string_result|failed"
- - "not win_ping_throw_string_result|changed"
- - "win_ping_throw_string_result.msg == 'no ping for you'"
- - "win_ping_throw_string_result.exception"
- - "win_ping_throw_string_result.error_record"
-
-- name: test modified win_ping that has a syntax error
- action: win_ping_syntax_error
- register: win_ping_syntax_error_result
- ignore_errors: true
-
-- name: check win_ping_syntax_error result
- assert:
- that:
- - "win_ping_syntax_error_result|failed"
- - "not win_ping_syntax_error_result|changed"
- - "win_ping_syntax_error_result.msg"
- - "win_ping_syntax_error_result.exception"
-
-- name: test modified win_ping that has an error that only surfaces when strict mode is on
- action: win_ping_strict_mode_error
- register: win_ping_strict_mode_error_result
- ignore_errors: true
-
-- name: check win_ping_strict_mode_error result
- assert:
- that:
- - "win_ping_strict_mode_error_result|failed"
- - "not win_ping_strict_mode_error_result|changed"
- - "win_ping_strict_mode_error_result.msg"
- - "win_ping_strict_mode_error_result.exception"
-
-- name: test modified win_ping to verify a Set-Attr fix
- action: win_ping_set_attr data="fixed"
- register: win_ping_set_attr_result
-
-- name: check win_ping_set_attr_result result
- assert:
- that:
- - "not win_ping_set_attr_result|failed"
- - "not win_ping_set_attr_result|changed"
- - "win_ping_set_attr_result.ping == 'fixed'"