X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=component-json-schemas%2Ftests%2Fcomponent-spec-docker.json;fp=component-json-schemas%2Ftests%2Fcomponent-spec-docker.json;h=34458d5f97d5ea71e10e47a3bb1f8f8a08ddbef8;hb=b86b42713a1fbfb1929bd5019aed7e5275b78d64;hp=0000000000000000000000000000000000000000;hpb=d4c6fea2ab91b2e72cc188f10178f1f3cd8b99d5;p=dcaegen2%2Fplatform%2Fcli.git diff --git a/component-json-schemas/tests/component-spec-docker.json b/component-json-schemas/tests/component-spec-docker.json new file mode 100644 index 0000000..34458d5 --- /dev/null +++ b/component-json-schemas/tests/component-spec-docker.json @@ -0,0 +1,110 @@ +{ + "self": { + "version": "0.5.0", + "name": "sandbox.platform.laika", + "description": "Web service used as a stand-alone test DCAE service component", + "component_type": "docker" + }, + "streams": { + "subscribes": [], + "publishes": [ + { + "format": "some.format", + "version": "1.0.0", + "config_key": "pub-foo", + "type": "message router" + }, + { + "format": "some.format", + "version": "1.0.0", + "config_key": "pub-foo", + "type": "http" + } + ] + }, + "services": { + "calls": [], + "provides": [ + { + "route": "/rollcall", + "verb": "GET", + "request": { + "format": "sandbox.platform.any", + "version": "0.1.0" + }, + "response": { + "format": "sandbox.platform.laika.rollcall.response", + "version": "0.1.0" + } + }, + { + "route": "/identity", + "verb": "POST", + "request": { + "format": "sandbox.platform.laika.identity.request", + "version": "0.1.0" + }, + "response": { + "format": "sandbox.platform.laika.identity.response", + "version": "0.1.0" + } + }, + { + "route": "/health", + "verb": "GET", + "request": { + "format": "sandbox.platform.any", + "version": "0.1.0" + }, + "response": { + "format": "sandbox.platform.laika.health", + "version": "0.1.0" + } + } + ] + }, + "parameters": [ + { + "name": "threshold", + "description": "Some fake threshold", + "type": "number", + "value": 2000 + }, + { + "name": "some-target-number", + "description": "Some fake target", + "type": "number", + "value": 10000, + "constraints": [ + { + "greater_or_equal": 1 + }, + { + "less_than": 100000 + }] + }, + { + "name": "magic-word", + "description": "Some magic word", + "type": "string", + "value": "requirements", + "constraints": [ + { + "valid_values": ["rally", "user story"] + }] + } + ], + "auxilary": { + "healthcheck": { + "type": "http", + "endpoint": "/foo" + }, + "ports": ["8080:8080"] + }, + "artifacts": [ + { + "uri": "some docker image path", + "type": "docker image" + } + ] +}