aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-bdd
diff options
context:
space:
mode:
authorshrikantawachar <shrikant.awachar@amdocs.com>2018-12-17 12:26:43 +0530
committershrikantawachar <shrikant.awachar@amdocs.com>2018-12-19 15:08:44 +0530
commitb6e7850484ba61df259e38fd6b59e94c2a7de5b6 (patch)
treeb235bafe42063bea899602c54d8f437c26227c77 /openecomp-bdd
parente7cdba9c8a87f6dfd4823214ca64016e69b45a16 (diff)
API for get all interface lifecycle types
API for get all interface lifecycle types Change-Id: I64471c98ff9626ac53562a075a34f506c2e263ab Issue-ID: SDC-1999 Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
Diffstat (limited to 'openecomp-bdd')
-rw-r--r--openecomp-bdd/config.json6
-rw-r--r--openecomp-bdd/features/GlobalTypes/TestInterfaceLifecycleTypes.feature8
-rw-r--r--openecomp-bdd/stepDefinitions/GlobalTypes.js24
3 files changed, 38 insertions, 0 deletions
diff --git a/openecomp-bdd/config.json b/openecomp-bdd/config.json
index c28bc9d390..4bf5f95ac5 100644
--- a/openecomp-bdd/config.json
+++ b/openecomp-bdd/config.json
@@ -13,6 +13,12 @@
"server" : "vf.server",
"user" : "user"
},
+ "catalog" : {
+ "port" : 8080,
+ "prefix" : "sdc2/rest/v1",
+ "server" : "CatalogBE.server",
+ "user" : "user"
+ },
"activity_spec" : {
"port" : 8080,
"prefix" : "activity-spec-api/v1.0",
diff --git a/openecomp-bdd/features/GlobalTypes/TestInterfaceLifecycleTypes.feature b/openecomp-bdd/features/GlobalTypes/TestInterfaceLifecycleTypes.feature
new file mode 100644
index 0000000000..ef98fa5b42
--- /dev/null
+++ b/openecomp-bdd/features/GlobalTypes/TestInterfaceLifecycleTypes.feature
@@ -0,0 +1,8 @@
+Feature: Interface Lifecycle Types
+
+Scenario: Test Interface Lifecycle Types
+
+ When I want to get interface lifecycle types
+ Then I want to check property "tosca.interfaces.node.lifecycle.standard" exists
+ Then I want to check property "tosca.interfaces.nfv.vnf.lifecycle.nfv" exists
+
diff --git a/openecomp-bdd/stepDefinitions/GlobalTypes.js b/openecomp-bdd/stepDefinitions/GlobalTypes.js
new file mode 100644
index 0000000000..461fee74a7
--- /dev/null
+++ b/openecomp-bdd/stepDefinitions/GlobalTypes.js
@@ -0,0 +1,24 @@
+/*
+ * Copyright © 2016-2018 European Support Limited
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+const {Then, When} = require('cucumber');
+const assert = require('assert');
+const util = require('./Utils.js');
+
+When('I want to get interface lifecycle types', function () {
+ let path = '/catalog/interfaceLifecycleTypes';
+ return util.request(this.context, 'GET', path, null, false, 'catalog');
+}); \ No newline at end of file