aboutsummaryrefslogtreecommitdiffstats
path: root/cucumber-js-test-apis-ci/stepDefinitions
diff options
context:
space:
mode:
authorilanap <ilanap@amdocs.com>2019-01-30 12:50:04 +0200
committerAvi Gaffa <avi.gaffa@amdocs.com>2019-01-31 08:22:47 +0000
commite5d23233b1597d61bdd4eddbce7c94b272088fbc (patch)
tree30e562b7f03135708b5fd37bdb1512cc1db6e23c /cucumber-js-test-apis-ci/stepDefinitions
parentade7fd243fe41b5056ba63d3584ea616ee8bf808 (diff)
Fixes to tests
Change-Id: Ife159ce00d501c8f0e00dc3cbc5a9f447d2b8ca4 Issue-ID: SDC-2028 Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'cucumber-js-test-apis-ci/stepDefinitions')
-rw-r--r--cucumber-js-test-apis-ci/stepDefinitions/InterfaceOperationSteps.js4
-rw-r--r--cucumber-js-test-apis-ci/stepDefinitions/VF_steps.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/cucumber-js-test-apis-ci/stepDefinitions/InterfaceOperationSteps.js b/cucumber-js-test-apis-ci/stepDefinitions/InterfaceOperationSteps.js
index abfad80ae4..3e2321963c 100644
--- a/cucumber-js-test-apis-ci/stepDefinitions/InterfaceOperationSteps.js
+++ b/cucumber-js-test-apis-ci/stepDefinitions/InterfaceOperationSteps.js
@@ -58,7 +58,7 @@ function makeType() {
When('I want to create an Operation', function() {
let path = '/catalog/' + this.context.component.type + '/' + this.context.component.uniqueId + '/interfaceOperations';
- let inputData = util.getJSONFromFile('resources/json/interfaceoperation/createInterfaceOperations.json');
+ let inputData = util.getJSONFromFile('resources/json/interfaceOperation/createInterfaceOperations.json');
var operationName = makeType();
var interfaceType = makeType();
inputData.interfaces.interface1.type = interfaceType;
@@ -78,7 +78,7 @@ When('I want to create an Operation', function() {
});
When('I want to update an Operation', function () {
- let inputData = util.getJSONFromFile('resources/json/interfaceoperation/updateInterfaceOperation.json');
+ let inputData = util.getJSONFromFile('resources/json/interfaceOperation/updateInterfaceOperation.json');
let path = '/catalog/'+ this.context.component.type + '/'+ this.context.component.uniqueId +'/interfaceOperations';
inputData.interfaces.interface1.operations.delete.uniqueId = this.context.interface.operationUniqueId;
inputData.interfaces.interface1.type=this.context.interface.interfaceType;
diff --git a/cucumber-js-test-apis-ci/stepDefinitions/VF_steps.js b/cucumber-js-test-apis-ci/stepDefinitions/VF_steps.js
index 3411a25fcb..a24a90b0a5 100644
--- a/cucumber-js-test-apis-ci/stepDefinitions/VF_steps.js
+++ b/cucumber-js-test-apis-ci/stepDefinitions/VF_steps.js
@@ -29,7 +29,7 @@ Then('I want to create a VF for this Item', function () {
return util.request(this.context, 'GET', '/vendor-software-products/' + this.context.item.id + '/versions/' + this.context.item.versionId).then(result => {
this.context.inputData = util.getJSONFromFile('resources/json/createVF.json');
// start replacing stuff
- this.context.inputData.contactId = this.context.headers['vf']["USER_ID"];
+ this.context.inputData.contactId = this.context.headers['catalog']["USER_ID"];
this.context.inputData.categories[0].uniqueId = result.data.category;
this.context.inputData.categories[0].subcategories[0].uniqueId = result.data.subCategory;
this.context.inputData.description = result.data.description;
@@ -37,7 +37,7 @@ Then('I want to create a VF for this Item', function () {
this.context.inputData.tags[0] = result.data.name;
this.context.inputData.vendorName = result.data.vendorName;
this.context.inputData.csarUUID = this.context.item.id;
- return util.request(this.context, 'POST', '/catalog/resources', this.context.inputData, false, 'vf');
+ return util.request(this.context, 'POST', '/catalog/resources', this.context.inputData, false, 'catalog');
});
});