Interface operation feature enhancements
1. API restructuring to enhance model and provide more capabilities.
2. Allowed multiple interface creation under same resource/service.
3. Enhanced validations to align with updated model.
4. API restructuring to align UI model with Tosca model.
5. Enhanced Junit and code coverage.
6. Added BDD and CI-API tests.
Change-Id: I2d8ac8a6154fd9be8254836ba0da1540210031c0
Issue-ID: SDC-1999
Signed-off-by: priyanshu <pagarwal@amdocs.com>
diff --git a/cucumber-js-test-apis-ci/resources/json/interfaceOperation/createInterfaceOperations.json b/cucumber-js-test-apis-ci/resources/json/interfaceOperation/createInterfaceOperations.json
new file mode 100644
index 0000000..ee38f17
--- /dev/null
+++ b/cucumber-js-test-apis-ci/resources/json/interfaceOperation/createInterfaceOperations.json
@@ -0,0 +1,31 @@
+{
+ "interfaces": {
+ "interface1": {
+ "type": "interface1",
+ "operations": {
+ "delete": {
+ "name": "delete",
+ "description": "description",
+ "inputs": {
+ "listToscaDataDefinition": [{
+ "name": "inp1",
+ "type": "string",
+ "inputId": "c4c6e35f-37d1-4fd5-943c-51257386a86c.nf_naming.instance_name",
+ "required": true
+ }]
+ },
+ "outputs": {
+ "listToscaDataDefinition": [{
+ "type": "string",
+ "required": true,
+ "name": "op1"
+ }]
+ },
+ "workflowAssociationType": "NONE",
+ "workflowId": null,
+ "workflowVersionId": null
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/cucumber-js-test-apis-ci/resources/json/interfaceOperation/updateInterfaceOperation.json b/cucumber-js-test-apis-ci/resources/json/interfaceOperation/updateInterfaceOperation.json
new file mode 100644
index 0000000..8821e7f
--- /dev/null
+++ b/cucumber-js-test-apis-ci/resources/json/interfaceOperation/updateInterfaceOperation.json
@@ -0,0 +1,34 @@
+{
+ "interfaces": {
+ "interface1": {
+ "type": "interface1",
+ "operations": {
+ "delete" : {
+ "name": "sshGV",
+ "description": "sshGV updated description" ,
+ "inputs": {
+ "listToscaDataDefinition": [
+ {
+ "name": "inputId_up",
+ "type": "string",
+ "inputId": "c4c6e35f-37d1-4fd5-943c-51257386a86c.nf_naming.instance_name",
+ "required": true
+ }
+ ]
+ },
+ "outputs": {
+ "listToscaDataDefinition": [{
+ "name": "outUp_up",
+ "type": "string",
+ "required": true
+ }]
+ },
+ "uniqueId": "3f6b7144-2dec-48e2-80cb-c67e8bc1d7d2",
+ "workflowAssociationType": "NONE",
+ "workflowId": null,
+ "workflowVersionId": null
+ }
+ }
+ }
+ }
+}
\ No newline at end of file