summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/TestCases/TlsInfo
diff options
context:
space:
mode:
Diffstat (limited to 'mod/bpgenerator/TestCases/TlsInfo')
-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
8 files changed, 0 insertions, 632 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"
- }]
-
-}