Skip to content

Instantly share code, notes, and snippets.

@pkilambi
Created April 8, 2015 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkilambi/67647be23f2d2cb63e67 to your computer and use it in GitHub Desktop.
Save pkilambi/67647be23f2d2cb63e67 to your computer and use it in GitHub Desktop.
fixtures:
- ConfigFixture
tests:
# Attempt to create an archive policy rule
- name: create archive policy rule
url: /v1/archive_policy_rule
method: POST
request_headers:
content-type: application/json
#x-roles: admin
x-user-id: 0fbb2314-8461-4b1a-8013-1fc22f6afc9c
data:
name: test_rule
metric_pattern: "disk.foo.*"
archive_policy_name: low
status: 403
response_strings:
- moo
# get an archive policy rule
- name: get archive policy rule
url: /v1/archive_policy_rule
response_strings:
- "name": "test_rule"
# delete rule
- name: delete archive policy rule
url: /v1/archive_policy_rule/test_rule
method: DELETE
status: 204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment