Debian Codegraph @

ansible_collections/community/general/tests/unit/plugins/modules/test_gconftool2_info.yaml

raw
1 # Copyright (c) Alexei Znamensky ([email protected])
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 ---
6 anchors:
7 environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
8 test_cases:
9 - id: test_simple_element_get
10 input:
11 key: /desktop/gnome/background/picture_filename
12 output:
13 value: '100'
14 mocks:
15 run_command:
16 - command: [/testbin/gconftool-2, --version]
17 environ: *env-def
18 rc: 0
19 out: "3.2.6\n"
20 err: ''
21 - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
22 environ: *env-def
23 rc: 0
24 out: "100\n"
25 err: ''
26 - id: test_simple_element_get_not_found
27 input:
28 key: /desktop/gnome/background/picture_filename
29 output:
30 value:
31 mocks:
32 run_command:
33 - command: [/testbin/gconftool-2, --version]
34 environ: *env-def
35 rc: 0
36 out: "3.2.6\n"
37 err: ''
38 - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
39 environ: *env-def
40 rc: 0
41 out: ''
42 err: "No value set for `/desktop/gnome/background/picture_filename'\n"