diff options
author | Katarzyna Wasiel <katarzyna.wasiel@nokia.com> | 2021-02-10 08:50:57 +0100 |
---|---|---|
committer | Marcin Przybysz <marcin.przybysz@nokia.com> | 2021-02-26 10:17:59 +0000 |
commit | d1bc6cbd63f9cd7126baded2a40e78ebb67f65e1 (patch) | |
tree | abcbbd961f411cef1d1cf590a863b812d7e5cce2 /robot/assets/templates/dcaemod | |
parent | c6232933e3c44de7dba7f24cd66ee944816b2941 (diff) |
Add DCAE MOD smoke/verification test using simple app
Issue-ID: INT-1855
Signed-off-by: Katarzyna Wasiel <katarzyna.wasiel@nokia.com>
Change-Id: Idbd385547cd5d0ef9ce7b53060d84ea8d9031e06
Diffstat (limited to 'robot/assets/templates/dcaemod')
-rw-r--r-- | robot/assets/templates/dcaemod/compspec_with_config_volume.jinja | 50 | ||||
-rw-r--r-- | robot/assets/templates/dcaemod/compspec_without_config_volume.jinja | 42 |
2 files changed, 92 insertions, 0 deletions
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 |