Skip to content

Commit

Permalink
Fix TOSCA Configure interface
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Oct 21, 2021
1 parent ae699ef commit 2131e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 1 addition & 10 deletions test/files/tosca_long.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,9 @@ topology_template:
- local_storage:
node: my_onedata_storage
relationship:
type: AttachesTo
type: tosca.relationships.indigo.OneDataStorage.AttachesTo
properties:
location: /mnt/disk
interfaces:
Configure:
pre_configure_source:
implementation:
file: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/artifacts/onedata/oneclient_install.yml
type: tosca.artifacts.Implementation.YAML
inputs:
onedata_token: { get_property: [ TARGET, credential, token ] }
onedata_location: { get_property: [ SELF, location ] }

my_onedata_storage:
type: tosca.nodes.indigo.OneDataStorage
Expand Down
2 changes: 2 additions & 0 deletions test/unit/Tosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def test_tosca_to_radl(self):
"{{ groups['lrms_wn']|map('extract', hostvars,'IM_NODE_PRIVATE_IP')|list"
" if 'lrms_wn' in groups else []}}")
self.assertEqual([d.id for d in radl.deploys][2], 'lrms_wn')
att_conf = radl.get_configure_by_name('lrms_server_tosca.relationships.indigo.onedatastorage.attachesto_conf')
conf = yaml.safe_load(att_conf.recipes)[0]

def test_tosca_get_outputs(self):
"""Test TOSCA get_outputs function"""
Expand Down

0 comments on commit 2131e75

Please sign in to comment.