diff options
author | Matt Martz <matt@sivel.net> | 2017-11-27 23:58:08 +0100 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2017-11-27 23:58:08 +0100 |
commit | 4fe08441be093a9cbe968e00606e03e33605207c (patch) | |
tree | f41c0383cdd50e08e2744468e54a7a9bb15035f9 /test/integration/targets/selinux/tasks | |
parent | Add python level locale handling back (#31339) (diff) | |
download | ansible-4fe08441be093a9cbe968e00606e03e33605207c.tar.xz ansible-4fe08441be093a9cbe968e00606e03e33605207c.zip |
Deprecate tests used as filters (#32361)
* Warn on tests used as filters
* Update docs, add aliases for tests that fit more gramatically with test syntax
* Fix rst formatting
* Add successful filter, alias of success
* Remove renamed_deprecation, it was overkill
* Make directory alias for is_dir
* Update tests to use proper jinja test syntax
* Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax
* Add conversion script, porting guide updates, and changelog updates
* Update newly added uses of tests as filters
* No underscore variable
* Convert recent tests as filter changes to win_stat
* Fix some changes related to rebasing a few integration tests
* Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name
* Add test for tests_as_filters_warning
* Update tests as filters in newly added/modified tests
* Address recent changes to several integration tests
* Address recent changes in cs_vpc
Diffstat (limited to 'test/integration/targets/selinux/tasks')
-rw-r--r-- | test/integration/targets/selinux/tasks/selinux.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/integration/targets/selinux/tasks/selinux.yml b/test/integration/targets/selinux/tasks/selinux.yml index ff8b2fa159..5e543d1480 100644 --- a/test/integration/targets/selinux/tasks/selinux.yml +++ b/test/integration/targets/selinux/tasks/selinux.yml @@ -54,7 +54,7 @@ - name: TEST 1 | Assert that status was changed, reboot_required is True, a warning was displayed, and SELinux is configured properly assert: that: - - _disable_test1 | changed + - _disable_test1 is changed - _disable_test1.reboot_required - (_disable_test1.warnings | length ) >= 1 - ansible_selinux.config_mode == 'disabled' @@ -77,7 +77,7 @@ - name: TEST 1 | Assert that no change is reported, a warnking was dispalyed, and reboot_required is True assert: that: - - not _disable_test2 | changed + - _disable_test2 is not changed - (_disable_test1.warnings | length ) >= 1 - _disable_test2.reboot_required @@ -93,8 +93,8 @@ assert: that: - selinux_config_original | length == selinux_config_after | length - - selinux_config_after[selinux_config_after.index('SELINUX=disabled')] | search("^SELINUX=\w+$") - - selinux_config_after[selinux_config_after.index('SELINUXTYPE=targeted')] | search("^SELINUXTYPE=\w+$") + - selinux_config_after[selinux_config_after.index('SELINUX=disabled')] is search("^SELINUX=\w+$") + - selinux_config_after[selinux_config_after.index('SELINUXTYPE=targeted')] is search("^SELINUXTYPE=\w+$") - name: TEST 1 | Reset SELinux configuration for next test selinux: @@ -126,7 +126,7 @@ - name: TEST 2 | Assert that status was changed, reboot_required is False, no warnings were displayed, and SELinux is configured properly assert: that: - - _state_test1 | changed + - _state_test1 is changed - not _state_test1.reboot_required - _state_test1.warnings is not defined - ansible_selinux.config_mode == 'enforcing' @@ -145,7 +145,7 @@ - name: TEST 2 | Assert that no change was reported, no warnings were dispalyed, and reboot_required is False assert: that: - - not _state_test2 | changed + - _state_test2 is not changed - _state_test2.warnings is not defined - not _state_test2.reboot_required @@ -161,8 +161,8 @@ assert: that: - selinux_config_original | length == selinux_config_after | length - - selinux_config_after[selinux_config_after.index('SELINUX=enforcing')] | search("^SELINUX=\w+$") - - selinux_config_after[selinux_config_after.index('SELINUXTYPE=mls')] | search("^SELINUXTYPE=\w+$") + - selinux_config_after[selinux_config_after.index('SELINUX=enforcing')] is search("^SELINUX=\w+$") + - selinux_config_after[selinux_config_after.index('SELINUXTYPE=mls')] is search("^SELINUXTYPE=\w+$") - name: TEST 2 | Reset SELinux configuration for next test selinux: |