mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-07 11:10:31 -07:00
[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:
parent
faa913d566
commit
4d4e626f95
13 changed files with 1611 additions and 1611 deletions
|
@ -8,13 +8,13 @@ anchors:
|
||||||
environ_true: &env-def-true {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ_true: &env-def-true {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
environ_false: &env-def-false {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
environ_false: &env-def-false {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: install_dancer_compatibility
|
- id: install_dancer_compatibility
|
||||||
input:
|
input:
|
||||||
name: Dancer
|
name: Dancer
|
||||||
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,18 +23,18 @@ 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
|
||||||
mode: compatibility
|
mode: compatibility
|
||||||
|
@ -48,13 +48,13 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -67,13 +67,13 @@ 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
|
||||||
mode: compatibility
|
mode: compatibility
|
||||||
|
@ -87,13 +87,13 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -106,13 +106,13 @@ 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
|
||||||
mode: new
|
mode: new
|
||||||
|
@ -127,13 +127,13 @@ 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/
|
||||||
mode: new
|
mode: new
|
||||||
|
@ -147,13 +147,13 @@ 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
|
||||||
notest: true
|
notest: true
|
||||||
|
@ -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,13 +190,13 @@ 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
|
||||||
mode: new
|
mode: new
|
||||||
|
@ -205,11 +205,11 @@ test_cases:
|
||||||
failed: true
|
failed: true
|
||||||
mocks:
|
mocks:
|
||||||
run_command: []
|
run_command: []
|
||||||
- id: install_minversion_implicit
|
- id: install_minversion_implicit
|
||||||
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,8 +360,8 @@ 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
|
||||||
install_recommendations: true
|
install_recommendations: true
|
||||||
|
@ -375,13 +375,13 @@ 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
|
||||||
install_suggestions: true
|
install_suggestions: true
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,40 +7,40 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: success
|
- id: success
|
||||||
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
|
||||||
database:
|
database:
|
||||||
- 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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: command_success
|
- id: command_success
|
||||||
input:
|
input:
|
||||||
command: check
|
command: check
|
||||||
extra_args:
|
extra_args:
|
||||||
|
@ -22,13 +22,13 @@ 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
|
||||||
extra_args:
|
extra_args:
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: command_success
|
- id: command_success
|
||||||
input:
|
input:
|
||||||
settings: whatever.settings
|
settings: whatever.settings
|
||||||
mocks:
|
mocks:
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {check_rc: true}
|
environ: &env-def {check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: simple run
|
- id: simple run
|
||||||
output:
|
output:
|
||||||
ansible_facts:
|
ansible_facts:
|
||||||
facter:
|
facter:
|
||||||
|
@ -21,8 +21,8 @@ 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:
|
||||||
- -p
|
- -p
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: test_simple_element_set
|
- id: test_simple_element_set
|
||||||
input:
|
input:
|
||||||
state: present
|
state: present
|
||||||
key: /desktop/gnome/background/picture_filename
|
key: /desktop/gnome/background/picture_filename
|
||||||
|
@ -16,30 +16,30 @@ 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
|
||||||
key: /desktop/gnome/background/picture_filename
|
key: /desktop/gnome/background/picture_filename
|
||||||
|
@ -48,30 +48,30 @@ 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
|
||||||
key: /apps/gnome_settings_daemon/screensaver/start_screensaver
|
key: /apps/gnome_settings_daemon/screensaver/start_screensaver
|
||||||
|
@ -80,30 +80,30 @@ 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
|
||||||
key: /desktop/gnome/background/picture_filename
|
key: /desktop/gnome/background/picture_filename
|
||||||
|
@ -116,18 +116,18 @@ 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
|
||||||
key: /apps/gnome_settings_daemon/screensaver/start_screensaver
|
key: /apps/gnome_settings_daemon/screensaver/start_screensaver
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: test_simple_element_get
|
- id: test_simple_element_get
|
||||||
input:
|
input:
|
||||||
key: /desktop/gnome/background/picture_filename
|
key: /desktop/gnome/background/picture_filename
|
||||||
output:
|
output:
|
||||||
|
@ -18,13 +18,13 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -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"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: test_set_handler
|
- id: test_set_handler
|
||||||
input:
|
input:
|
||||||
handler: google-chrome.desktop
|
handler: google-chrome.desktop
|
||||||
mime_type: x-scheme-handler/http
|
mime_type: x-scheme-handler/http
|
||||||
|
@ -20,19 +20,19 @@ 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
|
||||||
mime_type: x-scheme-handler/http
|
mime_type: x-scheme-handler/http
|
||||||
|
@ -47,19 +47,19 @@ 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
|
||||||
mime_type: x-scheme-handler/http
|
mime_type: x-scheme-handler/http
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -9,7 +9,7 @@ anchors:
|
||||||
environ_data: &env-data {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true, data: cool_password}
|
environ_data: &env-data {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true, data: cool_password}
|
||||||
environ_norc: &env-norc {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
environ_norc: &env-norc {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: true}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: test_kinit_default
|
- id: test_kinit_default
|
||||||
input:
|
input:
|
||||||
state: present
|
state: present
|
||||||
password: cool_password
|
password: cool_password
|
||||||
|
@ -20,14 +20,14 @@ 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
|
||||||
password: cool_password
|
password: cool_password
|
||||||
|
@ -39,14 +39,14 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -56,14 +56,14 @@ 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
|
||||||
principal: admin@IPA.TEST
|
principal: admin@IPA.TEST
|
||||||
|
@ -74,14 +74,14 @@ 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
|
||||||
cache_name: KEYRING:persistent:0:0
|
cache_name: KEYRING:persistent:0:0
|
||||||
|
@ -92,14 +92,14 @@ 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
|
||||||
kdestroy_all: true
|
kdestroy_all: true
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: install_zlibdev
|
- id: install_zlibdev
|
||||||
input:
|
input:
|
||||||
name: zlib-dev
|
name: zlib-dev
|
||||||
state: present
|
state: present
|
||||||
|
@ -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,14 +35,14 @@ 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
|
||||||
state: present
|
state: present
|
||||||
|
@ -53,15 +53,15 @@ 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
|
||||||
state: present
|
state: present
|
||||||
|
@ -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,14 +88,14 @@ 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
|
||||||
state: present
|
state: present
|
||||||
|
@ -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,13 +123,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: "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
|
||||||
state: present
|
state: present
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
anchors:
|
anchors:
|
||||||
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
environ: &env-def {environ_update: {LANGUAGE: C, LC_ALL: C}, check_rc: false}
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: puppet_agent_plain
|
- id: puppet_agent_plain
|
||||||
input: {}
|
input: {}
|
||||||
output:
|
output:
|
||||||
changed: false
|
changed: false
|
||||||
|
@ -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,12 +32,12 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -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,13 +63,13 @@ 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]
|
||||||
output:
|
output:
|
||||||
|
@ -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,14 +95,14 @@ 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]
|
||||||
output:
|
output:
|
||||||
|
@ -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,14 +128,14 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -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,13 +161,13 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -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,13 +193,13 @@ 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
|
||||||
output:
|
output:
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -14,12 +14,12 @@ anchors:
|
||||||
|
|
||||||
Please report bugs to <https://gitlab.xfce.org/xfce/xfconf>.
|
Please report bugs to <https://gitlab.xfce.org/xfce/xfconf>.
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: test_missing_input
|
- id: test_missing_input
|
||||||
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
|
||||||
property: /general/inactive_opacity
|
property: /general/inactive_opacity
|
||||||
|
@ -31,25 +31,25 @@ 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
|
||||||
property: /general/inactive_opacity
|
property: /general/inactive_opacity
|
||||||
|
@ -61,25 +61,25 @@ 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
|
||||||
property: /general/SaveOnExit
|
property: /general/SaveOnExit
|
||||||
|
@ -91,25 +91,25 @@ 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
|
||||||
property: /general/workspace_names
|
property: /general/workspace_names
|
||||||
|
@ -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,9 +156,9 @@ 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
|
||||||
property: /general/workspace_names
|
property: /general/workspace_names
|
||||||
|
@ -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,9 +205,9 @@ 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
|
||||||
property: /general/workspace_names
|
property: /general/workspace_names
|
||||||
|
@ -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: ''
|
||||||
|
|
|
@ -14,88 +14,88 @@ anchors:
|
||||||
|
|
||||||
Please report bugs to <https://gitlab.xfce.org/xfce/xfconf>.
|
Please report bugs to <https://gitlab.xfce.org/xfce/xfconf>.
|
||||||
test_cases:
|
test_cases:
|
||||||
- id: test_simple_property_get
|
- id: test_simple_property_get
|
||||||
input:
|
input:
|
||||||
channel: xfwm4
|
channel: xfwm4
|
||||||
property: /general/inactive_opacity
|
property: /general/inactive_opacity
|
||||||
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
|
||||||
output:
|
output:
|
||||||
failed: true
|
failed: true
|
||||||
msg: "missing parameter(s) required by 'property': channel"
|
msg: "missing parameter(s) required by 'property': channel"
|
||||||
- id: test_property_get_array
|
- id: test_property_get_array
|
||||||
input:
|
input:
|
||||||
channel: xfwm4
|
channel: xfwm4
|
||||||
property: /general/workspace_names
|
property: /general/workspace_names
|
||||||
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
|
||||||
output:
|
output:
|
||||||
|
@ -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: ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue