/usr/lib/python3/dist-packages/gnocchi/tests/functional/gabbits/metric-timestamp-format.yaml is in python3-gnocchi 4.2.0-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | fixtures:
- ConfigFixture
defaults:
request_headers:
# User foobar
authorization: "basic Zm9vYmFyOg=="
content-type: application/json
tests:
- name: create archive policy
desc: for later use
POST: /v1/archive_policy
request_headers:
# User admin
authorization: "basic YWRtaW46"
data:
name: cookies
definition:
- granularity: 1 second
status: 201
- name: create metric
POST: /v1/metric
data:
archive_policy_name: cookies
status: 201
response_json_paths:
$.archive_policy_name: cookies
- name: push measurements to metric with relative timestamp
POST: /v1/metric/$RESPONSE['$.id']/measures
data:
- timestamp: "-5 minutes"
value: 43.1
status: 202
- name: create metric 2
POST: /v1/metric
data:
archive_policy_name: cookies
status: 201
response_json_paths:
$.archive_policy_name: cookies
- name: push measurements to metric with mixed timestamps
POST: /v1/metric/$RESPONSE['$.id']/measures
data:
- timestamp: 1478012832
value: 43.1
- timestamp: "-5 minutes"
value: 43.1
status: 400
|