From b6e7850484ba61df259e38fd6b59e94c2a7de5b6 Mon Sep 17 00:00:00 2001 From: shrikantawachar Date: Mon, 17 Dec 2018 12:26:43 +0530 Subject: 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 --- openecomp-bdd/config.json | 6 ++++++ .../TestInterfaceLifecycleTypes.feature | 8 ++++++++ openecomp-bdd/stepDefinitions/GlobalTypes.js | 24 ++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 openecomp-bdd/features/GlobalTypes/TestInterfaceLifecycleTypes.feature create mode 100644 openecomp-bdd/stepDefinitions/GlobalTypes.js (limited to 'openecomp-bdd') 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 -- cgit 1.2.3-korg