summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/TestCases/testComponentSpec.json
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bpgenerator/TestCases/testComponentSpec.json')
-rw-r--r--mod/bpgenerator/TestCases/testComponentSpec.json116
1 files changed, 116 insertions, 0 deletions
diff --git a/mod/bpgenerator/TestCases/testComponentSpec.json b/mod/bpgenerator/TestCases/testComponentSpec.json
new file mode 100644
index 0000000..d6b617b
--- /dev/null
+++ b/mod/bpgenerator/TestCases/testComponentSpec.json
@@ -0,0 +1,116 @@
+{
+ "self": {
+ "component_type": "docker",
+ "description": "Test component spec",
+ "name": "test.component.spec",
+ "version": "1.0.1"
+ },
+
+ "service": {
+ "calls": [],
+ "provides": []
+ },
+
+ "streams": {
+ "publishes": [{
+ "config_key": "TEST-PUB-DR",
+ "format": "dataformat_Hello_World_PM",
+ "type": "data_router",
+ "version": "1.0.0"
+ },
+ {
+ "config_key": "TEST-PUB-MR",
+ "format": "dataformat_Hello_World_PM",
+ "type": "message_router",
+ "version": "1.0.0"
+ }
+ ],
+
+ "subscribes": [{
+ "config_key": "TEST-SUB-MR",
+ "format": "dataformat_Hello_World_PM",
+ "route": "/TEST_HELLO_WORLD_SUB_MR",
+ "type": "message_router",
+ "version": "1.0.0"
+ },
+ {
+ "config_key": "TEST-SUB-DR",
+ "format": "dataformat_Hello_World_PM",
+ "route": "/TEST-HELLO-WORLD-SUB-DR",
+ "type": "data_router",
+ "version": "1.0.0"
+ }
+ ]
+ },
+
+ "parameters":
+ [
+ {
+ "name": "testParam1",
+ "description": "test parameter 1",
+ "value": "test-param-1",
+ "type": "string",
+ "sourced_at_deployment": true,
+ "designer_editable": true,
+ "policy_editable": true,
+ "policy_group": "Test_Parameters",
+ "required": true,
+ "policy_schema": [
+ {
+ "name": "PolicySchemaTest",
+ "description": "List of objects for vnf type monitorng",
+ "type": "String",
+ "entry_schema": [
+ {
+ "name": "TestEntrySchema",
+ "description": "entry",
+ "type": "string",
+ "value": "None"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+
+ "auxilary": {
+ "healthcheck": {
+ "type": "docker",
+ "interval": "300s",
+ "timeout": "120s",
+ "script": "/etc/init.d/nagios status"
+ },
+
+ "databases" : {
+ "TestDB1": "PGaaS",
+ "TestDB2": "PGaaS"
+ },
+
+ "policy": {
+ "trigger_type": "docker",
+ "script_path": "/opt/app/manager/bin/reconfigure.sh"
+ },
+ "volumes": [
+ {
+ "container": {
+ "bind": "/opt/app/manager/config/hostname"
+ },
+ "host": {
+ "path": "/etc/hostname",
+ "mode": "ro"
+ }
+ }
+
+ ],
+ "ports": [
+ "80:80",
+ "99:99"
+ ]
+ },
+
+ "artifacts": [{
+ "type": "docker image",
+ "uri": "test.tester"
+ }]
+
+} \ No newline at end of file