Skip to content

Commit 835a4fd

Browse files
committed
Added Gnocchi Service unit test
1 parent 6c96c67 commit 835a4fd

File tree

4 files changed

+490
-0
lines changed

4 files changed

+490
-0
lines changed
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
HTTP/1.1 200 OK
2+
Content-Type: application/json; charset=UTF-8
3+
4+
[
5+
{
6+
"created_by_user_id":"ad6540c351de48d0825aa8f618b2eb2a",
7+
"name":"storage.objects.outgoing.bytes",
8+
"resource_id":"d4c74bd1-1e71-5d10-8bb8-e27ff4d82e8d",
9+
"created_by_project_id":"a652c6a9566149dd9c38ad23c00f1cd7",
10+
"archive_policy":{
11+
"definition":[
12+
{
13+
"points":12,
14+
"timespan":"1:00:00",
15+
"granularity":"0:05:00"
16+
},
17+
{
18+
"points":24,
19+
"timespan":"1 day, 0:00:00",
20+
"granularity":"1:00:00"
21+
},
22+
{
23+
"points":30,
24+
"timespan":"30 days, 0:00:00",
25+
"granularity":"1 day, 0:00:00"
26+
}
27+
],
28+
"back_window":0,
29+
"name":"low",
30+
"aggregation_methods":[
31+
"std",
32+
"count",
33+
"95pct",
34+
"min",
35+
"max",
36+
"sum",
37+
"median",
38+
"mean"
39+
]
40+
},
41+
"id":"000036a6-faa8-4b52-92f8-085a4bfaabe8",
42+
"unit":"B"
43+
},
44+
{
45+
"created_by_user_id":"ad6540c351de48d0825aa8f618b2eb2a",
46+
"name":"storage.objects",
47+
"resource_id":"15c5201a-c252-5cd8-92b6-4e09ccd6dfb9",
48+
"created_by_project_id":"a652c6a9566149dd9c38ad23c00f1cd7",
49+
"archive_policy":{
50+
"definition":[
51+
{
52+
"points":12,
53+
"timespan":"1:00:00",
54+
"granularity":"0:05:00"
55+
},
56+
{
57+
"points":24,
58+
"timespan":"1 day, 0:00:00",
59+
"granularity":"1:00:00"
60+
},
61+
{
62+
"points":30,
63+
"timespan":"30 days, 0:00:00",
64+
"granularity":"1 day, 0:00:00"
65+
}
66+
],
67+
"back_window":0,
68+
"name":"low",
69+
"aggregation_methods":[
70+
"std",
71+
"count",
72+
"95pct",
73+
"min",
74+
"max",
75+
"sum",
76+
"median",
77+
"mean"
78+
]
79+
},
80+
"id":"000772fd-d20c-44e4-a6b3-38474c19f29a",
81+
"unit":"object"
82+
},
83+
{
84+
"created_by_user_id":"ad6540c351de48d0825aa8f618b2eb2a",
85+
"name":"storage.objects.outgoing.bytes",
86+
"resource_id":"0b21463f-404e-5156-898e-a75753138ad1",
87+
"created_by_project_id":"a652c6a9566149dd9c38ad23c00f1cd7",
88+
"archive_policy":{
89+
"definition":[
90+
{
91+
"points":12,
92+
"timespan":"1:00:00",
93+
"granularity":"0:05:00"
94+
},
95+
{
96+
"points":24,
97+
"timespan":"1 day, 0:00:00",
98+
"granularity":"1:00:00"
99+
},
100+
{
101+
"points":30,
102+
"timespan":"30 days, 0:00:00",
103+
"granularity":"1 day, 0:00:00"
104+
}
105+
],
106+
"back_window":0,
107+
"name":"low",
108+
"aggregation_methods":[
109+
"std",
110+
"count",
111+
"95pct",
112+
"min",
113+
"max",
114+
"sum",
115+
"median",
116+
"mean"
117+
]
118+
},
119+
"id":"000b7bf8-0271-46dd-90aa-cfe89026a55a",
120+
"unit":"B"
121+
}
122+
]
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
HTTP/1.1 200 OK
2+
Content-Type: application/json; charset=UTF-8
3+
4+
[
5+
{
6+
"created_by_user_id":"27c0d3f8-e7ee-42f0-8317-72237d1c5ae3",
7+
"started_at":"2017-05-10T14:56:34.898772+00:00",
8+
"user_id":null,
9+
"revision_end":null,
10+
"created_by_project_id":"6c38cd8d-099a-4cb2-aecf-17be688e8616",
11+
"id":"0a8b55df-f90f-491c-8cb9-7cdecec6fc26",
12+
"metrics":{
13+
14+
},
15+
"original_resource_id":null,
16+
"revision_start":"2017-05-10T14:56:34.898785+00:00",
17+
"project_id":null,
18+
"type":"generic",
19+
"ended_at":null
20+
},
21+
{
22+
"created_by_user_id":"ad6540c351de48d0825aa8f618b2eb2a",
23+
"started_at":"2017-05-10T15:12:34.413388+00:00",
24+
"user_id":null,
25+
"revision_end":null,
26+
"created_by_project_id":"a652c6a9566149dd9c38ad23c00f1cd7",
27+
"id":"c41b19de-8aac-4ecd-b0f0-4ede718206c5",
28+
"metrics":{
29+
"storage.objects.outgoing.bytes":"0339ac7a-5579-4c66-b655-0dd20a7976e4",
30+
"storage.containers.objects":"b360bd41-371b-490e-a09b-0c8a0a1a99eb",
31+
"storage.api.request":"1bf761e3-7cf5-4141-9ed1-45cde9cec2ba",
32+
"storage.objects.containers":"e3df8f2c-911a-49d8-a1ba-eae16eda1871",
33+
"storage.objects.incoming.bytes":"ce73ef04-1810-452d-a133-6cba1d445b0d",
34+
"storage.objects":"be4e8f48-db23-4dac-84ed-72f8283d243d",
35+
"storage.containers.objects.size":"9daf5414-0a78-4bd8-8455-44e07f9cc532",
36+
"storage.objects.size":"f499792a-5827-4b27-b09f-d66ba663027f"
37+
},
38+
"original_resource_id":"c41b19de8aac4ecdb0f04ede718206c5",
39+
"revision_start":"2017-05-10T15:12:34.413403+00:00",
40+
"project_id":"c41b19de8aac4ecdb0f04ede718206c5",
41+
"type":"swift_account",
42+
"ended_at":null
43+
},
44+
{
45+
"created_by_user_id":"ad6540c351de48d0825aa8f618b2eb2a",
46+
"started_at":"2017-05-10T16:58:15.023677+00:00",
47+
"user_id":"c3f6c6e949f34fc38f71b89c04d1ed60",
48+
"revision_end":null,
49+
"created_by_project_id":"a652c6a9566149dd9c38ad23c00f1cd7",
50+
"id":"18c70355-9665-4252-8a84-01f55bef1a45",
51+
"metrics":{
52+
"volume.resize":"0920c1f6-bd1b-4c73-8110-d8129ee4ad2d",
53+
"volume":"dd12bc6c-0e5e-407f-9663-aed2369c5d21",
54+
"volume.size":"4b6e868d-0f9e-4570-8c59-b6d3cc55fae2",
55+
"volume.delete":"6beba0c2-f6b8-492b-aa8a-7fe357a6a886",
56+
"volume.update":"0f42f43a-212f-45aa-9420-4b68623ce641",
57+
"volume.detach":"80ab8cc2-2a39-4f17-855a-32979d9c2905",
58+
"volume.create":"4219ffe6-2765-4e6a-9f05-1ba20bd6dd7f",
59+
"volume.attach":"c1a83e6a-c81e-4269-950e-bce92a189f89"
60+
},
61+
"original_resource_id":"18c70355-9665-4252-8a84-01f55bef1a45",
62+
"revision_start":"2017-05-10T16:58:15.023689+00:00",
63+
"project_id":"c41b19de8aac4ecdb0f04ede718206c5",
64+
"type":"volume",
65+
"ended_at":null
66+
}
67+
]

0 commit comments

Comments
 (0)