diff options
Diffstat (limited to 'runtime-acm/src/test/resources/providers')
-rw-r--r-- | runtime-acm/src/test/resources/providers/AcDefinitionEncryptTest.yaml | 27 | ||||
-rw-r--r-- | runtime-acm/src/test/resources/providers/AcInstantiateEncryptTest.json | 15 |
2 files changed, 33 insertions, 9 deletions
diff --git a/runtime-acm/src/test/resources/providers/AcDefinitionEncryptTest.yaml b/runtime-acm/src/test/resources/providers/AcDefinitionEncryptTest.yaml index 0e9372876..416af183f 100644 --- a/runtime-acm/src/test/resources/providers/AcDefinitionEncryptTest.yaml +++ b/runtime-acm/src/test/resources/providers/AcDefinitionEncryptTest.yaml @@ -27,6 +27,25 @@ data_types: version: type: string required: true + org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity: + version: 1.0.0 + derived_from: tosca.datatypes.Root + properties: + configurationEntityId: + type: onap.datatypes.ToscaConceptIdentifier + required: true + description: The name and version of a Configuration Entity to be handled + by the HTTP Automation Composition Element + restSequence: + type: list + entry_schema: + type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.RestRequest + type_version: 1.0.0 + description: A sequence of REST commands to send to the REST endpoint + k8s-secret: + type: String + metadata: + sensitive: true node_types: org.onap.policy.clamp.acm.Participant: @@ -90,7 +109,7 @@ node_types: type: String metadata: sensitive: true - credential: + secret: type: String metadata: sensitive: true @@ -106,11 +125,9 @@ node_types: description: HTTP headers to send on REST requests configurationEntities: type: map - required: true entry_schema: - type: map - metadata: - sensitive: true + type: org.onap.datatypes.policy.clamp.acm.httpAutomationCompositionElement.ConfigurationEntity + required: true description: The configuration entities the Automation Composition Element is managing and their associated REST requests diff --git a/runtime-acm/src/test/resources/providers/AcInstantiateEncryptTest.json b/runtime-acm/src/test/resources/providers/AcInstantiateEncryptTest.json index acf2a9b16..896a8b6c9 100644 --- a/runtime-acm/src/test/resources/providers/AcInstantiateEncryptTest.json +++ b/runtime-acm/src/test/resources/providers/AcInstantiateEncryptTest.json @@ -12,7 +12,7 @@ }, "description": "Starter Automation Composition Element for the Demo", "properties": { - "credential": "mycred1", + "secret": "mysecret1", "password": "mypass1", "baseUrl": "http://address:30800", "httpHeaders": { @@ -37,9 +37,15 @@ "expectedResponse": 201 } ], + "k8s-secret": "valueToEncrypt", "myParameterToUpdate": "text1" } - ] + ], + "customProperty": { + "name": "test", + "k8s-secret": "customValueToEncrypt" + } + } }, "709c62b3-8918-41b9-a747-d21eb79c6c35": { @@ -52,7 +58,7 @@ "properties": { "baseUrl": "http://address:30801", "password": "mypass2", - "credential": "mycred2", + "secret": "secret2", "httpHeaders": { "Content-Type": "application/json", "Authorization": "Basic YWNtVXNlcjp6YiFYenRHMzQ=" @@ -75,7 +81,8 @@ "expectedResponse": 201 } ], - "myParameterToUpdate": "text2" + "myParameterToUpdate": "text2", + "k8s-secret": "valueToEncrypt2" } ] } |