Skip to content

Commit

Permalink
FEATURE: Add UpdateRootNodeAggregateDimensions as transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Sep 19, 2024
1 parent a56ba50 commit 4a31b0a
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ Feature: Update root node aggregate dimensions
And I expect this node aggregate to occupy dimension space points [{}]
And I expect this node aggregate to cover dimension space points [{"language":"mul"},{"language":"de"},{"language":"en"},{"language":"ch"}]

When I am in workspace "migration-workspace"
When I am in workspace "migration-workspace" and dimension space point {"language": "fr"}
Then I expect the node aggregate "lady-eleonode-rootford" to exist
And I expect this node aggregate to occupy dimension space points [{}]
And I expect this node aggregate to cover dimension space points [{"language":"mul"},{"language":"de"},{"language":"en"},{"language":"ch"},{"language":"fr"}]

Then I expect node aggregate identifier "lady-eleonode-rootford" to lead to node migration-cs;lady-eleonode-rootford;{}

When I run integrity violation detection
Then I expect the integrity violation detection result to contain exactly 0 errors

Expand All @@ -87,11 +89,13 @@ Feature: Update root node aggregate dimensions
And I expect this node aggregate to occupy dimension space points [{}]
And I expect this node aggregate to cover dimension space points [{"language":"mul"},{"language":"de"},{"language":"en"},{"language":"ch"}]

When I am in workspace "migration-workspace"
When I am in workspace "migration-workspace" and dimension space point {"language": "en"}
Then I expect the node aggregate "lady-eleonode-rootford" to exist
And I expect this node aggregate to occupy dimension space points [{}]
And I expect this node aggregate to cover dimension space points [{"language":"mul"},{"language":"de"},{"language":"ch"}]

Then I expect node aggregate identifier "lady-eleonode-rootford" to lead to no node

When I run integrity violation detection
Then I expect the integrity violation detection result to contain exactly 0 errors

Expand All @@ -117,11 +121,13 @@ Feature: Update root node aggregate dimensions
And I expect this node aggregate to occupy dimension space points [{}]
And I expect this node aggregate to cover dimension space points [{"language":"mul"},{"language":"de"},{"language":"en"},{"language":"ch"}]

When I am in workspace "migration-workspace"
When I am in workspace "migration-workspace" and dimension space point {"language": "de_DE"}
Then I expect the node aggregate "lady-eleonode-rootford" to exist
And I expect this node aggregate to occupy dimension space points [{}]
And I expect this node aggregate to cover dimension space points [{"language":"mul"},{"language":"de_DE"},{"language":"en"},{"language":"ch"}]

Then I expect node aggregate identifier "lady-eleonode-rootford" to lead to node migration-cs;lady-eleonode-rootford;{}

When I run integrity violation detection
Then I expect the integrity violation detection result to contain exactly 0 errors

Expand All @@ -140,5 +146,7 @@ Feature: Update root node aggregate dimensions
| parentNodeAggregateId | "lady-eleonode-rootford" |
Then the last command should have thrown an exception of type "NodeAggregateDoesCurrentlyNotCoverDimensionSpacePoint"

Then I expect node aggregate identifier "lady-eleonode-rootford" to lead to no node

When I run integrity violation detection
Then I expect the integrity violation detection result to contain exactly 0 errors

0 comments on commit 4a31b0a

Please sign in to comment.