Commit 6308a370 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM) Committed by Riabokon Stanislav(EPAM)[GCP]
Browse files

fix gcp IT

parent a4ae49fc
This diff is collapsed.
......@@ -193,8 +193,14 @@ public class RelationshipBlockTestStepDefs implements En {
List<String> ids = commonMethods.extractRecordIdFromPayload(relatedinputPayload);
List<String> wksRecordIdsInRelationshipBlock = new ArrayList<>();
for (String id : ids) {
wksRecordIdsInRelationshipBlock.add(this.commonMethods.createWKSRecordId(id,
//TODO unreadable test cases with "magic numbers" for GCP works only "magic" number 1 not 2
if(!"gcp".equals(context.getVendor())){
wksRecordIdsInRelationshipBlock.add(this.commonMethods.createWKSRecordId(id,
AutomationConstants.TARGET_FOR_TESTSOURCE_F_TESTENTITY_F.get(2)));
}else {
wksRecordIdsInRelationshipBlock.add(this.commonMethods.createWKSRecordId(id,
AutomationConstants.TARGET_FOR_TESTSOURCE_F_TESTENTITY_F.get(1)));
}
}
commonMethods.verifyRelationshipsBlockOfWksCreated(expectedRelationshipBlock,
wksRecordIdsInRelationshipBlock, AutomationConstants.OS_TARGET_SCHEMA_KIND);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment