From d1bc6cbd63f9cd7126baded2a40e78ebb67f65e1 Mon Sep 17 00:00:00 2001 From: Katarzyna Wasiel Date: Wed, 10 Feb 2021 08:50:57 +0100 Subject: Add DCAE MOD smoke/verification test using simple app Issue-ID: INT-1855 Signed-off-by: Katarzyna Wasiel Change-Id: Idbd385547cd5d0ef9ce7b53060d84ea8d9031e06 --- .../dcaemod/compspec_with_config_volume.jinja | 50 ++++++++++++++++++++++ .../dcaemod/compspec_without_config_volume.jinja | 42 ++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 robot/assets/templates/dcaemod/compspec_with_config_volume.jinja create mode 100644 robot/assets/templates/dcaemod/compspec_without_config_volume.jinja (limited to 'robot/assets/templates') diff --git a/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja b/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja new file mode 100644 index 00000000..80feec55 --- /dev/null +++ b/robot/assets/templates/dcaemod/compspec_with_config_volume.jinja @@ -0,0 +1,50 @@ +{"owner": "owner-name", "spec": +{ + "self": { + "version": "1.0.0", + "name": "{{comp_spec_name}}", + "description": "Dummy DCAE app with config volume", + "component_type": "docker" + }, + "streams": { + "subscribes": [], + "publishes": [] + }, + "services": { + "calls": [], + "provides": [] + }, + "parameters": [], + "auxilary": { + "healthcheck": { + "type": "docker", + "interval": "45s", + "timeout": "15s", + "script": "service nginx status" + }, + "volumes": [{ + "config_volume": { + "name": "{{config_map_name}}" + }, + "container": { + "bind": "{{volume_mount_path}}" + } + }], + "ports": [ + "80:0", + "99:0" + ], + "tls_info":{ + "cert_directory":"/opt/app/dcae-certificate/", + "use_tls": false, + "use_external_tls": false + } + }, + "artifacts": [ + { + "type": "docker image", + "uri": "docker.io/nginx:latest" + } + ] +} +} \ No newline at end of file diff --git a/robot/assets/templates/dcaemod/compspec_without_config_volume.jinja b/robot/assets/templates/dcaemod/compspec_without_config_volume.jinja new file mode 100644 index 00000000..45ac97fb --- /dev/null +++ b/robot/assets/templates/dcaemod/compspec_without_config_volume.jinja @@ -0,0 +1,42 @@ +{"owner": "owner-name", "spec": +{ + "self": { + "version": "1.0.0", + "name": "{{comp_spec_name}}", + "description": "Dummy DCAE app", + "component_type": "docker" + }, + "streams": { + "subscribes": [], + "publishes": [] + }, + "services": { + "calls": [], + "provides": [] + }, + "parameters": [], + "auxilary": { + "healthcheck": { + "type": "docker", + "interval": "300s", + "timeout": "120s", + "script": "service nginx status" + }, + "ports": [ + "80:0", + "99:0" + ], + "tls_info":{ + "cert_directory":"/opt/app/dcae-certificate/", + "use_tls": false, + "use_external_tls": false + } + }, + "artifacts": [ + { + "type": "docker image", + "uri": "docker.io/nginx:latest" + } + ] +} +} \ No newline at end of file -- cgit 1.2.3-korg