aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions
diff options
context:
space:
mode:
authorBrinda Santh <bs2796@att.com>2019-12-26 16:26:25 -0500
committerKAPIL SINGAL <ks220y@att.com>2019-12-30 18:18:38 +0000
commit41712e142c8d2b2bff9bc9e094f45306a60d7cb9 (patch)
tree1a6578a40b45235c8486a179b84b2e5932d164cf /components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions
parent730c940a84b9056fed993ccef08dc5ec4053db21 (diff)
Relationship Type and Templates models
Enrichment Support for Relationship Types and Templates. Relationship DSL support for ConnectTo connections ( RestClient, SshClient, MessageProducer, MessageConsume, Nats) Moved datatype map from collection to complex type Issue-ID: CCSDK-1054 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I0f18db2cb52e1e93dfab04498b8298587cba2540
Diffstat (limited to 'components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions')
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/capability-cli-blueprint.json51
-rw-r--r--components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/relationship_types.json23
2 files changed, 59 insertions, 15 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/capability-cli-blueprint.json b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/capability-cli-blueprint.json
index df50fea44..e73f96ded 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/capability-cli-blueprint.json
+++ b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/capability-cli-blueprint.json
@@ -1,12 +1,13 @@
{
"tosca_definitions_version": "controller_blueprint_1_0_0",
"metadata": {
- "template_author": "Brinda Santh Muthuramalingam",
+ "template_author": "Brinda Santh",
"author-email": "brindasanth@in.ibm.com",
"user-groups": "ADMIN, OPERATION",
"template_name": "capability-cli",
"template_version": "1.0.0",
- "template_tags": "brinda, tosca"
+ "template_tags": "capability-cli-blueprint",
+ "template_type": "DEFAULT"
},
"imports": [
{
@@ -47,6 +48,17 @@
"topology_template": {
"workflows": {
"check": {
+ "steps": {
+ "activate-process": {
+ "description": "Check CLI",
+ "target": "check",
+ "activities": [
+ {
+ "call_operation": "ComponentScriptExecutor.process"
+ }
+ ]
+ }
+ },
"inputs": {
"hostname": {
"required": true,
@@ -64,17 +76,6 @@
"required": true,
"type": "json"
}
- },
- "steps": {
- "activate-process": {
- "description": "Check CLI",
- "target": "check",
- "activities": [
- {
- "call_operation": "ComponentScriptExecutor.process"
- }
- ]
- }
}
}
},
@@ -86,7 +87,9 @@
"operations": {
"process": {
"implementation": {
- "primary": "component-script"
+ "primary": "component-script",
+ "timeout": 180,
+ "operation_host": "SELF"
},
"inputs": {
"script-type": "kotlin",
@@ -107,6 +110,26 @@
}
}
}
+ },
+ "relationship_templates": {
+ "ssh-connection-config": {
+ "type": "tosca.relationships.ConnectsTo.SshClient",
+ "description": "Device connection config",
+ "properties": {
+ "connection-config": {
+ "password": {
+ "get_input": "password"
+ },
+ "host": {
+ "get_input": "hostname"
+ },
+ "type": "basic-auth",
+ "username": {
+ "get_input": "username"
+ }
+ }
+ }
+ }
}
}
} \ No newline at end of file
diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/relationship_types.json b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/relationship_types.json
index 4ddd7a57c..b56c77a80 100644
--- a/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/relationship_types.json
+++ b/components/model-catalog/blueprint-model/test-blueprint/capability_cli/Definitions/relationship_types.json
@@ -1,3 +1,24 @@
{
- "relationship_types" : { }
+ "relationship_types": {
+ "tosca.relationships.ConnectsTo": {
+ "description": "Relationship tosca.relationships.ConnectsTo",
+ "version": "1.0.0",
+ "derived_from": "tosca.relationships.Root"
+ },
+ "tosca.relationships.ConnectsTo.SshClient": {
+ "description": "Relationship connects to through SSH Client.",
+ "version": "1.0.0",
+ "properties": {
+ "connection-config": {
+ "description": "Connection Config details.",
+ "required": true,
+ "type": "map"
+ }
+ },
+ "derived_from": "tosca.relationships.ConnectsTo",
+ "valid_target_types": [
+ "tosca.capabilities.Endpoint"
+ ]
+ }
+ }
} \ No newline at end of file