[PR #9664/439da9e6 backport][stable-10] test helper unit tests: reformat YAML files (#9667)

test helper unit tests: reformat YAML files (#9664)

(cherry picked from commit 439da9e6da)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-02-01 17:01:24 +01:00 committed by GitHub
parent faa913d566
commit 4d4e626f95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1611 additions and 1611 deletions

View file

@ -14,7 +14,7 @@ test_cases:
mode: compatibility mode: compatibility
output: output:
changed: true changed: true
cpanm_version: "1.7047" cpanm_version: '1.7047'
mocks: mocks:
run_command: run_command:
- command: [/testbin/cpanm, --version] - command: [/testbin/cpanm, --version]
@ -23,17 +23,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/perl, -le, 'use Dancer;'] - command: [/testbin/perl, -le, use Dancer;]
environ: *env-def-false environ: *env-def-false
rc: 2 rc: 2
out: "" out: ''
err: "error, not installed" err: error, not installed
- command: [/testbin/cpanm, Dancer] - command: [/testbin/cpanm, Dancer]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_dancer_already_installed_compatibility - id: install_dancer_already_installed_compatibility
input: input:
name: Dancer name: Dancer
@ -48,12 +48,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/perl, -le, 'use Dancer;'] - command: [/testbin/perl, -le, use Dancer;]
environ: *env-def-false environ: *env-def-false
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_dancer - id: install_dancer
input: input:
name: Dancer name: Dancer
@ -67,12 +67,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, Dancer] - command: [/testbin/cpanm, Dancer]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_distribution_file_compatibility - id: install_distribution_file_compatibility
input: input:
name: MIYAGAWA/Plack-0.99_05.tar.gz name: MIYAGAWA/Plack-0.99_05.tar.gz
@ -87,12 +87,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, MIYAGAWA/Plack-0.99_05.tar.gz] - command: [/testbin/cpanm, MIYAGAWA/Plack-0.99_05.tar.gz]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_distribution_file - id: install_distribution_file
input: input:
name: MIYAGAWA/Plack-0.99_05.tar.gz name: MIYAGAWA/Plack-0.99_05.tar.gz
@ -106,12 +106,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, MIYAGAWA/Plack-0.99_05.tar.gz] - command: [/testbin/cpanm, MIYAGAWA/Plack-0.99_05.tar.gz]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_into_locallib - id: install_into_locallib
input: input:
name: Dancer name: Dancer
@ -127,12 +127,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, --local-lib, /srv/webapps/my_app/extlib, Dancer] - command: [/testbin/cpanm, --local-lib, /srv/webapps/my_app/extlib, Dancer]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_from_local_directory - id: install_from_local_directory
input: input:
from_path: /srv/webapps/my_app/src/ from_path: /srv/webapps/my_app/src/
@ -147,12 +147,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, /srv/webapps/my_app/src/] - command: [/testbin/cpanm, /srv/webapps/my_app/src/]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_into_locallib_no_unit_testing - id: install_into_locallib_no_unit_testing
input: input:
name: Dancer name: Dancer
@ -169,17 +169,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, --notest, --local-lib, /srv/webapps/my_app/extlib, Dancer] - command: [/testbin/cpanm, --notest, --local-lib, /srv/webapps/my_app/extlib, Dancer]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_from_mirror - id: install_from_mirror
input: input:
name: Dancer name: Dancer
mode: new mode: new
mirror: "http://cpan.cpantesters.org/" mirror: http://cpan.cpantesters.org/
output: output:
changed: true changed: true
mocks: mocks:
@ -190,12 +190,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, --mirror, "http://cpan.cpantesters.org/", Dancer] - command: [/testbin/cpanm, --mirror, http://cpan.cpantesters.org/, Dancer]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_into_system_lib - id: install_into_system_lib
input: input:
name: Dancer name: Dancer
@ -209,7 +209,7 @@ test_cases:
input: input:
name: Dancer name: Dancer
mode: new mode: new
version: "1.0" version: '1.0'
output: output:
changed: true changed: true
mocks: mocks:
@ -220,17 +220,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, Dancer~1.0] - command: [/testbin/cpanm, Dancer~1.0]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_minversion_explicit - id: install_minversion_explicit
input: input:
name: Dancer name: Dancer
mode: new mode: new
version: "~1.5" version: ~1.5
output: output:
changed: true changed: true
mocks: mocks:
@ -241,17 +241,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, Dancer~1.5] - command: [/testbin/cpanm, Dancer~1.5]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_specific_version - id: install_specific_version
input: input:
name: Dancer name: Dancer
mode: new mode: new
version: "@1.7" version: '@1.7'
output: output:
changed: true changed: true
mocks: mocks:
@ -262,17 +262,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, Dancer@1.7] - command: [/testbin/cpanm, Dancer@1.7]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_specific_version_from_file_error - id: install_specific_version_from_file_error
input: input:
name: MIYAGAWA/Plack-0.99_05.tar.gz name: MIYAGAWA/Plack-0.99_05.tar.gz
mode: new mode: new
version: "@1.7" version: '@1.7'
output: output:
failed: true failed: true
msg: parameter 'version' must not be used when installing from a file msg: parameter 'version' must not be used when installing from a file
@ -284,12 +284,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- id: install_specific_version_from_directory_error - id: install_specific_version_from_directory_error
input: input:
from_path: ~/ from_path: ~/
mode: new mode: new
version: "@1.7" version: '@1.7'
output: output:
failed: true failed: true
msg: parameter 'version' must not be used when installing from a directory msg: parameter 'version' must not be used when installing from a directory
@ -301,12 +301,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- id: install_specific_version_from_git_url_explicit - id: install_specific_version_from_git_url_explicit
input: input:
name: "git://github.com/plack/Plack.git" name: git://github.com/plack/Plack.git
mode: new mode: new
version: "@1.7" version: '@1.7'
output: output:
changed: true changed: true
mocks: mocks:
@ -317,17 +317,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, "git://github.com/plack/Plack.git@1.7"] - command: [/testbin/cpanm, git://github.com/plack/Plack.git@1.7]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_specific_version_from_git_url_implicit - id: install_specific_version_from_git_url_implicit
input: input:
name: "git://github.com/plack/Plack.git" name: git://github.com/plack/Plack.git
mode: new mode: new
version: "2.5" version: '2.5'
output: output:
changed: true changed: true
mocks: mocks:
@ -338,17 +338,17 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, "git://github.com/plack/Plack.git@2.5"] - command: [/testbin/cpanm, git://github.com/plack/Plack.git@2.5]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_version_operator_from_git_url_error - id: install_version_operator_from_git_url_error
input: input:
name: "git://github.com/plack/Plack.git" name: git://github.com/plack/Plack.git
mode: new mode: new
version: "~2.5" version: ~2.5
output: output:
failed: true failed: true
msg: operator '~' not allowed in version parameter when installing from git repository msg: operator '~' not allowed in version parameter when installing from git repository
@ -360,7 +360,7 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- id: install_dancer_with_recommends - id: install_dancer_with_recommends
input: input:
name: Dancer2 name: Dancer2
@ -375,12 +375,12 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, --with-recommends, Dancer2] - command: [/testbin/cpanm, --with-recommends, Dancer2]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: install_dancer_with_suggests - id: install_dancer_with_suggests
input: input:
name: Dancer2 name: Dancer2
@ -395,9 +395,9 @@ test_cases:
out: | out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm) cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl) perl version 5.041005 (/usr/local/bin/perl)
err: "" err: ''
- command: [/testbin/cpanm, --with-suggests, Dancer2] - command: [/testbin/cpanm, --with-suggests, Dancer2]
environ: *env-def-true environ: *env-def-true
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''

View file

@ -11,19 +11,19 @@ test_cases:
input: input:
settings: whatever.settings settings: whatever.settings
output: output:
version: "5.1.2" version: 5.1.2
mocks: mocks:
run_command: run_command:
- command: [/testbin/python, -m, django, --version] - command: [/testbin/python, -m, django, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "5.1.2\n" out: "5.1.2\n"
err: "" err: ''
- command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings] - command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "whatever\n" out: "whatever\n"
err: "" err: ''
- id: multiple_databases - id: multiple_databases
input: input:
settings: whatever.settings settings: whatever.settings
@ -31,16 +31,16 @@ test_cases:
- abc - abc
- def - def
output: output:
version: "5.1.2" version: 5.1.2
mocks: mocks:
run_command: run_command:
- command: [/testbin/python, -m, django, --version] - command: [/testbin/python, -m, django, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "5.1.2\n" out: "5.1.2\n"
err: "" err: ''
- command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, --database, abc, --database, def] - command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, --database, abc, --database, def]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "whatever\n" out: "whatever\n"
err: "" err: ''

View file

@ -22,12 +22,12 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "5.1.2\n" out: "5.1.2\n"
err: "" err: ''
- command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, babaloo, yaba, daba, doo] - command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, babaloo, yaba, daba, doo]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "whatever\n" out: "whatever\n"
err: "" err: ''
- id: command_fail - id: command_fail
input: input:
command: check command: check
@ -45,9 +45,9 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "5.1.2\n" out: "5.1.2\n"
err: "" err: ''
- command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, babaloo, yaba, daba, doo] - command: [/testbin/python, -m, django, check, --no-color, --settings=whatever.settings, babaloo, yaba, daba, doo]
environ: *env-def environ: *env-def
rc: 1 rc: 1
out: "whatever\n" out: "whatever\n"
err: "" err: ''

View file

@ -16,9 +16,9 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "5.1.2\n" out: "5.1.2\n"
err: "" err: ''
- command: [/testbin/python, -m, django, createcachetable, --no-color, --settings=whatever.settings, --noinput, --database=default] - command: [/testbin/python, -m, django, createcachetable, --no-color, --settings=whatever.settings, --noinput, --database=default]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "whatever\n" out: "whatever\n"
err: "" err: ''

View file

@ -21,7 +21,7 @@ test_cases:
rc: 0 rc: 0
out: > out: >
{ "a": 1, "b": 2, "c": 3 } { "a": 1, "b": 2, "c": 3 }
err: "" err: ''
- id: with args - id: with args
input: input:
arguments: arguments:
@ -42,4 +42,4 @@ test_cases:
rc: 0 rc: 0
out: > out: >
{ "a": 1, "b": 2, "c": 3 } { "a": 1, "b": 2, "c": 3 }
err: "" err: ''

View file

@ -16,29 +16,29 @@ test_cases:
output: output:
new_value: '200' new_value: '200'
changed: true changed: true
version: "3.2.6" version: 3.2.6
mocks: mocks:
run_command: run_command:
- command: [/testbin/gconftool-2, --version] - command: [/testbin/gconftool-2, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.6\n" out: "3.2.6\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "100\n" out: "100\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --type, int, --set, /desktop/gnome/background/picture_filename, "200"] - command: [/testbin/gconftool-2, --type, int, --set, /desktop/gnome/background/picture_filename, '200']
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "200\n" out: "200\n"
err: "" err: ''
- id: test_simple_element_set_idempotency_int - id: test_simple_element_set_idempotency_int
input: input:
state: present state: present
@ -48,29 +48,29 @@ test_cases:
output: output:
new_value: '200' new_value: '200'
changed: false changed: false
version: "3.2.5" version: 3.2.5
mocks: mocks:
run_command: run_command:
- command: [/testbin/gconftool-2, --version] - command: [/testbin/gconftool-2, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.5\n" out: "3.2.5\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "200\n" out: "200\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --type, int, --set, /desktop/gnome/background/picture_filename, "200"] - command: [/testbin/gconftool-2, --type, int, --set, /desktop/gnome/background/picture_filename, '200']
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "200\n" out: "200\n"
err: "" err: ''
- id: test_simple_element_set_idempotency_bool - id: test_simple_element_set_idempotency_bool
input: input:
state: present state: present
@ -80,29 +80,29 @@ test_cases:
output: output:
new_value: 'false' new_value: 'false'
changed: false changed: false
version: "3.2.4" version: 3.2.4
mocks: mocks:
run_command: run_command:
- command: [/testbin/gconftool-2, --version] - command: [/testbin/gconftool-2, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.4\n" out: "3.2.4\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /apps/gnome_settings_daemon/screensaver/start_screensaver] - command: [/testbin/gconftool-2, --get, /apps/gnome_settings_daemon/screensaver/start_screensaver]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "false\n" out: "false\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --type, bool, --set, /apps/gnome_settings_daemon/screensaver/start_screensaver, "False"] - command: [/testbin/gconftool-2, --type, bool, --set, /apps/gnome_settings_daemon/screensaver/start_screensaver, 'False']
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /apps/gnome_settings_daemon/screensaver/start_screensaver] - command: [/testbin/gconftool-2, --get, /apps/gnome_settings_daemon/screensaver/start_screensaver]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "false\n" out: "false\n"
err: "" err: ''
- id: test_simple_element_unset - id: test_simple_element_unset
input: input:
state: absent state: absent
@ -116,17 +116,17 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.4\n" out: "3.2.4\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "200\n" out: "200\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --unset, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --unset, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_simple_element_unset_idempotency - id: test_simple_element_unset_idempotency
input: input:
state: absent state: absent
@ -140,14 +140,14 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.4\n" out: "3.2.4\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /apps/gnome_settings_daemon/screensaver/start_screensaver] - command: [/testbin/gconftool-2, --get, /apps/gnome_settings_daemon/screensaver/start_screensaver]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/gconftool-2, --unset, /apps/gnome_settings_daemon/screensaver/start_screensaver] - command: [/testbin/gconftool-2, --unset, /apps/gnome_settings_daemon/screensaver/start_screensaver]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''

View file

@ -18,12 +18,12 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.6\n" out: "3.2.6\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "100\n" out: "100\n"
err: "" err: ''
- id: test_simple_element_get_not_found - id: test_simple_element_get_not_found
input: input:
key: /desktop/gnome/background/picture_filename key: /desktop/gnome/background/picture_filename
@ -35,9 +35,9 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "3.2.6\n" out: "3.2.6\n"
err: "" err: ''
- command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename] - command: [/testbin/gconftool-2, --get, /desktop/gnome/background/picture_filename]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "No value set for `/desktop/gnome/background/picture_filename'\n" err: "No value set for `/desktop/gnome/background/picture_filename'\n"

View file

@ -20,18 +20,18 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "2.80.0\n" out: "2.80.0\n"
err: "" err: ''
- command: [/testbin/gio, mime, x-scheme-handler/http] - command: [/testbin/gio, mime, x-scheme-handler/http]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: > err: >
No default applications for “x-scheme-handler/http” No default applications for “x-scheme-handler/http”
- command: [/testbin/gio, mime, x-scheme-handler/http, google-chrome.desktop] - command: [/testbin/gio, mime, x-scheme-handler/http, google-chrome.desktop]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Set google-chrome.desktop as the default for x-scheme-handler/http\n" out: "Set google-chrome.desktop as the default for x-scheme-handler/http\n"
err: "" err: ''
- id: test_set_handler_check - id: test_set_handler_check
input: input:
handler: google-chrome.desktop handler: google-chrome.desktop
@ -47,18 +47,18 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "2.80.0\n" out: "2.80.0\n"
err: "" err: ''
- command: [/testbin/gio, mime, x-scheme-handler/http] - command: [/testbin/gio, mime, x-scheme-handler/http]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: > err: >
No default applications for “x-scheme-handler/http” No default applications for “x-scheme-handler/http”
- command: [/testbin/gio, mime, x-scheme-handler/http, google-chrome.desktop] - command: [/testbin/gio, mime, x-scheme-handler/http, google-chrome.desktop]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Set google-chrome.desktop as the default for x-scheme-handler/http\n" out: "Set google-chrome.desktop as the default for x-scheme-handler/http\n"
err: "" err: ''
- id: test_set_handler_idempot - id: test_set_handler_idempot
input: input:
handler: google-chrome.desktop handler: google-chrome.desktop
@ -72,7 +72,7 @@ test_cases:
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "2.80.0\n" out: "2.80.0\n"
err: "" err: ''
- command: [/testbin/gio, mime, x-scheme-handler/http] - command: [/testbin/gio, mime, x-scheme-handler/http]
environ: *env-def environ: *env-def
rc: 0 rc: 0
@ -88,4 +88,4 @@ test_cases:
firefox.desktop firefox.desktop
google-chrome.desktop google-chrome.desktop
firefox_firefox.desktop firefox_firefox.desktop
err: "" err: ''

View file

@ -20,13 +20,13 @@ test_cases:
- command: [/testbin/klist] - command: [/testbin/klist]
environ: *env-def environ: *env-def
rc: 1 rc: 1
out: "" out: ''
err: "" err: ''
- command: [/testbin/kinit] - command: [/testbin/kinit]
environ: *env-data environ: *env-data
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_kinit_principal - id: test_kinit_principal
input: input:
state: present state: present
@ -39,13 +39,13 @@ test_cases:
- command: [/testbin/klist, -l] - command: [/testbin/klist, -l]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/kinit, admin@IPA.TEST] - command: [/testbin/kinit, admin@IPA.TEST]
environ: *env-data environ: *env-data
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_kdestroy_default - id: test_kdestroy_default
input: input:
state: absent state: absent
@ -56,13 +56,13 @@ test_cases:
- command: [/testbin/klist] - command: [/testbin/klist]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/kdestroy] - command: [/testbin/kdestroy]
environ: *env-norc environ: *env-norc
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_kdestroy_principal - id: test_kdestroy_principal
input: input:
state: absent state: absent
@ -74,13 +74,13 @@ test_cases:
- command: [/testbin/klist, -l] - command: [/testbin/klist, -l]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "admin@IPA.TEST" out: admin@IPA.TEST
err: "" err: ''
- command: [/testbin/kdestroy, -p, admin@IPA.TEST] - command: [/testbin/kdestroy, -p, admin@IPA.TEST]
environ: *env-norc environ: *env-norc
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_kdestroy_cache_name - id: test_kdestroy_cache_name
input: input:
state: absent state: absent
@ -92,13 +92,13 @@ test_cases:
- command: [/testbin/klist, -l] - command: [/testbin/klist, -l]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "KEYRING:persistent:0:0" out: KEYRING:persistent:0:0
err: "" err: ''
- command: [/testbin/kdestroy, -c, KEYRING:persistent:0:0] - command: [/testbin/kdestroy, -c, KEYRING:persistent:0:0]
environ: *env-norc environ: *env-norc
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_kdestroy_all - id: test_kdestroy_all
input: input:
state: absent state: absent
@ -110,5 +110,5 @@ test_cases:
- command: [/testbin/kdestroy, -A] - command: [/testbin/kdestroy, -A]
environ: *env-norc environ: *env-norc
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''

View file

@ -18,13 +18,13 @@ test_cases:
- command: [/testbin/opkg, --version] - command: [/testbin/opkg, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, install, zlib-dev] - command: [/testbin/opkg, install, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
@ -35,13 +35,13 @@ test_cases:
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mips_24kc/base/zlib_1.2.11-6_mips_24kc.ipk Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mips_24kc/base/zlib_1.2.11-6_mips_24kc.ipk
Configuring zlib. Configuring zlib.
Configuring zlib-dev. Configuring zlib-dev.
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: | out: |
zlib-dev - 1.2.11-6 zlib-dev - 1.2.11-6
err: "" err: ''
- id: install_zlibdev_present - id: install_zlibdev_present
input: input:
name: zlib-dev name: zlib-dev
@ -53,14 +53,14 @@ test_cases:
- command: [/testbin/opkg, --version] - command: [/testbin/opkg, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: | out: |
zlib-dev - 1.2.11-6 zlib-dev - 1.2.11-6
err: "" err: ''
- id: install_zlibdev_force_reinstall - id: install_zlibdev_force_reinstall
input: input:
name: zlib-dev name: zlib-dev
@ -73,14 +73,14 @@ test_cases:
- command: [/testbin/opkg, --version] - command: [/testbin/opkg, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: | out: |
zlib-dev - 1.2.11-6 zlib-dev - 1.2.11-6
err: "" err: ''
- command: [/testbin/opkg, install, --force-reinstall, zlib-dev] - command: [/testbin/opkg, install, --force-reinstall, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
@ -88,13 +88,13 @@ test_cases:
Installing zlib-dev (1.2.11-6) to root... Installing zlib-dev (1.2.11-6) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mips_24kc/base/zlib-dev_1.2.11-6_mips_24kc.ipk Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mips_24kc/base/zlib-dev_1.2.11-6_mips_24kc.ipk
Configuring zlib-dev. Configuring zlib-dev.
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: | out: |
zlib-dev - 1.2.11-6 zlib-dev - 1.2.11-6
err: "" err: ''
- id: install_zlibdev_with_version - id: install_zlibdev_with_version
input: input:
name: zlib-dev=1.2.11-6 name: zlib-dev=1.2.11-6
@ -106,13 +106,13 @@ test_cases:
- command: [/testbin/opkg, --version] - command: [/testbin/opkg, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, install, zlib-dev=1.2.11-6] - command: [/testbin/opkg, install, zlib-dev=1.2.11-6]
environ: *env-def environ: *env-def
rc: 0 rc: 0
@ -123,12 +123,12 @@ test_cases:
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mips_24kc/base/zlib_1.2.11-6_mips_24kc.ipk Downloading https://downloads.openwrt.org/releases/22.03.0/packages/mips_24kc/base/zlib_1.2.11-6_mips_24kc.ipk
Configuring zlib. Configuring zlib.
Configuring zlib-dev. Configuring zlib-dev.
err: "" err: ''
- command: [/testbin/opkg, list-installed, zlib-dev] - command: [/testbin/opkg, list-installed, zlib-dev]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "zlib-dev - 1.2.11-6 \n" # This output has the extra space at the end, to satisfy the behaviour of Yocto/OpenEmbedded's opkg out: "zlib-dev - 1.2.11-6 \n" # This output has the extra space at the end, to satisfy the behaviour of Yocto/OpenEmbedded's opkg
err: "" err: ''
- id: install_vim_updatecache - id: install_vim_updatecache
input: input:
name: vim-fuller name: vim-fuller
@ -141,18 +141,18 @@ test_cases:
- command: [/testbin/opkg, --version] - command: [/testbin/opkg, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, update] - command: [/testbin/opkg, update]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, list-installed, vim-fuller] - command: [/testbin/opkg, list-installed, vim-fuller]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- command: [/testbin/opkg, install, vim-fuller] - command: [/testbin/opkg, install, vim-fuller]
environ: *env-def environ: *env-def
rc: 0 rc: 0
@ -167,9 +167,9 @@ test_cases:
Configuring terminfo. Configuring terminfo.
Configuring libncurses6. Configuring libncurses6.
Configuring vim-fuller. Configuring vim-fuller.
err: "" err: ''
- command: [/testbin/opkg, list-installed, vim-fuller] - command: [/testbin/opkg, list-installed, vim-fuller]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "vim-fuller - 9.0-1 \n" # This output has the extra space at the end, to satisfy the behaviour of Yocto/OpenEmbedded's opkg out: "vim-fuller - 9.0-1 \n" # This output has the extra space at the end, to satisfy the behaviour of Yocto/OpenEmbedded's opkg
err: "" err: ''

View file

@ -16,12 +16,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -32,11 +32,11 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: puppet_agent_certname - id: puppet_agent_certname
input: input:
certname: potatobox certname: potatobox
@ -47,12 +47,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -63,12 +63,12 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
- --certname=potatobox - --certname=potatobox
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: puppet_agent_tags_abc - id: puppet_agent_tags_abc
input: input:
tags: [a, b, c] tags: [a, b, c]
@ -79,12 +79,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -95,13 +95,13 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
- --tags - --tags
- a,b,c - a,b,c
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: puppet_agent_skip_tags_def - id: puppet_agent_skip_tags_def
input: input:
skip_tags: [d, e, f] skip_tags: [d, e, f]
@ -112,12 +112,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -128,13 +128,13 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
- --skip_tags - --skip_tags
- d,e,f - d,e,f
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: puppet_agent_noop_false - id: puppet_agent_noop_false
input: input:
noop: false noop: false
@ -145,12 +145,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -161,12 +161,12 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
- --no-noop - --no-noop
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: puppet_agent_noop_true - id: puppet_agent_noop_true
input: input:
noop: true noop: true
@ -177,12 +177,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -193,12 +193,12 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
- --noop - --noop
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: puppet_agent_waitforlock - id: puppet_agent_waitforlock
input: input:
waitforlock: 30 waitforlock: 30
@ -209,12 +209,12 @@ test_cases:
- command: [/testbin/puppet, config, print, agent_disabled_lockfile] - command: [/testbin/puppet, config, print, agent_disabled_lockfile]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "blah, anything" out: blah, anything
err: "" err: ''
- command: - command:
- /testbin/timeout - /testbin/timeout
- -s - -s
- "9" - '9'
- 30m - 30m
- /testbin/puppet - /testbin/puppet
- agent - agent
@ -225,10 +225,10 @@ test_cases:
- --detailed-exitcodes - --detailed-exitcodes
- --verbose - --verbose
- --color - --color
- "0" - '0'
- --waitforlock - --waitforlock
- "30" - '30'
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''

View file

@ -18,7 +18,7 @@ test_cases:
input: {} input: {}
output: output:
failed: true failed: true
msg: "missing required arguments: channel, property" msg: 'missing required arguments: channel, property'
- id: test_property_set_property - id: test_property_set_property
input: input:
channel: xfwm4 channel: xfwm4
@ -31,24 +31,24 @@ test_cases:
previous_value: '100' previous_value: '100'
type: int type: int
value: '90' value: '90'
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "100\n" out: "100\n"
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity, --create, --type, int, --set, '90'] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity, --create, --type, int, --set, '90']
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_property_set_property_same_value - id: test_property_set_property_same_value
input: input:
channel: xfwm4 channel: xfwm4
@ -61,24 +61,24 @@ test_cases:
previous_value: '90' previous_value: '90'
type: int type: int
value: '90' value: '90'
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "90\n" out: "90\n"
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity, --create, --type, int, --set, '90'] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity, --create, --type, int, --set, '90']
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_property_set_property_bool_false - id: test_property_set_property_bool_false
input: input:
channel: xfce4-session channel: xfce4-session
@ -91,24 +91,24 @@ test_cases:
previous_value: 'true' previous_value: 'true'
type: bool type: bool
value: 'False' value: 'False'
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit] - command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "true\n" out: "true\n"
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit, --create, --type, bool, --set, 'false'] - command: [/testbin/xfconf-query, --channel, xfce4-session, --property, /general/SaveOnExit, --create, --type, bool, --set, 'false']
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "false\n" out: "false\n"
err: "" err: ''
- id: test_property_set_array - id: test_property_set_array
input: input:
channel: xfwm4 channel: xfwm4
@ -121,19 +121,19 @@ test_cases:
previous_value: [Main, Work, Tmp] previous_value: [Main, Work, Tmp]
type: [string, string, string] type: [string, string, string]
value: [A, B, C] value: [A, B, C]
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Value is an array with 3 items:\n\nMain\nWork\nTmp\n" out: "Value is an array with 3 items:\n\nMain\nWork\nTmp\n"
err: "" err: ''
- command: - command:
- /testbin/xfconf-query - /testbin/xfconf-query
- --channel - --channel
@ -156,8 +156,8 @@ test_cases:
- C - C
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_property_set_array_to_same_value - id: test_property_set_array_to_same_value
input: input:
channel: xfwm4 channel: xfwm4
@ -170,19 +170,19 @@ test_cases:
previous_value: [A, B, C] previous_value: [A, B, C]
type: [string, string, string] type: [string, string, string]
value: [A, B, C] value: [A, B, C]
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Value is an array with 3 items:\n\nA\nB\nC\n" out: "Value is an array with 3 items:\n\nA\nB\nC\n"
err: "" err: ''
- command: - command:
- /testbin/xfconf-query - /testbin/xfconf-query
- --channel - --channel
@ -205,8 +205,8 @@ test_cases:
- C - C
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''
- id: test_property_reset_value - id: test_property_reset_value
input: input:
channel: xfwm4 channel: xfwm4
@ -217,21 +217,21 @@ test_cases:
previous_value: [A, B, C] previous_value: [A, B, C]
type: type:
value: value:
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Value is an array with 3 items:\n\nA\nB\nC\n" out: "Value is an array with 3 items:\n\nA\nB\nC\n"
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names, --reset] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names, --reset]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "" out: ''
err: "" err: ''

View file

@ -21,37 +21,37 @@ test_cases:
output: output:
value: '100' value: '100'
is_array: false is_array: false
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/inactive_opacity]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "100\n" out: "100\n"
err: "" err: ''
- id: test_simple_property_get_nonexistent - id: test_simple_property_get_nonexistent
input: input:
channel: xfwm4 channel: xfwm4
property: /general/i_dont_exist property: /general/i_dont_exist
output: output:
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/i_dont_exist] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/i_dont_exist]
environ: *env-def environ: *env-def
rc: 1 rc: 1
out: "" out: ''
err: 'Property "/general/i_dont_exist" does not exist on channel "xfwm4".\n' err: Property "/general/i_dont_exist" does not exist on channel "xfwm4".\n
- id: test_property_no_channel - id: test_property_no_channel
input: input:
property: /general/i_dont_exist property: /general/i_dont_exist
@ -65,36 +65,36 @@ test_cases:
output: output:
is_array: true is_array: true
value_array: [Main, Work, Tmp] value_array: [Main, Work, Tmp]
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names] - command: [/testbin/xfconf-query, --channel, xfwm4, --property, /general/workspace_names]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Value is an array with 3 items:\n\nMain\nWork\nTmp\n" out: "Value is an array with 3 items:\n\nMain\nWork\nTmp\n"
err: "" err: ''
- id: get_channels - id: get_channels
input: {} input: {}
output: output:
channels: [a, b, c] channels: [a, b, c]
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --list] - command: [/testbin/xfconf-query, --list]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: "Channels:\n a\n b\n c\n" out: "Channels:\n a\n b\n c\n"
err: "" err: ''
- id: get_properties - id: get_properties
input: input:
channel: xfwm4 channel: xfwm4
@ -106,14 +106,14 @@ test_cases:
- /general/wrap_windows - /general/wrap_windows
- /general/wrap_workspaces - /general/wrap_workspaces
- /general/zoom_desktop - /general/zoom_desktop
version: "4.18.1" version: 4.18.1
mocks: mocks:
run_command: run_command:
- command: [/testbin/xfconf-query, --version] - command: [/testbin/xfconf-query, --version]
environ: *env-def environ: *env-def
rc: 0 rc: 0
out: *version-output out: *version-output
err: "" err: ''
- command: [/testbin/xfconf-query, --list, --channel, xfwm4] - command: [/testbin/xfconf-query, --list, --channel, xfwm4]
environ: *env-def environ: *env-def
rc: 0 rc: 0
@ -124,4 +124,4 @@ test_cases:
/general/wrap_windows /general/wrap_windows
/general/wrap_workspaces /general/wrap_workspaces
/general/zoom_desktop /general/zoom_desktop
err: "" err: ''