From 848e92cfd43797c891399319752c9fd07b036f19 Mon Sep 17 00:00:00 2001 From: Tomasz Pietruszkiewicz Date: Wed, 27 Jan 2021 08:12:10 +0100 Subject: Add support for config_volume in blueprint generator Change-Id: I8160df49d20722d393eacd27049aabbb637ae6f1 Issue-ID: DCAEGEN2-2546 Signed-off-by: Tomasz Pietruszkiewicz --- .../runtime-core/src/test/data/blueprints/helloworld_no_edits.yaml | 4 ++++ .../src/test/data/compspecs/componentSpec_hello_world.json | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'mod/runtimeapi') diff --git a/mod/runtimeapi/runtime-core/src/test/data/blueprints/helloworld_no_edits.yaml b/mod/runtimeapi/runtime-core/src/test/data/blueprints/helloworld_no_edits.yaml index 2bf4bea..6198f36 100644 --- a/mod/runtimeapi/runtime-core/src/test/data/blueprints/helloworld_no_edits.yaml +++ b/mod/runtimeapi/runtime-core/src/test/data/blueprints/helloworld_no_edits.yaml @@ -181,6 +181,10 @@ node_templates: bind: /opt/app/vcc/archive/data host: path: /opt/data/DCAE/helloworldpm/vcc-archive + - container: + bind: /opt/app/etc/config + config_volume: + name: myConfig image: get_input: image location_id: diff --git a/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json b/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json index cd394f8..62470ef 100644 --- a/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json +++ b/mod/runtimeapi/runtime-web/src/test/data/compspecs/componentSpec_hello_world.json @@ -126,7 +126,11 @@ "host": { "path": "/opt/data/DCAE/helloworldpm/vcc-archive" } - } + }, + { + "container": { "bind": "/opt/app/etc/config" }, + "config_volume": { "name":"myConfig" } + } ] }, -- cgit 1.2.3-korg