Created
April 8, 2015 17:23
-
-
Save pkilambi/67647be23f2d2cb63e67 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
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