Scenario Outline: WKS record relationships block should show relation to wks record created by wks service, with mapping definition targeted to schema of same authority and having higher major version
Given I hit Storage service put end point with <relatedEntityPayload> to persist a record say raw1
And I verify that three wks records are created for this raw record raw1
...
...
@@ -148,29 +148,61 @@ Feature: Covers all positive and negative test cases around WKS transformation s
When I hit Storage service put end point with <parentPayload> whose raw record contains relationship to record raw1
Then Transformed record should contain relationship to wks with same authority of raw1 <relatedEntityPayload> and with higher major version as per <expectedRelationshipBlock>
# Scenario Outline: WKS record relationships block should show relation to wks record created using mapping definition targeted to schema of same authority and with latest major version
# Given I hit Storage service put end point with <relatedEntityPayload> to persist a record say raw1
# And I hit Storage service put end point with <multipleWksWithDifferentMajorVersions> having raw1 as ancestry
# Then I hit wks service with <parentPayload> whose raw record contains relationship to raw1
# And Transformed record should contain relationship to highest major version wks of raw1, as per <expectedRelationshipBlock>
Scenario Outline: WKS record relationships block should show relation to wks record created by wks service, with mapping definition targeted to schema of same authority and same entity
Given I hit Storage service put end point with <relatedEntityPayload> to persist a record say raw1
And I verify that three wks records are created for this raw record raw1 with only one matching entity
When I hit Storage service put end point with <parentPayload> whose raw record contains relationship to record raw1
And Transformed record should contain relationship to wks with same authority of raw1 <relatedEntityPayload> and with same entity as per <expectedRelationshipBlock>
Scenario Outline: WKS record relationships block should show relation to wks record created by wks service, with mapping definition targeted to schema of non matching authority and entity
Given I hit Storage service put end point with <relatedEntityPayload> to persist a record say raw1
And I verify that two wks records are created for this raw record raw1 with no matching authority or entity
When I hit Storage service put end point with <parentPayload> whose raw record contains relationship to record raw1
Then Transformed record should contain relationship to wks <relatedEntityPayload> and with higher major version as per <expectedRelationshipBlock>
Scenario Outline: Multiple WKS record relationships block should show relation to wks record created by wks service, with mapping definition targeted to schema of same authority
Given I hit Storage service put end point with <relatedEntityPayload> to persist two records say raw1 and raw2
And I verify that multiple wks records are created for each of the above raw records having same autority and different entities
When I hit wks service with <parentPayload> whose raw record contains relationship to above records
Then Transformed record should contain relationship to multiple wks records with same authority of raw1 and raw2 <relatedEntityPayload> as per <expectedRelationshipBlock>
Scenario Outline: Multiple WKS record relationships block should show relation to wks record created by wks service, with mapping definition targeted to schema of same authority and same entity
Given I hit Storage service put end point with <relatedEntityPayload> to persist two records say raw1 and raw2
And I verify that multiple wks records are created for each of the above raw records having same autority and different entities
When I hit wks service with <parentPayload> whose raw record contains relationship to above records
Then Transformed record should contain relationship to multiple wks records with same entity of raw1 and raw2 <relatedEntityPayload> as per <expectedRelationshipBlock>
Scenario Outline: Multiple WKS record relationships block should show relation to wks record created by wks service, with mapping definition targeted to schema of same authority and having higher major version
Given I hit Storage service put end point with <relatedEntityPayload> to persist two records say raw1 and raw2
And I verify that multiple wks records are created for each of the above raw records
When I hit wks service with <parentPayload> whose raw record contains relationship to above records
Then Transformed record should contain relationship to multiple wks records of raw1 and raw2 <relatedEntityPayload> as per <expectedRelationshipBlock>