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/cs_pod | |
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/cs_pod')
-rw-r--r-- | test/integration/targets/cs_pod/tasks/main.yml | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/integration/targets/cs_pod/tasks/main.yml b/test/integration/targets/cs_pod/tasks/main.yml index 5a88c13021..62d7fe7f0a 100644 --- a/test/integration/targets/cs_pod/tasks/main.yml +++ b/test/integration/targets/cs_pod/tasks/main.yml @@ -9,7 +9,7 @@ - name: verify setup zone is present assert: that: - - zone|success + - zone is successful - name: setup pod is absent cs_pod: @@ -20,7 +20,7 @@ - name: verify setup pod is absent assert: that: - - pod|success + - pod is successful - name: test fail if missing name cs_pod: @@ -29,7 +29,7 @@ - name: verify results of fail if missing name assert: that: - - pod|failed + - pod is failed - "pod.msg == 'missing required arguments: name'" @@ -45,7 +45,7 @@ - name: verify test create pod in check mode assert: that: - - pod_origin|changed + - pod_origin is changed - pod_origin.zone == "{{ cs_resource_prefix }}-zone" - name: test create pod @@ -59,7 +59,7 @@ - name: verify test create pod assert: that: - - pod_origin|changed + - pod_origin is changed - pod_origin.allocation_state == "Enabled" - pod_origin.start_ip == "10.100.10.101" - pod_origin.end_ip == "10.100.10.254" @@ -78,7 +78,7 @@ - name: verify test create pod idempotence assert: that: - - not pod|changed + - pod is not changed - pod.allocation_state == "Enabled" - pod.start_ip == "10.100.10.101" - pod.end_ip == "10.100.10.254" @@ -98,7 +98,7 @@ - name: verify test update pod in check mode assert: that: - - pod|changed + - pod is changed - pod.allocation_state == "Enabled" - pod.start_ip == "10.100.10.101" - pod.end_ip == "10.100.10.254" @@ -117,7 +117,7 @@ - name: verify test update pod assert: that: - - pod|changed + - pod is changed - pod.allocation_state == "Enabled" - pod.start_ip == "10.100.10.102" - pod.end_ip == "10.100.10.254" @@ -136,7 +136,7 @@ - name: verify test update pod idempotence assert: that: - - not pod|changed + - pod is not changed - pod.allocation_state == "Enabled" - pod.start_ip == "10.100.10.102" - pod.end_ip == "10.100.10.254" @@ -154,7 +154,7 @@ - name: verify test enable pod in check mode assert: that: - - pod|changed + - pod is changed - pod.allocation_state == "Enabled" - pod.id == pod_origin.id - pod.start_ip == "10.100.10.102" @@ -172,7 +172,7 @@ - name: verify test enable pod assert: that: - - pod|changed + - pod is changed - pod.allocation_state == "Disabled" - pod.id == pod_origin.id - pod.start_ip == "10.100.10.102" @@ -190,7 +190,7 @@ - name: verify test enable pod idempotence assert: that: - - not pod|changed + - pod is not changed - pod.allocation_state == "Disabled" - pod.id == pod_origin.id - pod.start_ip == "10.100.10.102" @@ -209,7 +209,7 @@ - name: verify test disable pod in check mode assert: that: - - pod|changed + - pod is changed - pod.allocation_state == "Disabled" - pod.id == pod_origin.id - pod.start_ip == "10.100.10.102" @@ -227,7 +227,7 @@ - name: verify test disable pod assert: that: - - pod|changed + - pod is changed - pod.allocation_state == "Enabled" - pod.id == pod_origin.id - pod.start_ip == "10.100.10.102" @@ -246,7 +246,7 @@ - name: verify test enabled pod idempotence assert: that: - - not pod|changed + - pod is not changed - pod.allocation_state == "Enabled" - pod.id == pod_origin.id - pod.start_ip == "10.100.10.102" @@ -265,7 +265,7 @@ - name: verify test create pod in check mode assert: that: - - pod|changed + - pod is changed - pod.id == pod_origin.id - pod.allocation_state == "Enabled" - pod.start_ip == "10.100.10.102" @@ -283,7 +283,7 @@ - name: verify test create pod assert: that: - - pod|changed + - pod is changed - pod.id == pod_origin.id - pod.allocation_state == "Enabled" - pod.start_ip == "10.100.10.102" @@ -301,4 +301,4 @@ - name: verify test absent pod idempotence assert: that: - - not pod|changed + - pod is not changed |