Commit a4574ae1 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'gcp-fix-int-tests' into 'master'

fix gcp IT

See merge request !89
parents a4ae49fc 6308a370
Pipeline #61592 failed with stages
in 43 minutes and 13 seconds
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) {
//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