Created
August 15, 2017 18:24
-
-
Save chbrown13/1ec5a67f25e1a834ae0ef0f81fec580b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test nailgun entities | |
vars: | |
name: abstractcomputeresource | |
desc: Nailgun test | |
update_desc: Updated | |
actions: | |
- model: AbstractComputeResource | |
register: test_entity | |
data: | |
name: "{ name }" | |
description: "{ desc }" | |
provider: GCE | |
email: dbrownjr@redhat.com | |
project: satellite | |
key_path: /home | |
- action: update | |
register: test_entity | |
model: AbstractComputeResource | |
data: | |
description: "{ update_desc }" | |
search_query: | |
name: "{ entity_name }" | |
- action: assertion | |
operation: eq | |
data: | |
- from_registry: test_entity.description | |
- "{ update_desc }" | |
- action: delete | |
model: AbstractComputeResource | |
search_query: | |
name: "{ entity_name }" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment