summaryrefslogtreecommitdiffstats
path: root/cucumber-js-test-apis-ci/stepDefinitions
diff options
context:
space:
mode:
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');
});
});