Skip to content

Instantly share code, notes, and snippets.

@chbrown13
Created August 18, 2017 15:00
Show Gist options
  • Save chbrown13/296ecbe78d7eb1f27b611a89f34b5105 to your computer and use it in GitHub Desktop.
Save chbrown13/296ecbe78d7eb1f27b611a89f34b5105 to your computer and use it in GitHub Desktop.
# Testing nailgun entities
vars:
name: SyncPlan
desc: Nailgun test
update_desc: Updated description
actions:
- model: Organization
register: org
data:
name: My Org
- model: SyncPlan
register: test_entity
data:
name: "{{ name }}"
description: satellite-populate test
interval: daily
enabled: True
organization:
from_registry: org
- action: update
register: test_entity
model: SyncPlan
data:
description: "{{ update_desc }}"
search_query:
name: "{{ name }}"
- action: assertion
operation: eq
data:
- from_registry: test_entity.description
- "{{ update_desc }}"
- action: delete
model: SyncPlan
search_query:
name: "{{ name }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment