mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-03 23:41:51 +00:00
Add missing integration test aliases files (#11357)
* Add missing aliases files. * Fix directory name. * Add another missing aliases file. * Adjust test to also work with newer jsonpatch versions.
This commit is contained in:
parent
61d794f171
commit
ddf05104f3
13 changed files with 52 additions and 6 deletions
5
tests/integration/targets/filter_from_ini/aliases
Normal file
5
tests/integration/targets/filter_from_ini/aliases
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
azp/posix/1
|
||||
5
tests/integration/targets/filter_json_patch/aliases
Normal file
5
tests/integration/targets/filter_json_patch/aliases
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
azp/posix/1
|
||||
|
|
@ -126,12 +126,18 @@
|
|||
input |
|
||||
community.general.json_diff(target) |
|
||||
sort(attribute='path')
|
||||
==
|
||||
[
|
||||
{"op": "add", "path": "/baq", "value": {"baz": 2}},
|
||||
{"op": "remove", "path": "/baw/1"},
|
||||
{"op": "replace", "path": "/hello", "value": "night"},
|
||||
]
|
||||
in [expected_1, expected_2]
|
||||
vars:
|
||||
input: {"foo": 1, "bar":{"baz": 2}, "baw": [1, 2, 3], "hello": "day"}
|
||||
target: {"foo": 1, "bar": {"baz": 2}, "baw": [1, 3], "baq": {"baz": 2}, "hello": "night"}
|
||||
expected_1:
|
||||
# Older jsonpatch version
|
||||
- {"op": "add", "path": "/baq", "value": {"baz": 2}}
|
||||
- {"op": "remove", "path": "/baw/1"}
|
||||
- {"op": "replace", "path": "/hello", "value": "night"}
|
||||
expected_2:
|
||||
# Newer jsonpatch version
|
||||
- {"op": "add", "path": "/baq", "value": {"baz": 2}}
|
||||
- {"op": "remove", "path": "/baw/1"}
|
||||
- {"op": "move", "path": "/baw/1", "from": "/baw/2"}
|
||||
- {"op": "replace", "path": "/hello", "value": "night"}
|
||||
|
|
|
|||
5
tests/integration/targets/filter_to_ini/aliases
Normal file
5
tests/integration/targets/filter_to_ini/aliases
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
azp/posix/1
|
||||
5
tests/integration/targets/keycloak_client/aliases
Normal file
5
tests/integration/targets/keycloak_client/aliases
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
unsupported
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
unsupported
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
unsupported
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
unsupported
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (c) Ansible Project
|
||||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
unsupported
|
||||
Loading…
Add table
Add a link
Reference in a new issue