mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-07 22:54:24 -07:00
[PR #9859/eff25c8a backport][stable-10] Fix/improve tests (#9860)
Fix/improve tests (#9859)
* Fix tests.
* Improve callback tests.
(cherry picked from commit eff25c8a6e
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
5f1f76b8f4
commit
8253fb171d
28 changed files with 187 additions and 157 deletions
|
@ -33,7 +33,7 @@
|
|||
that:
|
||||
- result is changed
|
||||
- result.binding_rule.AuthMethod == 'test'
|
||||
- result.binding.Description == 'test-binding: my description'
|
||||
- "result.binding_rule.Description == 'test-binding: my description'"
|
||||
- result.operation == 'create'
|
||||
|
||||
- name: Update a binding rule
|
||||
|
@ -46,7 +46,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result.binding.Description == 'test-binding: my description'
|
||||
- "result.binding_rule.Description == 'test-binding: my description'"
|
||||
- result.operation == 'update'
|
||||
|
||||
- name: Update a binding rule (noop)
|
||||
|
@ -58,7 +58,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- result is not changed
|
||||
- result.binding.Description == 'test-binding: my description'
|
||||
- "result.binding_rule.Description == 'test-binding: my description'"
|
||||
- result.operation is not defined
|
||||
|
||||
- name: Delete a binding rule
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- simple_create_result is changed
|
||||
- simple_create_result.token.AccessorID
|
||||
- simple_create_result.token.AccessorID is truthy
|
||||
- simple_create_result.operation == 'create'
|
||||
|
||||
- name: Create token
|
||||
|
@ -84,5 +84,5 @@
|
|||
- assert:
|
||||
that:
|
||||
- result is changed
|
||||
- not result.token
|
||||
- result.token is falsy
|
||||
- result.operation == 'remove'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue