diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-06 19:35:28 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-06 19:35:28 +0200 |
commit | 969b812433b6030b15b591ec5862daae1b707025 (patch) | |
tree | 478affbb74c02b08ff97cc9e94b00038c9b89a0c /spec/fixtures | |
parent | ccf89acc7145bb129f5666108854daa71a022827 (diff) | |
download | gitlab-ce-969b812433b6030b15b591ec5862daae1b707025.tar.gz |
Add schema matcher for non response objects + use schema to test additional metrics compliance
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/prometheus/additional_metrics_query_result.json | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/prometheus/additional_metrics_query_result.json b/spec/fixtures/api/schemas/prometheus/additional_metrics_query_result.json new file mode 100644 index 00000000000..47b5d283b8c --- /dev/null +++ b/spec/fixtures/api/schemas/prometheus/additional_metrics_query_result.json @@ -0,0 +1,58 @@ +{ + "items": { + "properties": { + "group": { + "type": "string" + }, + "metrics": { + "items": { + "properties": { + "queries": { + "items": { + "properties": { + "query_range": { + "type": "string" + }, + "query": { + "type": "string" + }, + "result": { + "type": "any" + } + }, + "type": "object" + }, + "type": "array" + }, + "title": { + "type": "string" + }, + "weight": { + "type": "integer" + }, + "y_label": { + "type": "string" + } + }, + "type": "object" + }, + "required": [ + "metrics", + "title", + "weight" + ], + "type": "array" + }, + "priority": { + "type": "integer" + } + }, + "type": "object" + }, + "required": [ + "group", + "priority", + "metrics" + ], + "type": "array" +}
\ No newline at end of file |