diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2017-10-31 11:29:56 +0100 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2017-10-31 12:23:31 +0100 |
commit | 84f5aaa729d6286252602800a1f9e1bf1e5b47d3 (patch) | |
tree | c144d77c478862303ac12cded4415f597cb8779b /spec/fixtures | |
parent | 6d462cea77508e407995c58b0ae581edefa74d22 (diff) | |
download | gitlab-ce-84f5aaa729d6286252602800a1f9e1bf1e5b47d3.tar.gz |
WIP: mock cluster apps status API
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/cluster_status.json | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/spec/fixtures/api/schemas/cluster_status.json b/spec/fixtures/api/schemas/cluster_status.json index 1f255a17881..451ea50f0f9 100644 --- a/spec/fixtures/api/schemas/cluster_status.json +++ b/spec/fixtures/api/schemas/cluster_status.json @@ -5,7 +5,38 @@ ], "properties" : { "status": { "type": "string" }, - "status_reason": { "type": ["string", "null"] } + "status_reason": { "type": ["string", "null"] }, + "applications": { "$ref": "#/definitions/applications" } }, - "additionalProperties": false + "additionalProperties": false, + "definitions": { + "applications": { + "type": "object", + "additionalProperties": false, + "properties" : { + "helm": { "$ref": "#/definitions/app_status" }, + "runner": { "$ref": "#/definitions/app_status" }, + "ingress": { "$ref": "#/definitions/app_status" }, + "prometheus": { "$ref": "#/definitions/app_status" } + } + }, + "app_status": { + "type": "object", + "additionalProperties": false, + "properties" : { + "status": { + "type": { + "enum": [ + "installable", + "installing", + "installed", + "error" + ] + } + }, + "status_reason": { "type": ["string", "null"] } + }, + "required" : [ "status" ] + } + } } |