summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/TestCases
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bpgenerator/TestCases')
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsFalseAndExternalTlsFalse.yaml136
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndExternalTlsTrue.yaml136
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndNoExternalTls.yaml101
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/blueprint_withoutTlsInfo.yaml93
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsFalseAndExternalTlsFalse.json43
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndExternalTlsTrue.json43
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndNoExternalTls.json42
-rw-r--r--mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withoutTlsInfo.json38
-rw-r--r--mod/bpgenerator/TestCases/datafile.json426
-rw-r--r--mod/bpgenerator/TestCases/expects/createAppConfigResult.txt1
-rw-r--r--mod/bpgenerator/TestCases/hello.json129
-rw-r--r--mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_with_dmaap.yaml376
-rw-r--r--mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_without_dmaap_yaml.yaml330
-rw-r--r--mod/bpgenerator/TestCases/helloworld/compspec/hello-changed.json154
-rw-r--r--mod/bpgenerator/TestCases/imports/imports.yaml2
-rw-r--r--mod/bpgenerator/TestCases/imports/importsWithBlanks.yaml3
-rw-r--r--mod/bpgenerator/TestCases/j.json96
-rw-r--r--mod/bpgenerator/TestCases/jack.json93
-rw-r--r--mod/bpgenerator/TestCases/policyInput.json28
-rw-r--r--mod/bpgenerator/TestCases/testComponentSpec.json116
-rw-r--r--mod/bpgenerator/TestCases/testImport.yaml4
-rw-r--r--mod/bpgenerator/TestCases/testImports.yaml3
-rw-r--r--mod/bpgenerator/TestCases/ves.json384
-rw-r--r--mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithDmaap.yaml319
-rw-r--r--mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithoutDmaap.yaml185
-rw-r--r--mod/bpgenerator/TestCases/ves/componentSpecs/ves.json276
-rw-r--r--mod/bpgenerator/TestCases/ves/inputFiles/ves_nodmaap.json11
27 files changed, 0 insertions, 3568 deletions
diff --git a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsFalseAndExternalTlsFalse.yaml b/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsFalseAndExternalTlsFalse.yaml
deleted file mode 100644
index 94a3f1e..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsFalseAndExternalTlsFalse.yaml
+++ /dev/null
@@ -1,136 +0,0 @@
-
-#description: Test component spec
-#blueprint_version: 1.0.1
----
-tosca_definitions_version: cloudify_dsl_1_3
-imports:
-- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml
-inputs:
- always_pull_image:
- type: boolean
- description: Set to true if the image should always be pulled
- default: true
- envs:
- default: {}
- external_cert_ca_name:
- type: string
- description: Name of Certificate Authority configured on CertService side.
- default: "RA"
- external_cert_cert_type:
- type: string
- description: Format of provided certificates
- default: "P12"
- external_cert_common_name:
- type: string
- description: Common name which should be present in certificate.
- default: "sample.onap.org"
- external_cert_sans:
- type: string
- description: "List of Subject Alternative Names (SANs) which should be present
- in certificate. Delimiter - : Should contain common_name value and other FQDNs
- under which given component is accessible."
- default: "sample.onap.org:component.sample.onap.org"
- external_cert_use_external_tls:
- type: boolean
- description: Flag to indicate external tls enable/disable.
- default: false
- external_port_0:
- type: string
- default: "80"
- external_port_1:
- type: string
- default: "99"
- image:
- type: string
- default: "test.tester"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- service_component_name_override:
- type: string
- default: ""
- test.component.spec_cpu_limit:
- type: string
- default: "250m"
- test.component.spec_cpu_request:
- type: string
- default: "250m"
- test.component.spec_memory_limit:
- type: string
- default: "128Mi"
- test.component.spec_memory_request:
- type: string
- default: "128Mi"
- use_tls:
- type: boolean
- description: flag to indicate tls enable/disable
- default: false
-node_templates:
- test.component.spec:
- type: dcae.nodes.ContainerizedServiceComponent
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports:
- - concat: ["80:", {get_input: external_port_0}]
- - concat: ["99:", {get_input: external_port_1}]
- envs:
- get_input: envs
- properties:
- application_config:
- service_calls: []
- streams_publishes: {}
- streams_subscribes: {}
- service_component_name_override:
- get_input: service_component_name_override
- docker_config:
- healthcheck:
- interval: 300s
- timeout: 120s
- script: /etc/init.d/nagios status
- type: docker
- image:
- get_input: image
- location_id:
- get_input: location_id
- service_component_type: test-component-spec
- replicas:
- get_input: replicas
- tls_info:
- cert_directory: /opt/app/dcae-certificate/
- use_tls:
- get_input: use_tls
- external_cert:
- external_cert_directory: /opt/app/dcae-certificate/
- use_external_tls:
- get_input: external_cert_use_external_tls
- ca_name:
- get_input: external_cert_ca_name
- cert_type:
- get_input: external_cert_cert_type
- external_certificate_parameters:
- common_name:
- get_input: external_cert_common_name
- sans:
- get_input: external_cert_sans
- resource_config:
- limits:
- cpu:
- get_input: test.component.spec_cpu_limit
- memory:
- get_input: test.component.spec_memory_limit
- requests:
- cpu:
- get_input: test.component.spec_cpu_request
- memory:
- get_input: test.component.spec_memory_request
- always_pull_image:
- get_input: always_pull_image
- relationships: [] \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndExternalTlsTrue.yaml b/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndExternalTlsTrue.yaml
deleted file mode 100644
index 4313d6b..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndExternalTlsTrue.yaml
+++ /dev/null
@@ -1,136 +0,0 @@
-
-#description: Test component spec
-#blueprint_version: 1.0.1
----
-tosca_definitions_version: cloudify_dsl_1_3
-imports:
-- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml
-inputs:
- always_pull_image:
- type: boolean
- description: Set to true if the image should always be pulled
- default: true
- envs:
- default: {}
- external_cert_ca_name:
- type: string
- description: Name of Certificate Authority configured on CertService side.
- default: "RA"
- external_cert_cert_type:
- type: string
- description: Format of provided certificates
- default: "P12"
- external_cert_common_name:
- type: string
- description: Common name which should be present in certificate.
- default: "sample.onap.org"
- external_cert_sans:
- type: string
- description: "List of Subject Alternative Names (SANs) which should be present
- in certificate. Delimiter - : Should contain common_name value and other FQDNs
- under which given component is accessible."
- default: "sample.onap.org:component.sample.onap.org"
- external_cert_use_external_tls:
- type: boolean
- description: Flag to indicate external tls enable/disable.
- default: true
- external_port_0:
- type: string
- default: "80"
- external_port_1:
- type: string
- default: "99"
- image:
- type: string
- default: "test.tester"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- service_component_name_override:
- type: string
- default: ""
- test.component.spec_cpu_limit:
- type: string
- default: "250m"
- test.component.spec_cpu_request:
- type: string
- default: "250m"
- test.component.spec_memory_limit:
- type: string
- default: "128Mi"
- test.component.spec_memory_request:
- type: string
- default: "128Mi"
- use_tls:
- type: boolean
- description: flag to indicate tls enable/disable
- default: true
-node_templates:
- test.component.spec:
- type: dcae.nodes.ContainerizedServiceComponent
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports:
- - concat: ["80:", {get_input: external_port_0}]
- - concat: ["99:", {get_input: external_port_1}]
- envs:
- get_input: envs
- properties:
- application_config:
- service_calls: []
- streams_publishes: {}
- streams_subscribes: {}
- service_component_name_override:
- get_input: service_component_name_override
- docker_config:
- healthcheck:
- interval: 300s
- timeout: 120s
- script: /etc/init.d/nagios status
- type: docker
- image:
- get_input: image
- location_id:
- get_input: location_id
- service_component_type: test-component-spec
- replicas:
- get_input: replicas
- tls_info:
- cert_directory: /opt/app/dcae-certificate/
- use_tls:
- get_input: use_tls
- external_cert:
- external_cert_directory: /opt/app/dcae-certificate/
- use_external_tls:
- get_input: external_cert_use_external_tls
- ca_name:
- get_input: external_cert_ca_name
- cert_type:
- get_input: external_cert_cert_type
- external_certificate_parameters:
- common_name:
- get_input: external_cert_common_name
- sans:
- get_input: external_cert_sans
- resource_config:
- limits:
- cpu:
- get_input: test.component.spec_cpu_limit
- memory:
- get_input: test.component.spec_memory_limit
- requests:
- cpu:
- get_input: test.component.spec_cpu_request
- memory:
- get_input: test.component.spec_memory_request
- always_pull_image:
- get_input: always_pull_image
- relationships: [] \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndNoExternalTls.yaml b/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndNoExternalTls.yaml
deleted file mode 100644
index c4515e3..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withTlsTrueAndNoExternalTls.yaml
+++ /dev/null
@@ -1,101 +0,0 @@
-
-#description: Test component spec
-#blueprint_version: 1.0.1
----
-tosca_definitions_version: cloudify_dsl_1_3
-imports:
-- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml
-inputs:
- always_pull_image:
- type: boolean
- description: Set to true if the image should always be pulled
- default: true
- envs:
- default: {}
- external_port_0:
- type: string
- default: "80"
- external_port_1:
- type: string
- default: "99"
- image:
- type: string
- default: "test.tester"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- service_component_name_override:
- type: string
- default: ""
- test.component.spec_cpu_limit:
- type: string
- default: "250m"
- test.component.spec_cpu_request:
- type: string
- default: "250m"
- test.component.spec_memory_limit:
- type: string
- default: "128Mi"
- test.component.spec_memory_request:
- type: string
- default: "128Mi"
- use_tls:
- type: boolean
- description: flag to indicate tls enable/disable
- default: true
-node_templates:
- test.component.spec:
- type: dcae.nodes.ContainerizedServiceComponent
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports:
- - concat: ["80:", {get_input: external_port_0}]
- - concat: ["99:", {get_input: external_port_1}]
- envs:
- get_input: envs
- properties:
- application_config:
- service_calls: []
- streams_publishes: {}
- streams_subscribes: {}
- service_component_name_override:
- get_input: service_component_name_override
- docker_config:
- healthcheck:
- interval: 300s
- timeout: 120s
- script: /etc/init.d/nagios status
- type: docker
- image:
- get_input: image
- location_id:
- get_input: location_id
- service_component_type: test-component-spec
- replicas:
- get_input: replicas
- tls_info:
- cert_directory: /opt/app/dcae-certificate/
- use_tls:
- get_input: use_tls
- resource_config:
- limits:
- cpu:
- get_input: test.component.spec_cpu_limit
- memory:
- get_input: test.component.spec_memory_limit
- requests:
- cpu:
- get_input: test.component.spec_cpu_request
- memory:
- get_input: test.component.spec_memory_request
- always_pull_image:
- get_input: always_pull_image
- relationships: [] \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withoutTlsInfo.yaml b/mod/bpgenerator/TestCases/TlsInfo/blueprint_withoutTlsInfo.yaml
deleted file mode 100644
index e1f942f..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/blueprint_withoutTlsInfo.yaml
+++ /dev/null
@@ -1,93 +0,0 @@
-
-#description: Test component spec
-#blueprint_version: 1.0.1
----
-tosca_definitions_version: cloudify_dsl_1_3
-imports:
-- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/dcaepolicyplugin/2.4.0/dcaepolicyplugin_types.yaml
-inputs:
- always_pull_image:
- type: boolean
- description: Set to true if the image should always be pulled
- default: true
- envs:
- default: {}
- external_port_0:
- type: string
- default: "80"
- external_port_1:
- type: string
- default: "99"
- image:
- type: string
- default: "test.tester"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- service_component_name_override:
- type: string
- default: ""
- test.component.spec_cpu_limit:
- type: string
- default: "250m"
- test.component.spec_cpu_request:
- type: string
- default: "250m"
- test.component.spec_memory_limit:
- type: string
- default: "128Mi"
- test.component.spec_memory_request:
- type: string
- default: "128Mi"
-node_templates:
- test.component.spec:
- type: dcae.nodes.ContainerizedServiceComponent
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports:
- - concat: ["80:", {get_input: external_port_0}]
- - concat: ["99:", {get_input: external_port_1}]
- envs:
- get_input: envs
- properties:
- application_config:
- service_calls: []
- streams_publishes: {}
- streams_subscribes: {}
- service_component_name_override:
- get_input: service_component_name_override
- docker_config:
- healthcheck:
- interval: 300s
- timeout: 120s
- script: /etc/init.d/nagios status
- type: docker
- image:
- get_input: image
- location_id:
- get_input: location_id
- service_component_type: test-component-spec
- replicas:
- get_input: replicas
- resource_config:
- limits:
- cpu:
- get_input: test.component.spec_cpu_limit
- memory:
- get_input: test.component.spec_memory_limit
- requests:
- cpu:
- get_input: test.component.spec_cpu_request
- memory:
- get_input: test.component.spec_memory_request
- always_pull_image:
- get_input: always_pull_image
- relationships: [] \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsFalseAndExternalTlsFalse.json b/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsFalseAndExternalTlsFalse.json
deleted file mode 100644
index da75ab8..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsFalseAndExternalTlsFalse.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Test component spec",
- "name": "test.component.spec",
- "version": "1.0.1"
- },
-
- "services": {
- "calls": [],
- "provides": []
- },
-
- "streams": {
- "publishes": [],
- "subscribes": []
- },
-
- "parameters": [],
-
- "auxilary": {
- "healthcheck": {
- "type": "docker",
- "interval": "300s",
- "timeout": "120s",
- "script": "/etc/init.d/nagios status"
- },
- "ports": [
- "80:80",
- "99:99"
- ],
- "tls_info": {
- "cert_directory": "/opt/app/dcae-certificate/",
- "use_tls": false,
- "use_external_tls": false
- }
- },
- "artifacts": [{
- "type": "docker image",
- "uri": "test.tester"
- }]
-
-}
diff --git a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndExternalTlsTrue.json b/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndExternalTlsTrue.json
deleted file mode 100644
index f13e3fd..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndExternalTlsTrue.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Test component spec",
- "name": "test.component.spec",
- "version": "1.0.1"
- },
-
- "services": {
- "calls": [],
- "provides": []
- },
-
- "streams": {
- "publishes": [],
- "subscribes": []
- },
-
- "parameters": [],
-
- "auxilary": {
- "healthcheck": {
- "type": "docker",
- "interval": "300s",
- "timeout": "120s",
- "script": "/etc/init.d/nagios status"
- },
- "ports": [
- "80:80",
- "99:99"
- ],
- "tls_info": {
- "cert_directory": "/opt/app/dcae-certificate/",
- "use_tls": true,
- "use_external_tls": true
- }
- },
- "artifacts": [{
- "type": "docker image",
- "uri": "test.tester"
- }]
-
-}
diff --git a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndNoExternalTls.json b/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndNoExternalTls.json
deleted file mode 100644
index 517c461..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withTlsTrueAndNoExternalTls.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Test component spec",
- "name": "test.component.spec",
- "version": "1.0.1"
- },
-
- "services": {
- "calls": [],
- "provides": []
- },
-
- "streams": {
- "publishes": [],
- "subscribes": []
- },
-
- "parameters": [],
-
- "auxilary": {
- "healthcheck": {
- "type": "docker",
- "interval": "300s",
- "timeout": "120s",
- "script": "/etc/init.d/nagios status"
- },
- "ports": [
- "80:80",
- "99:99"
- ],
- "tls_info": {
- "cert_directory": "/opt/app/dcae-certificate/",
- "use_tls": true
- }
- },
- "artifacts": [{
- "type": "docker image",
- "uri": "test.tester"
- }]
-
-}
diff --git a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withoutTlsInfo.json b/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withoutTlsInfo.json
deleted file mode 100644
index a94c987..0000000
--- a/mod/bpgenerator/TestCases/TlsInfo/testComponentSpec_withoutTlsInfo.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Test component spec",
- "name": "test.component.spec",
- "version": "1.0.1"
- },
-
- "services": {
- "calls": [],
- "provides": []
- },
-
- "streams": {
- "publishes": [],
- "subscribes": []
- },
-
- "parameters": [],
-
- "auxilary": {
- "healthcheck": {
- "type": "docker",
- "interval": "300s",
- "timeout": "120s",
- "script": "/etc/init.d/nagios status"
- },
- "ports": [
- "80:80",
- "99:99"
- ]
- },
- "artifacts": [{
- "type": "docker image",
- "uri": "test.tester"
- }]
-
-}
diff --git a/mod/bpgenerator/TestCases/datafile.json b/mod/bpgenerator/TestCases/datafile.json
deleted file mode 100644
index d93bdb6..0000000
--- a/mod/bpgenerator/TestCases/datafile.json
+++ /dev/null
@@ -1,426 +0,0 @@
-{
- "self": {
- "name": "dcaegen2.collectors.datafile.datafile-app-server",
- "version": "1.0.0",
- "description": "Docker application to collect log file from PNF",
- "component_type": "docker"
- },
- "streams": {
- "subscribes": [
- {
- "type": "message_router",
- "config_key": "datafile_subscribe_mr",
- "format": "VES_specification",
- "version": "7.30.1"
- }
- ],
- "publishes": [
- {
- "type": "data_router",
- "config_key": "datafile_publish_dr",
- "format": "3GPP_XML",
- "version": "1.0.0"
- }
- ]
- },
- "services": {
- "calls": [],
- "provides": []
- },
- "auxilary": {
- "healthcheck": {
- "type": "http",
- "interval": "15s",
- "timeout": "1s",
- "endpoint": "/heartbeat"
- }
- },
- "artifacts": [
- {
- "uri": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest",
- "type": "docker image"
- }
- ],
- "parameters": [
- {
- "name": "service_name",
- "value": "datafile",
- "description": "Name of the service",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "buscontroller_feed_publishing_endpoint",
- "value": "http://dmaap-bc.onap.svc.cluster.local:8080/webapi/feeds",
- "description": "DMAAP Bus Controller feed endpoint",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": true,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap_dr_feed_id",
- "value": "bulk_pm_feed",
- "description": "ID of the data router feed that the datafile collector will publish",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "streams_consumer.datafile_consume_mr.message_router_topic",
- "value": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT",
- "description": "datafile collector consume VES event to message router topic ",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.dmaapHostName",
- "value": "localhost",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.dmaapPortNumber",
- "value": "2222",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.dmaapTopicName",
- "value": "/events/unauthenticated.VES_NOTIFICATION_OUTPUT",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.dmaapProtocol",
- "value": "http",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.dmaapContentType",
- "value": "application/json",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.consumerId",
- "value": "C12",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.consumerGroup",
- "value": "OpenDcae-c12",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.timeoutMs",
- "value": "-1",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapConsumerConfiguration.messageLimit",
- "value": "1",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapHostName",
- "value": "localhost",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapPortNumber",
- "value": "3907",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapTopicName",
- "value": "publish",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapProtocol",
- "value": "https",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapUserName",
- "value": "dradmin",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapUserPassword",
- "value": "dradmin",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapProducerConfiguration.dmaapContentType",
- "value": "application/octet-stream",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "ftp.ftpesConfiguration.keyCert",
- "value": "config/dfc.jks",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "ftp.ftpesConfiguration.keyPassword",
- "value": "secret",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "ftp.ftpesConfiguration.trustedCA",
- "value": "config/ftp.jks",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "ftp.ftpesConfiguration.trustedCAPassword",
- "value": "secret",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "security.trustStorePath",
- "value": "/opt/app/datafile/etc/cert/trust.jks",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "security.trustStorePasswordPath",
- "value": "/opt/app/datafile/etc/cert/trust.pass",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "security.keyStorePath",
- "value": "/opt/app/datafile/etc/cert/key.p12",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "security.keyStorePasswordPath",
- "value": "/opt/app/datafile/etc/cert/key.pass",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "security.enableDmaapCertAuth",
- "value": false,
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapHostName",
- "value": "localhost",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapPortNumber",
- "value": "6666",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapTopicName",
- "value": "webapis/feeds",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapDrFeedName",
- "value": "bulk_pm_feed",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapProtocol",
- "value": "https",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapUserName",
- "value": "dbcadmin",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapUserPassword",
- "value": "dbcadmin",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "dmaap.dmaapBusControllerConfiguration.dmaapContentType",
- "value": "application/json",
- "description": "",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false,
- "type": "string",
- "required": true
- },
- {
- "name": "datafile.policy",
- "value": "",
- "description": "datafile Policy JSON as string",
- "designer_editable": false,
- "sourced_at_deployment": false,
- "policy_editable": true,
- "type": "string",
- "required": true
- }
- ]
-}
diff --git a/mod/bpgenerator/TestCases/expects/createAppConfigResult.txt b/mod/bpgenerator/TestCases/expects/createAppConfigResult.txt
deleted file mode 100644
index 11ce552..0000000
--- a/mod/bpgenerator/TestCases/expects/createAppConfigResult.txt
+++ /dev/null
@@ -1 +0,0 @@
-{TEST-PUB-DR_delivery_url={type=string}, TEST-PUB-DR_location={type=string}, TEST-PUB-DR_password={type=string}, TEST-PUB-DR_subscriber_id={type=string}, TEST-PUB-DR_username={type=string}, TEST-SUB-DR_delivery_url={type=string}, TEST-SUB-DR_location={type=string}, TEST-SUB-DR_password={type=string}, TEST-SUB-DR_subscriber_id={type=string}, TEST-SUB-DR_username={type=string}, TEST_PUB_MR_publish_url={type=string}, TEST_SUB_MR_subscribe_url={type=string}, service_component_name_override={type=string, default=}, testParam1={type=string, default=test-param-1}}
diff --git a/mod/bpgenerator/TestCases/hello.json b/mod/bpgenerator/TestCases/hello.json
deleted file mode 100644
index ec7d26a..0000000
--- a/mod/bpgenerator/TestCases/hello.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR",
- "name": "dcae.collectors.vcc.helloworld.pm",
- "version": "1.0.1"
- },
- "services": {
- "calls": [],
- "provides": []
- },
- "streams": {
- "publishes": [{
- "config_key": "DCAE-HELLO-WORLD-PUB-DR",
- "format": "dataformat_Hello_World_PM",
- "type": "data_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-PUB-MR",
- "format": "dataformat_Hello_World_PM",
- "type": "message_router",
- "version": "1.0.0"
- }
- ],
- "subscribes": [{
- "config_key": "DCAE-HELLO-WORLD-SUB-MR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE_HELLO_WORLD_SUB_MR",
- "type": "message_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-SUB-DR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE-HELLO-WORLD-SUB-DR",
- "type": "data_router",
- "version": "1.0.0"
- }
- ]
- },
- "parameters":
- [
- {
- "name": "vcc_hello_name",
- "value": "fsdfa",
- "description": "the name entered for specific person",
- "sourced_at_deployment": true,
- "designer_editable": true,
- "policy_editable": false,
- "type": "string"
- },
-
- {
- "name": "useDtiConfig",
- "value": false,
- "description": "component depends on configuration from dti.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true
- },
-
- {
- "name": "isSelfServeComponent",
- "value": false,
- "description": "Is this used as self serve component.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true,
- "type": "string"
- }
- ],
- "auxilary": {
- "healthcheck": {
- "interval": "60s",
- "timeout": "20s",
- "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
- "type": "docker"
- },
- "volumes": [
- {
- "container": {
- "bind": "/opt/app/dcae-certificate"
- },
- "host": {
- "path": "/opt/app/dcae-certificate"
- }
- },
- {
- "container": {
- "bind": "/opt/logs/DCAE/dmd/AGENT"
- },
- "host": {
- "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT"
- }
- },
- {
- "container": {
- "bind": "/opt/logs/DCAE/dmd/WATCHER"
- },
- "host": {
- "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER"
- }
- },
- {
- "container": {
- "bind": "/opt/app/vcc/logs/DCAE"
- },
- "host": {
- "path": "/opt/logs/DCAE/helloworldpm/vcc-logs"
- }
- },
- {
- "container": {
- "bind": "/opt/app/vcc/archive/data"
- },
- "host": {
- "path": "/opt/data/DCAE/helloworldpm/vcc-archive"
- }
- }
- ]
- },
- "artifacts": [{
- "type": "docker image",
- "uri": "dockercentral.it.att.com:5100/com.att.dcae.controller/dcae-controller-vcc-helloworld-pm:18.02-001"
- }]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_with_dmaap.yaml b/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_with_dmaap.yaml
deleted file mode 100644
index 95961ee..0000000
--- a/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_with_dmaap.yaml
+++ /dev/null
@@ -1,376 +0,0 @@
-# ============LICENSE_START=======================================================
-# org.onap.dcae
-# ================================================================================
-# Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ============LICENSE_END=========================================================
-#
-#description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR
-#blueprint_version: 1.0.1
----
-tosca_definitions_version: cloudify_dsl_1_3
-description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing
- them and publishing them as PM files to local DMaaP DR
-imports:
-- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.1/k8splugin_types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml
-inputs:
- DCAE-HELLO-WORLD-PUB-DR_DCAE-HELLO-WORLD-PUB-DR_feed_location:
- type: string
- DCAE-HELLO-WORLD-PUB-DR_feed_name:
- type: string
- DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_password:
- type: string
- DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_username:
- type: string
- DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_client_role:
- type: string
- DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_location:
- type: string
- DCAE-HELLO-WORLD-PUB-MR_topic_name:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_decompress:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_location:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_password:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_priviliged:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_username:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_feed_name:
- type: string
- DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_password:
- type: string
- DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_username:
- type: string
- DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_client_role:
- type: string
- DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_location:
- type: string
- DCAE-HELLO-WORLD-SUB-MR_topic_name:
- type: string
- dcae.collectors.vcc.helloworld.pm_cpu_limit:
- type: string
- default: "250m"
- dcae.collectors.vcc.helloworld.pm_cpu_request:
- type: string
- default: "250m"
- dcae.collectors.vcc.helloworld.pm_memory_limit:
- type: string
- default: "128Mi"
- dcae.collectors.vcc.helloworld.pm_memory_request:
- type: string
- default: "128Mi"
- dcaes_database_name:
- type: string
- description: db name
- default: ""
- dcaes_database_writerfqdn:
- type: string
- description: db writerfqdn
- default: ""
- dti_database_name:
- type: string
- description: db name
- default: ""
- dti_database_writerfqdn:
- type: string
- description: db writerfqdn
- default: ""
- envs:
- default: &envs {}
- replicas:
- type: integer
- description: number of instances
- default: 1
- repo_database_name:
- type: string
- description: db name
- default: ""
- repo_database_writerfqdn:
- type: string
- description: db writerfqdn
- default: ""
- service_component_name_override:
- type: string
- default: ""
- tag_version:
- type: string
- default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- tca_policy_00_policy_id:
- type: string
- description: policy_id
- default: ""
- tca_policy_11_policy_id:
- type: string
- description: policy_id
- default: "tca_policy_id_11"
- use_tls:
- type: boolean
- description: flag to indicate tls enable/disable
- default: true
- vcc_hello_name:
- type: string
- default: "fsdfa"
-node_templates:
- DCAE-HELLO-WORLD-PUB-DR_feed:
- type: ccsdk.nodes.Feed
- properties:
- feed_name:
- get_input: DCAE-HELLO-WORLD-PUB-DR_feed_name
- DCAE-HELLO-WORLD-PUB-MR_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: DCAE-HELLO-WORLD-PUB-MR_topic_name
- DCAE-HELLO-WORLD-SUB-DR_feed:
- type: ccsdk.nodes.Feed
- properties:
- feed_name:
- get_input: DCAE-HELLO-WORLD-SUB-DR_feed_name
- DCAE-HELLO-WORLD-SUB-MR_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: DCAE-HELLO-WORLD-SUB-MR_topic_name
- dcae.collectors.vcc.helloworld.pm:
- type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports: []
- envs:
- <<: *envs
- DCAES_DB_NAME:
- get_input: dcaes_database_name
- DCAES_DB_ADMIN_HOST:
- get_attribute:
- - dcaes_pgaasdb
- - admin
- - host
- DCAES_DB_ADMIN_USER:
- get_attribute:
- - dcaes_pgaasdb
- - admin
- - user
- DCAES_DB_ADMIN_PASS:
- get_attribute:
- - dcaes_pgaasdb
- - admin
- - password
- DTI_DB_NAME:
- get_input: dti_database_name
- DTI_DB_ADMIN_HOST:
- get_attribute:
- - dti_pgaasdb
- - admin
- - host
- DTI_DB_ADMIN_USER:
- get_attribute:
- - dti_pgaasdb
- - admin
- - user
- DTI_DB_ADMIN_PASS:
- get_attribute:
- - dti_pgaasdb
- - admin
- - password
- REPO_DB_NAME:
- get_input: repo_database_name
- REPO_DB_ADMIN_HOST:
- get_attribute:
- - repo_pgaasdb
- - admin
- - host
- REPO_DB_ADMIN_USER:
- get_attribute:
- - repo_pgaasdb
- - admin
- - user
- REPO_DB_ADMIN_PASS:
- get_attribute:
- - repo_pgaasdb
- - admin
- - password
- properties:
- application_config:
- service_calls: []
- streams_publishes:
- DCAE-HELLO-WORLD-PUB-DR:
- dmaap_info: <<DCAE-HELLO-WORLD-PUB-DR_feed>>
- type: data_router
- DCAE-HELLO-WORLD-PUB-MR:
- dmaap_info: <<DCAE-HELLO-WORLD-PUB-MR_topic>>
- type: message_router
- pass:
- get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_password
- user:
- get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_aaf_username
- streams_subscribes:
- DCAE-HELLO-WORLD-SUB-DR:
- dmaap_info: <<DCAE-HELLO-WORLD-SUB-DR_feed>>
- type: data_router
- DCAE-HELLO-WORLD-SUB-MR:
- dmaap_info: <<DCAE-HELLO-WORLD-SUB-MR_topic>>
- type: message_router
- pass:
- get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_password
- user:
- get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_aaf_username
- isSelfServeComponent: false
- service_component_name_override:
- get_input: service_component_name_override
- useDtiConfig: false
- vcc_hello_name:
- get_input: vcc_hello_name
- docker_config:
- healthcheck:
- interval: 60s
- timeout: 20s
- script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
- type: docker
- volumes:
- - container:
- bind: /opt/app/dcae-certificate
- host:
- path: /opt/app/dcae-certificate
- - container:
- bind: /opt/logs/DCAE/dmd/AGENT
- host:
- path: /opt/logs/DCAE/helloworldpm/dmd/AGENT
- - container:
- bind: /opt/logs/DCAE/dmd/WATCHER
- host:
- path: /opt/logs/DCAE/helloworldpm/dmd/WATCHER
- - container:
- bind: /opt/app/vcc/logs/DCAE
- host:
- path: /opt/logs/DCAE/helloworldpm/vcc-logs
- - container:
- bind: /opt/app/vcc/archive/data
- host:
- path: /opt/data/DCAE/helloworldpm/vcc-archive
- image:
- get_input: tag_version
- service_component_type: dcae-collectors-vcc-helloworld-pm
- log_info:
- log_directory: /opt/app/VESCollector/logs/ecomp
- replicas:
- get_input: replicas
- streams_publishes:
- - name: DCAE-HELLO-WORLD-PUB-DR_feed
- location:
- get_input: DCAE-HELLO-WORLD-PUB-DR_DCAE-HELLO-WORLD-PUB-DR_feed_location
- type: data_router
- - name: DCAE-HELLO-WORLD-PUB-MR_topic
- location:
- get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_location
- client_role:
- get_input: DCAE-HELLO-WORLD-PUB-MR_DCAE-HELLO-WORLD-PUB-MR_topic_client_role
- type: message_router
- streams_subscribes:
- - name: DCAE-HELLO-WORLD-SUB-MR_topic
- location:
- get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_location
- client_role:
- get_input: DCAE-HELLO-WORLD-SUB-MR_DCAE-HELLO-WORLD-SUB-MR_topic_client_role
- type: message_router
- - name: DCAE-HELLO-WORLD-SUB-DR_feed
- location:
- get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_location
- type: data_router
- username:
- get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_username
- password:
- get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_password
- privileged:
- get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_priviliged
- decompress:
- get_input: DCAE-HELLO-WORLD-SUB-DR_DCAE-HELLO-WORLD-SUB-DR_feed_decompress
- route: /DCAE-HELLO-WORLD-SUB-DR
- scheme: https
- tls_info:
- cert_directory: /opt/app/dh/etc/cert
- use_tls:
- get_input: use_tls
- resource_config:
- limits:
- cpu:
- get_input: dcae.collectors.vcc.helloworld.pm_cpu_limit
- memory:
- get_input: dcae.collectors.vcc.helloworld.pm_memory_limit
- requests:
- cpu:
- get_input: dcae.collectors.vcc.helloworld.pm_cpu_request
- memory:
- get_input: dcae.collectors.vcc.helloworld.pm_memory_request
- relationships:
- - type: ccsdk.relationships.publish_files
- target: DCAE-HELLO-WORLD-PUB-DR_feed
- - type: ccsdk.relationships.publish_events
- target: DCAE-HELLO-WORLD-PUB-MR_topic
- - type: ccsdk.relationships.subscribe_to_events
- target: DCAE-HELLO-WORLD-SUB-MR_topic
- - type: ccsdk.relationships.subscribe_to_files
- target: DCAE-HELLO-WORLD-SUB-DR_feed
- - type: cloudify.relationships.depends_on
- target: tca_policy_00
- - type: cloudify.relationships.depends_on
- target: tca_policy_11
- - type: cloudify.relationships.depends_on
- target: dcaes_pgaasdb
- - type: cloudify.relationships.depends_on
- target: dti_pgaasdb
- - type: cloudify.relationships.depends_on
- target: repo_pgaasdb
- dcaes_pgaasdb:
- type: dcae.nodes.pgaas.database
- properties:
- writerfqdn:
- get_input: dcaes_database_writerfqdn
- name:
- get_input: dcaes_database_name
- use_existing: true
- dti_pgaasdb:
- type: dcae.nodes.pgaas.database
- properties:
- writerfqdn:
- get_input: dti_database_writerfqdn
- name:
- get_input: dti_database_name
- use_existing: true
- repo_pgaasdb:
- type: dcae.nodes.pgaas.database
- properties:
- writerfqdn:
- get_input: repo_database_writerfqdn
- name:
- get_input: repo_database_name
- use_existing: true
- tca_policy_00:
- type: clamp.nodes.policy
- properties:
- policy_id:
- get_input: tca_policy_00_policy_id
- policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app
- tca_policy_11:
- type: clamp.nodes.policy
- properties:
- policy_id:
- get_input: tca_policy_11_policy_id
- policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_without_dmaap_yaml.yaml b/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_without_dmaap_yaml.yaml
deleted file mode 100644
index 4e1f5b5..0000000
--- a/mod/bpgenerator/TestCases/helloworld/blueprint/helloworld_changed_without_dmaap_yaml.yaml
+++ /dev/null
@@ -1,330 +0,0 @@
-# ============LICENSE_START=======================================================
-# org.onap.dcae
-# ================================================================================
-# Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ============LICENSE_END=========================================================
-#
-#description: Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR
-#blueprint_version: 1.0.1
----
-tosca_definitions_version: cloudify_dsl_1_3
-imports:
-- https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.1/k8splugin_types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins/type_files/dmaap/dmaap.yaml
-inputs:
- DCAE-HELLO-WORLD-PUB-DR_delivery_url:
- type: string
- DCAE-HELLO-WORLD-PUB-DR_location:
- type: string
- DCAE-HELLO-WORLD-PUB-DR_password:
- type: string
- DCAE-HELLO-WORLD-PUB-DR_subscriber_id:
- type: string
- DCAE-HELLO-WORLD-PUB-DR_username:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_delivery_url:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_location:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_password:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_subscriber_id:
- type: string
- DCAE-HELLO-WORLD-SUB-DR_username:
- type: string
- DCAE_HELLO_WORLD_PUB_MR_publish_url:
- type: string
- DCAE_HELLO_WORLD_SUB_MR_subscribe_url:
- type: string
- always_pull_image:
- type: boolean
- description: Set to true if the image should always be pulled
- default: true
- dcae.collectors.vcc.helloworld.pm_cpu_limit:
- type: string
- default: "250m"
- dcae.collectors.vcc.helloworld.pm_cpu_request:
- type: string
- default: "250m"
- dcae.collectors.vcc.helloworld.pm_memory_limit:
- type: string
- default: "128Mi"
- dcae.collectors.vcc.helloworld.pm_memory_request:
- type: string
- default: "128Mi"
- dcaes_database_name:
- type: string
- description: db name
- default: ""
- dcaes_database_writerfqdn:
- type: string
- description: db writerfqdn
- default: ""
- dti_database_name:
- type: string
- description: db name
- default: ""
- dti_database_writerfqdn:
- type: string
- description: db writerfqdn
- default: ""
- envs:
- default: &envs {}
- image:
- type: string
- default: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- repo_database_name:
- type: string
- description: db name
- default: ""
- repo_database_writerfqdn:
- type: string
- description: db writerfqdn
- default: ""
- service_component_name_override:
- type: string
- default: ""
- tca_policy_00_policy_id:
- type: string
- description: policy_id
- default: ""
- tca_policy_11_policy_id:
- type: string
- description: policy_id
- default: "tca_policy_id_11"
- use_tls:
- type: boolean
- description: flag to indicate tls enable/disable
- default: true
- vcc_hello_name:
- type: string
- default: "fsdfa"
-node_templates:
- dcae.collectors.vcc.helloworld.pm:
- type: dcae.nodes.ContainerizedPlatformComponent
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports: []
- envs:
- <<: *envs
- DCAES_DB_NAME:
- get_input: dcaes_database_name
- DCAES_DB_ADMIN_HOST:
- get_attribute:
- - dcaes_pgaasdb
- - admin
- - host
- DCAES_DB_ADMIN_USER:
- get_attribute:
- - dcaes_pgaasdb
- - admin
- - user
- DCAES_DB_ADMIN_PASS:
- get_attribute:
- - dcaes_pgaasdb
- - admin
- - password
- DTI_DB_NAME:
- get_input: dti_database_name
- DTI_DB_ADMIN_HOST:
- get_attribute:
- - dti_pgaasdb
- - admin
- - host
- DTI_DB_ADMIN_USER:
- get_attribute:
- - dti_pgaasdb
- - admin
- - user
- DTI_DB_ADMIN_PASS:
- get_attribute:
- - dti_pgaasdb
- - admin
- - password
- REPO_DB_NAME:
- get_input: repo_database_name
- REPO_DB_ADMIN_HOST:
- get_attribute:
- - repo_pgaasdb
- - admin
- - host
- REPO_DB_ADMIN_USER:
- get_attribute:
- - repo_pgaasdb
- - admin
- - user
- REPO_DB_ADMIN_PASS:
- get_attribute:
- - repo_pgaasdb
- - admin
- - password
- properties:
- application_config:
- service_calls: []
- streams_publishes:
- DCAE-HELLO-WORLD-PUB-DR:
- dmaap_info:
- username:
- get_input: DCAE-HELLO-WORLD-PUB-DR_username
- password:
- get_input: DCAE-HELLO-WORLD-PUB-DR_password
- location:
- get_input: DCAE-HELLO-WORLD-PUB-DR_location
- delivery_url:
- get_input: DCAE-HELLO-WORLD-PUB-DR_delivery_url
- subscriber_id:
- get_input: DCAE-HELLO-WORLD-PUB-DR_subscriber_id
- type: data_router
- DCAE-HELLO-WORLD-PUB-MR:
- dmaap_info:
- topic_url:
- get_input: DCAE_HELLO_WORLD_PUB_MR_publish_url
- type: message_router
- streams_subscribes:
- DCAE-HELLO-WORLD-SUB-DR:
- dmaap_info:
- username:
- get_input: DCAE-HELLO-WORLD-SUB-DR_username
- password:
- get_input: DCAE-HELLO-WORLD-SUB-DR_password
- location:
- get_input: DCAE-HELLO-WORLD-SUB-DR_location
- delivery_url:
- get_input: DCAE-HELLO-WORLD-SUB-DR_delivery_url
- subscriber_id:
- get_input: DCAE-HELLO-WORLD-SUB-DR_subscriber_id
- type: data_router
- DCAE-HELLO-WORLD-SUB-MR:
- dmaap_info:
- topic_url:
- get_input: DCAE_HELLO_WORLD_SUB_MR_subscribe_url
- type: message_router
- isSelfServeComponent: false
- service_component_name_override:
- get_input: service_component_name_override
- useDtiConfig: false
- vcc_hello_name:
- get_input: vcc_hello_name
- docker_config:
- healthcheck:
- interval: 60s
- timeout: 20s
- script: /opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh
- type: docker
- volumes:
- - container:
- bind: /opt/app/dcae-certificate
- host:
- path: /opt/app/dcae-certificate
- - container:
- bind: /opt/logs/DCAE/dmd/AGENT
- host:
- path: /opt/logs/DCAE/helloworldpm/dmd/AGENT
- - container:
- bind: /opt/logs/DCAE/dmd/WATCHER
- host:
- path: /opt/logs/DCAE/helloworldpm/dmd/WATCHER
- - container:
- bind: /opt/app/vcc/logs/DCAE
- host:
- path: /opt/logs/DCAE/helloworldpm/vcc-logs
- - container:
- bind: /opt/app/vcc/archive/data
- host:
- path: /opt/data/DCAE/helloworldpm/vcc-archive
- image:
- get_input: image
- location_id:
- get_input: location_id
- log_info:
- log_directory: /opt/app/VESCollector/logs/ecomp
- dns_name: dcae.collectors.vcc.helloworld.pm
- replicas:
- get_input: replicas
- name: dcae.collectors.vcc.helloworld.pm
- tls_info:
- cert_directory: /opt/app/dh/etc/cert
- use_tls:
- get_input: use_tls
- resource_config:
- limits:
- cpu:
- get_input: dcae.collectors.vcc.helloworld.pm_cpu_limit
- memory:
- get_input: dcae.collectors.vcc.helloworld.pm_memory_limit
- requests:
- cpu:
- get_input: dcae.collectors.vcc.helloworld.pm_cpu_request
- memory:
- get_input: dcae.collectors.vcc.helloworld.pm_memory_request
- always_pull_image:
- get_input: always_pull_image
- relationships:
- - type: cloudify.relationships.depends_on
- target: tca_policy_00
- - type: cloudify.relationships.depends_on
- target: tca_policy_11
- - type: cloudify.relationships.depends_on
- target: dcaes_pgaasdb
- - type: cloudify.relationships.depends_on
- target: dti_pgaasdb
- - type: cloudify.relationships.depends_on
- target: repo_pgaasdb
- dcaes_pgaasdb:
- type: dcae.nodes.pgaas.database
- properties:
- writerfqdn:
- get_input: dcaes_database_writerfqdn
- name:
- get_input: dcaes_database_name
- use_existing: true
- dti_pgaasdb:
- type: dcae.nodes.pgaas.database
- properties:
- writerfqdn:
- get_input: dti_database_writerfqdn
- name:
- get_input: dti_database_name
- use_existing: true
- repo_pgaasdb:
- type: dcae.nodes.pgaas.database
- properties:
- writerfqdn:
- get_input: repo_database_writerfqdn
- name:
- get_input: repo_database_name
- use_existing: true
- tca_policy_00:
- type: clamp.nodes.policy
- properties:
- policy_id:
- get_input: tca_policy_00_policy_id
- policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app
- tca_policy_11:
- type: clamp.nodes.policy
- properties:
- policy_id:
- get_input: tca_policy_11_policy_id
- policy_model_id: onap.policies.monitoring.cdap.tca.hi.lo.app \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/helloworld/compspec/hello-changed.json b/mod/bpgenerator/TestCases/helloworld/compspec/hello-changed.json
deleted file mode 100644
index 24d8491..0000000
--- a/mod/bpgenerator/TestCases/helloworld/compspec/hello-changed.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR",
- "name": "dcae.collectors.vcc.helloworld.pm",
- "version": "1.0.1"
- },
- "services": {
- "calls": [],
- "provides": []
- },
- "streams": {
- "publishes": [{
- "config_key": "DCAE-HELLO-WORLD-PUB-DR",
- "format": "dataformat_Hello_World_PM",
- "type": "data_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-PUB-MR",
- "format": "dataformat_Hello_World_PM",
- "type": "message_router",
- "version": "1.0.0"
- }
- ],
- "subscribes": [{
- "config_key": "DCAE-HELLO-WORLD-SUB-MR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE_HELLO_WORLD_SUB_MR",
- "type": "message_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-SUB-DR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE-HELLO-WORLD-SUB-DR",
- "type": "data_router",
- "version": "1.0.0"
- }
- ]
- },
- "parameters":
- [
- {
- "name": "vcc_hello_name",
- "value": "fsdfa",
- "description": "the name entered for specific person",
- "sourced_at_deployment": true,
- "designer_editable": true,
- "policy_editable": false,
- "type": "string"
- },
-
- {
- "name": "useDtiConfig",
- "value": false,
- "description": "component depends on configuration from dti.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true
- },
-
- {
- "name": "isSelfServeComponent",
- "value": false,
- "description": "Is this used as self serve component.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true,
- "type": "string"
- }
- ],
- "auxilary": {
- "healthcheck": {
- "interval": "60s",
- "timeout": "20s",
- "script": "/opt/app/vcc/bin/common/HealthCheck_HelloWorld.sh",
- "type": "docker"
- },
- "log_info": {
- "log_directory": "/opt/app/VESCollector/logs/ecomp"
- },
- "tls_info":{
- "cert_directory":"/opt/app/dh/etc/cert",
- "use_tls":true
- },
- "databases": {
- "dcaes": "PgaaS",
- "repo": "PgaaS",
- "dti": "pgaas"
- },
- "volumes": [
- {
- "container": {
- "bind": "/opt/app/dcae-certificate"
- },
- "host": {
- "path": "/opt/app/dcae-certificate"
- }
- },
- {
- "container": {
- "bind": "/opt/logs/DCAE/dmd/AGENT"
- },
- "host": {
- "path": "/opt/logs/DCAE/helloworldpm/dmd/AGENT"
- }
- },
- {
- "container": {
- "bind": "/opt/logs/DCAE/dmd/WATCHER"
- },
- "host": {
- "path": "/opt/logs/DCAE/helloworldpm/dmd/WATCHER"
- }
- },
- {
- "container": {
- "bind": "/opt/app/vcc/logs/DCAE"
- },
- "host": {
- "path": "/opt/logs/DCAE/helloworldpm/vcc-logs"
- }
- },
- {
- "container": {
- "bind": "/opt/app/vcc/archive/data"
- },
- "host": {
- "path": "/opt/data/DCAE/helloworldpm/vcc-archive"
- }
- }
- ]
- },
- "policy_info":{
- "policy":[
- {
- "node_label":"tca_policy_00",
- "policy_model_id":"onap.policies.monitoring.cdap.tca.hi.lo.app"
- },
- {
- "node_label":"tca_policy_11",
- "policy_id":"tca_policy_id_11",
- "policy_model_id":"onap.policies.monitoring.cdap.tca.hi.lo.app"
- }
- ]
- },
- "artifacts": [{
- "type": "docker image",
- "uri": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- }]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/imports/imports.yaml b/mod/bpgenerator/TestCases/imports/imports.yaml
deleted file mode 100644
index 4b52b8a..0000000
--- a/mod/bpgenerator/TestCases/imports/imports.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-imports: ['https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml', 'plugin:k8splugin?version=3.4.1',
- 'plugin:pgaas?version=1.3.0', 'plugin:clamppolicyplugin?version=1.1.0', 'plugin:dmaap?version=1.5.0']
diff --git a/mod/bpgenerator/TestCases/imports/importsWithBlanks.yaml b/mod/bpgenerator/TestCases/imports/importsWithBlanks.yaml
deleted file mode 100644
index 242c2a9..0000000
--- a/mod/bpgenerator/TestCases/imports/importsWithBlanks.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-imports: ['https://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml', 'plugin:k8splugin?version=3.4.1',
- '', ' ', ' ', 'plugin:pgaas?version=1.3.0', 'plugin:clamppolicyplugin?version=1.1.0',
- 'plugin:dmaap?version=1.5.0']
diff --git a/mod/bpgenerator/TestCases/j.json b/mod/bpgenerator/TestCases/j.json
deleted file mode 100644
index 848b102..0000000
--- a/mod/bpgenerator/TestCases/j.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR",
- "name": "dcae.test.ms",
- "version": "1.0.0"
- },
-
- "services": {
- "calls": [],
- "provides": []
- },
-
- "streams": {
- "publishes": [{
- "config_key": "DCAE-HELLO-WORLD-PUB-DR",
- "format": "dataformat_Hello_World_PM",
- "type": "data_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-PUB-MR",
- "format": "dataformat_Hello_World_PM",
- "type": "message_router",
- "version": "1.0.0"
- }
- ],
-
- "subscribes": [{
- "config_key": "DCAE-HELLO-WORLD-SUB-MR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE_HELLO_WORLD_SUB_MR",
- "type": "message_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-SUB-DR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE-HELLO-WORLD-SUB-DR",
- "type": "data_router",
- "version": "1.0.0"
- }
- ]
- },
-
- "parameters":
- [
- {
- "name": "vcc_hello_name",
- "value": "fsdfa",
- "description": "the name entered for specific person",
- "sourced_at_deployment": true,
- "designer_editable": true,
- "policy_editable": false,
- "type": "string"
- },
-
- {
- "name": "useDtiConfig",
- "value": false,
- "description": "component depends on configuration from dti.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true
- },
-
- {
- "name": "isSelfServeComponent",
- "value": false,
- "description": "Is this used as self serve component.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true,
- "type": "string"
- }
- ],
-
- "auxilary": {
- "healthcheck": {
- "interval": "60s",
- "timeout": "20s",
- "endpoint": "/",
- "type": "http"
- },
- "ports" : [
- "80:0"
- ]
- },
-
- "artifacts": [{
- "type": "docker image",
- "uri": "nginx"
- }]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/jack.json b/mod/bpgenerator/TestCases/jack.json
deleted file mode 100644
index 219b1b5..0000000
--- a/mod/bpgenerator/TestCases/jack.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "self": {
- "component_type": "docker",
- "description": "Hello World mS for subscribing the data from local DMaaP, DR or MR, processing them and publishing them as PM files to local DMaaP DR",
- "name": "dcae.test.ms",
- "version": "1.0.0"
- },
-
- "services": {
- "calls": [],
- "provides": []
- },
-
- "streams": {
- "publishes": [{
- "config_key": "DCAE-HELLO-WORLD-PUB-DR",
- "format": "dataformat_Hello_World_PM",
- "type": "data_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-PUB-MR",
- "format": "dataformat_Hello_World_PM",
- "type": "message_router",
- "version": "1.0.0"
- }
- ],
-
- "subscribes": [{
- "config_key": "DCAE-HELLO-WORLD-SUB-MR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE_HELLO_WORLD_SUB_MR",
- "type": "message_router",
- "version": "1.0.0"
- },
- {
- "config_key": "DCAE-HELLO-WORLD-SUB-DR",
- "format": "dataformat_Hello_World_PM",
- "route": "/DCAE-HELLO-WORLD-SUB-DR",
- "type": "data_router",
- "version": "1.0.0"
- }
- ]
- },
-
- "parameters":
- [
- {
- "name": "vcc_hello_name",
- "value": "fsdfa",
- "description": "the name entered for specific person",
- "sourced_at_deployment": true,
- "designer_editable": true,
- "policy_editable": false,
- "type": "string"
- },
-
- {
- "name": "useDtiConfig",
- "value": false,
- "description": "component depends on configuration from dti.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true
- },
-
- {
- "name": "isSelfServeComponent",
- "value": false,
- "description": "Is this used as self serve component.",
- "sourced_at_deployment": false,
- "designer_editable": false,
- "policy_editable": false,
- "required" : true,
- "type": "string"
- }
- ],
-
- "auxilary": {
- "healthcheck": {
- "interval": "60s",
- "timeout": "20s",
- "endpoint": "/",
- "type": "http"
- }
- },
-
- "artifacts": [{
- "type": "docker image",
- "uri": "nginx"
- }]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/policyInput.json b/mod/bpgenerator/TestCases/policyInput.json
deleted file mode 100644
index fb89e1a..0000000
--- a/mod/bpgenerator/TestCases/policyInput.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "policies": [
- {
- "configAttributes": "",
- "configName": "",
- "onapName": "DCAE",
- "policyName": "DCAE.Config_*",
- "unique": false
- },
- {
- "onapName": "DCAE",
- "policyName": "DCAE.Config_*",
- "unique": true
- },
- {
- "configAttributes": "",
- "configName": "",
- "onapName": "DCAE",
- "policyName": "DCAE.Config_*",
- "unique": false
- }
- ],
- "policy": [
- {
- "policy_id" : "id_0"
- }
- ]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/testComponentSpec.json b/mod/bpgenerator/TestCases/testComponentSpec.json
deleted file mode 100644
index d6b617b..0000000
--- a/mod/bpgenerator/TestCases/testComponentSpec.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "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
diff --git a/mod/bpgenerator/TestCases/testImport.yaml b/mod/bpgenerator/TestCases/testImport.yaml
deleted file mode 100644
index a299baf..0000000
--- a/mod/bpgenerator/TestCases/testImport.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-imports:
-- test import 1
-- test import 2
-- test import 3 \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/testImports.yaml b/mod/bpgenerator/TestCases/testImports.yaml
deleted file mode 100644
index 95bd200..0000000
--- a/mod/bpgenerator/TestCases/testImports.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-imports:
-- http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/ves.json b/mod/bpgenerator/TestCases/ves.json
deleted file mode 100644
index eb54723..0000000
--- a/mod/bpgenerator/TestCases/ves.json
+++ /dev/null
@@ -1,384 +0,0 @@
-{
- "self": {
- "version": "1.5.0",
- "name": "dcae-ves-collector",
- "description": "Collector for receiving VES events through restful interface",
- "component_type": "docker"
- },
- "streams": {
- "subscribes": [],
- "publishes": [
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-fault"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-measurement"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-syslog"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-heartbeat"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-other"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-mobileflow"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-statechange"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-thresholdCrossingAlert"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-voicequality"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-sipsignaling"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-fault-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-measurement-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-syslog-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-heartbeat-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-other-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-mobileflow-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-statechange-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-thresholdCrossingAlert-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-voicequality-secondary"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-sipsignaling-secondary"
- },
- {
- "format": "VES_specification",
- "version": "7.30.0",
- "type": "message router",
- "config_key": "ves-pnfRegistration"
- },
- {
- "format": "VES_specification",
- "version": "7.30.0",
- "type": "message router",
- "config_key": "ves-pnfRegistration-secondary"
- },
- {
- "format": "VES_specification",
- "version": "7.30.0",
- "type": "message router",
- "config_key": "ves-notification"
- },
- {
- "format": "VES_specification",
- "version": "7.30.0",
- "type": "message router",
- "config_key": "ves-notification-secondary"
- }
- ]
- },
- "services": {
- "calls": [],
- "provides": [
- {
- "route": "/eventListener/v1",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v2",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v3",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v4",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v5",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "5.28.4"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v7",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "7.30.0"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- }
- ]
- },
- "parameters": [
- {
- "name": "collector.service.port",
- "value": 8080,
- "description": "standard http port collector will open for listening;",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.service.secure.port",
- "value": 8443,
- "description": "secure http port collector will open for listening ",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": true
- },
- {
- "name": "collector.keystore.file.location",
- "value": "/opt/app/dcae-certificate/keystore.jks",
- "description": "fs location of keystore file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.keystore.passwordfile",
- "value": "/opt/app/dcae-certificate/.password",
- "description": "location of keystore password file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.truststore.file.location",
- "value": "/opt/app/dcae-certificate/truststore.jks",
- "description": "fs location of truststore file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.truststore.passwordfile",
- "value": "/opt/app/dcae-certificate/.trustpassword",
- "description": "location of truststore password file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.dmaap.streamid",
- "value": "fault=ves-fault,ves-fault-secondary|syslog=ves-syslog,ves-syslog-secondary|heartbeat=ves-heartbeat,ves-heartbeat-secondary|measurementsForVfScaling=ves-measurement,ves-measurement-secondary|mobileFlow=ves-mobileflow,ves-mobileflow-secondary|other=ves-other,ves-other-secondary|stateChange=ves-statechange,ves-statechange-secondary|thresholdCrossingAlert=ves-thresholdCrossingAlert,ves-thresholdCrossingAlert-secondary|voiceQuality=ves-voicequality,ves-voicequality-secondary|sipSignaling=ves-sipsignaling,ves-sipsignaling-secondary|notification=ves-notification,ves-notification-secondary|pnfRegistration=ves-pnfRegistration,ves-pnfRegistration-secondary",
- "description": "domain-to-streamid mapping used by VESCollector to distributes events based on domain. Both primary and secondary config_key are included for resilency (multiple streamid can be included commma separated). The streamids MUST match to topic config_keys. For single site without resiliency deployment - configkeys with -secondary suffix can be removed",
- "sourced_at_deployment": true,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "auth.method",
- "value": "noAuth",
- "description": "Property to manage application mode, possible configurations: noAuth - default option - no security (http) , certOnly - auth by certificate (https), basicAuth - auth by basic auth username and password (https),certBasicAuth - auth by certificate and basic auth username / password (https),",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "header.authlist",
- "value": "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy",
- "description": "List of id and base 64 encoded password.For each onboarding VNF - unique userid and password should be assigned and communicated to VNF owner. Password value should be base64 encoded in config here",
- "policy_editable": false,
- "sourced_at_deployment": true,
- "designer_editable": true
- },
- {
- "name": "collector.schema.checkflag",
- "value": 1,
- "description": "Schema check validation flag. When enabled, collector will validate input VES events against VES Schema defined on collector.schema.file ",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.schema.file",
- "value": "{\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./etc/CommonEventFormat_27.2.json\",\"v3\":\"./etc/CommonEventFormat_27.2.json\",\"v4\":\"./etc/CommonEventFormat_27.2.json\",\"v5\":\"./etc/CommonEventFormat_28.4.1.json\",\"v7\":\"./etc/CommonEventFormat_30.json\"}",
- "description": "VES schema file name per version used for validation",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false
- },
- {
- "name": "event.transform.flag",
- "value": 1,
- "description": "flag to enable tranformation rules defined under eventTransform.json; this is applicable when event tranformation rules preset should be activated for transforming <VES5.4 events to 5.4",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "tomcat.maxthreads",
- "value": "200",
- "description": "Tomcat control for concurrent request",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- }
- ],
- "auxilary": {
- "healthcheck": {
- "type": "https",
- "interval": "15s",
- "timeout": "1s",
- "endpoint": "/healthcheck"
- },
- "volumes": [
- {
- "container": {
- "bind": "/opt/app/dcae-certificate"
- },
- "host": {
- "path": "/opt/app/dcae-certificate"
- }
- },
- {
- "container": {
- "bind": "/opt/app/VESCollector/logs"
- },
- "host": {
- "path": "/opt/logs/DCAE/VESCollector/logs"
- }
- },
- {
- "container": {
- "bind": "/opt/app/VESCollector/etc"
- },
- "host": {
- "path": "/opt/logs/DCAE/VESCollector/etc"
- }
- }
- ],
- "ports": [
- "8080:8080",
- "8443:8443"
- ]
- },
- "artifacts": [
- {
- "type": "docker image",
- "uri": "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- }
- ]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithDmaap.yaml b/mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithDmaap.yaml
deleted file mode 100644
index 601690e..0000000
--- a/mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithDmaap.yaml
+++ /dev/null
@@ -1,319 +0,0 @@
-# ============LICENSE_START=======================================================
-# org.onap.dcae
-# ================================================================================
-# Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ============LICENSE_END=========================================================
-#
-#description: Collector for receiving VES events through restful interface
-#blueprint_version: 1.5.0
----
-tosca_definitions_version: cloudify_dsl_1_3
-description: Collector for receiving VES events through restful interface
-imports:
-- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
-inputs:
- collector.dmaap.streamid:
- type: string
- default: "fault=ves-fault,ves-fault-secondary|syslog=ves-syslog,ves-syslog-secondary|heartbeat=ves-heartbeat,ves-heartbeat-secondary|measurementsForVfScaling=ves-measurement,ves-measurement-secondary|mobileFlow=ves-mobileflow,ves-mobileflow-secondary|other=ves-other,ves-other-secondary|stateChange=ves-statechange,ves-statechange-secondary|thresholdCrossingAlert=ves-thresholdCrossingAlert,ves-thresholdCrossingAlert-secondary|voiceQuality=ves-voicequality,ves-voicequality-secondary|sipSignaling=ves-sipsignaling,ves-sipsignaling-secondary|notification=ves-notification,ves-notification-secondary|pnfRegistration=ves-pnfRegistration,ves-pnfRegistration-secondary"
- dcae-ves-collector_cpu_limit:
- type: string
- default: "250m"
- dcae-ves-collector_cpu_request:
- type: string
- default: "250m"
- dcae-ves-collector_memory_limit:
- type: string
- default: "128Mi"
- dcae-ves-collector_memory_request:
- type: string
- default: "128Mi"
- envs:
- default: {}
- external_port_0:
- type: string
- default: "8080"
- external_port_1:
- type: string
- default: "8443"
- header.authlist:
- type: string
- default: "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- service_component_name_override:
- type: string
- default: ""
- tag_version:
- type: string
- default: "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- ves-fault_topic_name:
- type: string
- ves-fault_ves-fault_topic_aaf_password:
- type: string
- ves-fault_ves-fault_topic_aaf_username:
- type: string
- ves-fault_ves-fault_topic_client_role:
- type: string
- ves-fault_ves-fault_topic_location:
- type: string
- ves-heartbeat-secondary_topic_name:
- type: string
- ves-heartbeat-secondary_ves-heartbeat-secondary_topic_aaf_password:
- type: string
- ves-heartbeat-secondary_ves-heartbeat-secondary_topic_aaf_username:
- type: string
- ves-heartbeat-secondary_ves-heartbeat-secondary_topic_client_role:
- type: string
- ves-heartbeat-secondary_ves-heartbeat-secondary_topic_location:
- type: string
- ves-measurement_topic_name:
- type: string
- ves-measurement_ves-measurement_topic_aaf_password:
- type: string
- ves-measurement_ves-measurement_topic_aaf_username:
- type: string
- ves-measurement_ves-measurement_topic_client_role:
- type: string
- ves-measurement_ves-measurement_topic_location:
- type: string
- ves-notification_topic_name:
- type: string
- ves-notification_ves-notification_topic_aaf_password:
- type: string
- ves-notification_ves-notification_topic_aaf_username:
- type: string
- ves-notification_ves-notification_topic_client_role:
- type: string
- ves-notification_ves-notification_topic_location:
- type: string
- ves-other_topic_name:
- type: string
- ves-other_ves-other_topic_aaf_password:
- type: string
- ves-other_ves-other_topic_aaf_username:
- type: string
- ves-other_ves-other_topic_client_role:
- type: string
- ves-other_ves-other_topic_location:
- type: string
- ves-pnfRegistration_topic_name:
- type: string
- ves-pnfRegistration_ves-pnfRegistration_topic_aaf_password:
- type: string
- ves-pnfRegistration_ves-pnfRegistration_topic_aaf_username:
- type: string
- ves-pnfRegistration_ves-pnfRegistration_topic_client_role:
- type: string
- ves-pnfRegistration_ves-pnfRegistration_topic_location:
- type: string
-node_templates:
- dcae-ves-collector:
- type: dcae.nodes.ContainerizedServiceComponentUsingDmaap
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports:
- - concat: ["8080:", {get_input: external_port_0}]
- - concat: ["8443:", {get_input: external_port_1}]
- envs:
- get_input: envs
- properties:
- application_config:
- service_calls: []
- streams_publishes:
- ves-fault:
- dmaap_info: <<ves-fault_topic>>
- type: message router
- pass:
- get_input: ves-fault_ves-fault_topic_aaf_password
- user:
- get_input: ves-fault_ves-fault_topic_aaf_username
- ves-heartbeat-secondary:
- dmaap_info: <<ves-heartbeat-secondary_topic>>
- type: message router
- pass:
- get_input: ves-heartbeat-secondary_ves-heartbeat-secondary_topic_aaf_password
- user:
- get_input: ves-heartbeat-secondary_ves-heartbeat-secondary_topic_aaf_username
- ves-measurement:
- dmaap_info: <<ves-measurement_topic>>
- type: message router
- pass:
- get_input: ves-measurement_ves-measurement_topic_aaf_password
- user:
- get_input: ves-measurement_ves-measurement_topic_aaf_username
- ves-notification:
- dmaap_info: <<ves-notification_topic>>
- type: message router
- pass:
- get_input: ves-notification_ves-notification_topic_aaf_password
- user:
- get_input: ves-notification_ves-notification_topic_aaf_username
- ves-other:
- dmaap_info: <<ves-other_topic>>
- type: message router
- pass:
- get_input: ves-other_ves-other_topic_aaf_password
- user:
- get_input: ves-other_ves-other_topic_aaf_username
- ves-pnfRegistration:
- dmaap_info: <<ves-pnfRegistration_topic>>
- type: message router
- pass:
- get_input: ves-pnfRegistration_ves-pnfRegistration_topic_aaf_password
- user:
- get_input: ves-pnfRegistration_ves-pnfRegistration_topic_aaf_username
- streams_subscribes: {}
- auth.method: noAuth
- collector.dmaap.streamid:
- get_input: collector.dmaap.streamid
- collector.keystore.file.location: /opt/app/dcae-certificate/keystore.jks
- collector.keystore.passwordfile: /opt/app/dcae-certificate/.password
- collector.schema.checkflag: 1
- collector.schema.file: {"v1":"./etc/CommonEventFormat_27.2.json","v2":"./etc/CommonEventFormat_27.2.json","v3":"./etc/CommonEventFormat_27.2.json","v4":"./etc/CommonEventFormat_27.2.json","v5":"./etc/CommonEventFormat_28.4.1.json","v7":"./etc/CommonEventFormat_30.json"}
- collector.service.port: 8080
- collector.service.secure.port: 8443
- collector.truststore.file.location: /opt/app/dcae-certificate/truststore.jks
- collector.truststore.passwordfile: /opt/app/dcae-certificate/.trustpassword
- event.transform.flag: 1
- header.authlist:
- get_input: header.authlist
- service_component_name_override:
- get_input: service_component_name_override
- tomcat.maxthreads: 200
- docker_config:
- healthcheck:
- interval: 15s
- timeout: 1s
- type: http
- endpoint: /healthcheck
- volumes:
- - container:
- bind: /opt/app/dcae-certificate
- host:
- path: /opt/app/dcae-certificate
- - container:
- bind: /opt/app/VESCollector/logs
- host:
- path: /opt/logs/DCAE/VESCollector/logs
- - container:
- bind: /opt/app/VESCollector/etc
- host:
- path: /opt/logs/DCAE/VESCollector/etc
- image:
- get_input: tag_version
- location_id:
- get_input: location_id
- service_component_type: dcae-ves-collector
- replicas:
- get_input: replicas
- streams_publishes:
- - name: ves-fault_topic
- location:
- get_input: ves-fault_ves-fault_topic_location
- client_role:
- get_input: ves-fault_ves-fault_topic_client_role
- type: message router
- - name: ves-measurement_topic
- location:
- get_input: ves-measurement_ves-measurement_topic_location
- client_role:
- get_input: ves-measurement_ves-measurement_topic_client_role
- type: message router
- - name: ves-other_topic
- location:
- get_input: ves-other_ves-other_topic_location
- client_role:
- get_input: ves-other_ves-other_topic_client_role
- type: message router
- - name: ves-heartbeat-secondary_topic
- location:
- get_input: ves-heartbeat-secondary_ves-heartbeat-secondary_topic_location
- client_role:
- get_input: ves-heartbeat-secondary_ves-heartbeat-secondary_topic_client_role
- type: message router
- - name: ves-pnfRegistration_topic
- location:
- get_input: ves-pnfRegistration_ves-pnfRegistration_topic_location
- client_role:
- get_input: ves-pnfRegistration_ves-pnfRegistration_topic_client_role
- type: message router
- - name: ves-notification_topic
- location:
- get_input: ves-notification_ves-notification_topic_location
- client_role:
- get_input: ves-notification_ves-notification_topic_client_role
- type: message router
- resource_config:
- limits:
- cpu:
- get_input: dcae-ves-collector_cpu_limit
- memory:
- get_input: dcae-ves-collector_memory_limit
- requests:
- cpu:
- get_input: dcae-ves-collector_cpu_request
- memory:
- get_input: dcae-ves-collector_memory_request
- relationships:
- - type: ccsdk.relationships.publish_events
- target: ves-fault_topic
- - type: ccsdk.relationships.publish_events
- target: ves-measurement_topic
- - type: ccsdk.relationships.publish_events
- target: ves-other_topic
- - type: ccsdk.relationships.publish_events
- target: ves-heartbeat-secondary_topic
- - type: ccsdk.relationships.publish_events
- target: ves-pnfRegistration_topic
- - type: ccsdk.relationships.publish_events
- target: ves-notification_topic
- ves-fault_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: ves-fault_topic_name
- ves-heartbeat-secondary_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: ves-heartbeat-secondary_topic_name
- ves-measurement_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: ves-measurement_topic_name
- ves-notification_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: ves-notification_topic_name
- ves-other_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: ves-other_topic_name
- ves-pnfRegistration_topic:
- type: ccsdk.nodes.Topic
- properties:
- topic_name:
- get_input: ves-pnfRegistration_topic_name \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithoutDmaap.yaml b/mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithoutDmaap.yaml
deleted file mode 100644
index 9786fff..0000000
--- a/mod/bpgenerator/TestCases/ves/blueprints/vesK8sWithoutDmaap.yaml
+++ /dev/null
@@ -1,185 +0,0 @@
-# ============LICENSE_START=======================================================
-# org.onap.dcae
-# ================================================================================
-# Copyright (c) 2019-2020 AT&T Intellectual Property. All rights reserved.
-# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ============LICENSE_END=========================================================
-#
-#description: Collector for receiving VES events through restful interface
-#blueprint_version: 1.5.0
----
-tosca_definitions_version: cloudify_dsl_1_3
-imports:
-- http://www.getcloudify.org/spec/cloudify/4.5.5/types.yaml
-- https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R6/k8splugin/1.7.2/k8splugin_types.yaml
-inputs:
- always_pull_image:
- type: boolean
- description: Set to true if the image should always be pulled
- default: true
- collector.dmaap.streamid:
- type: string
- default: "fault=ves-fault,ves-fault-secondary|syslog=ves-syslog,ves-syslog-secondary|heartbeat=ves-heartbeat,ves-heartbeat-secondary|measurementsForVfScaling=ves-measurement,ves-measurement-secondary|mobileFlow=ves-mobileflow,ves-mobileflow-secondary|other=ves-other,ves-other-secondary|stateChange=ves-statechange,ves-statechange-secondary|thresholdCrossingAlert=ves-thresholdCrossingAlert,ves-thresholdCrossingAlert-secondary|voiceQuality=ves-voicequality,ves-voicequality-secondary|sipSignaling=ves-sipsignaling,ves-sipsignaling-secondary|notification=ves-notification,ves-notification-secondary|pnfRegistration=ves-pnfRegistration,ves-pnfRegistration-secondary"
- dcae-ves-collector_cpu_limit:
- type: string
- default: "250m"
- dcae-ves-collector_cpu_request:
- type: string
- default: "250m"
- dcae-ves-collector_memory_limit:
- type: string
- default: "128Mi"
- dcae-ves-collector_memory_request:
- type: string
- default: "128Mi"
- envs:
- default: {}
- external_port_0:
- type: string
- default: "8080"
- external_port_1:
- type: string
- default: "8443"
- header.authlist:
- type: string
- default: "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy"
- image:
- type: string
- default: "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- location_id:
- type: string
- default: ""
- replicas:
- type: integer
- description: number of instances
- default: 1
- service_component_name_override:
- type: string
- default: ""
- ves_fault_publish_url:
- type: string
- ves_heartbeat_secondary_publish_url:
- type: string
- ves_measurement_publish_url:
- type: string
- ves_notification_publish_url:
- type: string
- ves_other_publish_url:
- type: string
- ves_pnfRegistration_publish_url:
- type: string
-node_templates:
- dcae-ves-collector:
- type: dcae.nodes.ContainerizedServiceComponent
- interfaces:
- cloudify.interfaces.lifecycle:
- start:
- inputs:
- ports:
- - concat: ["8080:", {get_input: external_port_0}]
- - concat: ["8443:", {get_input: external_port_1}]
- envs:
- get_input: envs
- properties:
- application_config:
- service_calls: []
- streams_publishes:
- ves-fault:
- dmaap_info:
- topic_url:
- get_input: ves_fault_publish_url
- type: message router
- ves-heartbeat-secondary:
- dmaap_info:
- topic_url:
- get_input: ves_heartbeat_secondary_publish_url
- type: message router
- ves-measurement:
- dmaap_info:
- topic_url:
- get_input: ves_measurement_publish_url
- type: message router
- ves-notification:
- dmaap_info:
- topic_url:
- get_input: ves_notification_publish_url
- type: message router
- ves-other:
- dmaap_info:
- topic_url:
- get_input: ves_other_publish_url
- type: message router
- ves-pnfRegistration:
- dmaap_info:
- topic_url:
- get_input: ves_pnfRegistration_publish_url
- type: message router
- streams_subscribes: {}
- auth.method: noAuth
- collector.dmaap.streamid:
- get_input: collector.dmaap.streamid
- collector.keystore.file.location: /opt/app/dcae-certificate/keystore.jks
- collector.keystore.passwordfile: /opt/app/dcae-certificate/.password
- collector.schema.checkflag: 1
- collector.schema.file: {"v1":"./etc/CommonEventFormat_27.2.json","v2":"./etc/CommonEventFormat_27.2.json","v3":"./etc/CommonEventFormat_27.2.json","v4":"./etc/CommonEventFormat_27.2.json","v5":"./etc/CommonEventFormat_28.4.1.json","v7":"./etc/CommonEventFormat_30.json"}
- collector.service.port: 8080
- collector.service.secure.port: 8443
- collector.truststore.file.location: /opt/app/dcae-certificate/truststore.jks
- collector.truststore.passwordfile: /opt/app/dcae-certificate/.trustpassword
- event.transform.flag: 1
- header.authlist:
- get_input: header.authlist
- service_component_name_override:
- get_input: service_component_name_override
- tomcat.maxthreads: 200
- docker_config:
- healthcheck:
- interval: 15s
- timeout: 1s
- type: http
- endpoint: /healthcheck
- volumes:
- - container:
- bind: /opt/app/dcae-certificate
- host:
- path: /opt/app/dcae-certificate
- - container:
- bind: /opt/app/VESCollector/logs
- host:
- path: /opt/logs/DCAE/VESCollector/logs
- - container:
- bind: /opt/app/VESCollector/etc
- host:
- path: /opt/logs/DCAE/VESCollector/etc
- image:
- get_input: image
- location_id:
- get_input: location_id
- service_component_type: dcae-ves-collector
- replicas:
- get_input: replicas
- resource_config:
- limits:
- cpu:
- get_input: dcae-ves-collector_cpu_limit
- memory:
- get_input: dcae-ves-collector_memory_limit
- requests:
- cpu:
- get_input: dcae-ves-collector_cpu_request
- memory:
- get_input: dcae-ves-collector_memory_request
- always_pull_image:
- get_input: always_pull_image
- relationships: [] \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/ves/componentSpecs/ves.json b/mod/bpgenerator/TestCases/ves/componentSpecs/ves.json
deleted file mode 100644
index 6812347..0000000
--- a/mod/bpgenerator/TestCases/ves/componentSpecs/ves.json
+++ /dev/null
@@ -1,276 +0,0 @@
-{
- "self": {
- "version": "1.5.0",
- "name": "dcae-ves-collector",
- "description": "Collector for receiving VES events through restful interface",
- "component_type": "docker"
- },
- "streams": {
- "subscribes": [],
- "publishes": [
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-fault"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-measurement"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-other"
- },
- {
- "format": "VES_specification",
- "version": "5.28.4",
- "type": "message router",
- "config_key": "ves-heartbeat-secondary"
- },
- {
- "format": "VES_specification",
- "version": "7.30.0",
- "type": "message router",
- "config_key": "ves-pnfRegistration"
- },
- {
- "format": "VES_specification",
- "version": "7.30.0",
- "type": "message router",
- "config_key": "ves-notification"
- }
- ]
- },
- "services": {
- "calls": [],
- "provides": [
- {
- "route": "/eventListener/v1",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v2",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v3",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v4",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "4.27.2"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v5",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "5.28.4"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- },
- {
- "route": "/eventListener/v7",
- "verb": "POST",
- "request": {
- "format": "VES_specification",
- "version": "7.30.0"
- },
- "response": {
- "format": "ves.coll.response",
- "version": "1.0.0"
- }
- }
- ]
- },
- "parameters": [
- {
- "name": "collector.service.port",
- "value": 8080,
- "description": "standard http port collector will open for listening;",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.service.secure.port",
- "value": 8443,
- "description": "secure http port collector will open for listening ",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": true
- },
- {
- "name": "collector.keystore.file.location",
- "value": "/opt/app/dcae-certificate/keystore.jks",
- "description": "fs location of keystore file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.keystore.passwordfile",
- "value": "/opt/app/dcae-certificate/.password",
- "description": "location of keystore password file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.truststore.file.location",
- "value": "/opt/app/dcae-certificate/truststore.jks",
- "description": "fs location of truststore file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.truststore.passwordfile",
- "value": "/opt/app/dcae-certificate/.trustpassword",
- "description": "location of truststore password file in vm",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.dmaap.streamid",
- "value": "fault=ves-fault,ves-fault-secondary|syslog=ves-syslog,ves-syslog-secondary|heartbeat=ves-heartbeat,ves-heartbeat-secondary|measurementsForVfScaling=ves-measurement,ves-measurement-secondary|mobileFlow=ves-mobileflow,ves-mobileflow-secondary|other=ves-other,ves-other-secondary|stateChange=ves-statechange,ves-statechange-secondary|thresholdCrossingAlert=ves-thresholdCrossingAlert,ves-thresholdCrossingAlert-secondary|voiceQuality=ves-voicequality,ves-voicequality-secondary|sipSignaling=ves-sipsignaling,ves-sipsignaling-secondary|notification=ves-notification,ves-notification-secondary|pnfRegistration=ves-pnfRegistration,ves-pnfRegistration-secondary",
- "description": "domain-to-streamid mapping used by VESCollector to distributes events based on domain. Both primary and secondary config_key are included for resilency (multiple streamid can be included commma separated). The streamids MUST match to topic config_keys. For single site without resiliency deployment - configkeys with -secondary suffix can be removed",
- "sourced_at_deployment": true,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "auth.method",
- "value": "noAuth",
- "description": "Property to manage application mode, possible configurations: noAuth - default option - no security (http) , certOnly - auth by certificate (https), basicAuth - auth by basic auth username and password (https),certBasicAuth - auth by certificate and basic auth username / password (https),",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "header.authlist",
- "value": "sample1,$2a$10$pgjaxDzSuc6XVFEeqvxQ5u90DKJnM/u7TJTcinAlFJVaavXMWf/Zi|userid1,$2a$10$61gNubgJJl9lh3nvQvY9X.x4e5ETWJJ7ao7ZhJEvmfJigov26Z6uq|userid2,$2a$10$G52y/3uhuhWAMy.bx9Se8uzWinmbJa.dlm1LW6bYPdPkkywLDPLiy",
- "description": "List of id and base 64 encoded password.For each onboarding VNF - unique userid and password should be assigned and communicated to VNF owner. Password value should be base64 encoded in config here",
- "policy_editable": false,
- "sourced_at_deployment": true,
- "designer_editable": true
- },
- {
- "name": "collector.schema.checkflag",
- "value": 1,
- "description": "Schema check validation flag. When enabled, collector will validate input VES events against VES Schema defined on collector.schema.file ",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "collector.schema.file",
- "value": "{\"v1\":\"./etc/CommonEventFormat_27.2.json\",\"v2\":\"./etc/CommonEventFormat_27.2.json\",\"v3\":\"./etc/CommonEventFormat_27.2.json\",\"v4\":\"./etc/CommonEventFormat_27.2.json\",\"v5\":\"./etc/CommonEventFormat_28.4.1.json\",\"v7\":\"./etc/CommonEventFormat_30.json\"}",
- "description": "VES schema file name per version used for validation",
- "designer_editable": true,
- "sourced_at_deployment": false,
- "policy_editable": false
- },
- {
- "name": "event.transform.flag",
- "value": 1,
- "description": "flag to enable tranformation rules defined under eventTransform.json; this is applicable when event tranformation rules preset should be activated for transforming <VES5.4 events to 5.4",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- },
- {
- "name": "tomcat.maxthreads",
- "value": "200",
- "description": "Tomcat control for concurrent request",
- "sourced_at_deployment": false,
- "policy_editable": false,
- "designer_editable": false
- }
- ],
- "auxilary": {
- "healthcheck": {
- "type": "http",
- "interval": "15s",
- "timeout": "1s",
- "endpoint": "/healthcheck"
- },
- "volumes": [
- {
- "container": {
- "bind": "/opt/app/dcae-certificate"
- },
- "host": {
- "path": "/opt/app/dcae-certificate"
- }
- },
- {
- "container": {
- "bind": "/opt/app/VESCollector/logs"
- },
- "host": {
- "path": "/opt/logs/DCAE/VESCollector/logs"
- }
- },
- {
- "container": {
- "bind": "/opt/app/VESCollector/etc"
- },
- "host": {
- "path": "/opt/logs/DCAE/VESCollector/etc"
- }
- }
- ],
- "ports": [
- "8080:8080",
- "8443:8443"
- ]
- },
- "artifacts": [
- {
- "type": "docker image",
- "uri": "nexus.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest"
- }
- ]
-} \ No newline at end of file
diff --git a/mod/bpgenerator/TestCases/ves/inputFiles/ves_nodmaap.json b/mod/bpgenerator/TestCases/ves/inputFiles/ves_nodmaap.json
deleted file mode 100644
index 720ce5f..0000000
--- a/mod/bpgenerator/TestCases/ves/inputFiles/ves_nodmaap.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "ves_other_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_OTHER_OUTPUT",
- "ves_heartbeat_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_HEARTBEAT_OUTPUT",
- "ves_fault_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.SEC_FAULT_OUTPUT",
- "ves_measurement_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT",
- "ves_notification_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_NOTIFICATION_OUTPUT",
- "ves_pnfRegistration_publish_url":"http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT",
- "external_port_0":"30235",
- "external_port_1": "30417",
- "image": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:1.3.1"
-} \ No newline at end of file