-
Account
Aliceis converted into an orgORG-A.- verify: succeed.
- note:
Alicenow act as an admin forORG-A.
-
Using
Aliceto addBobintoORG-A- verify: succeed.
Bobbelongs toORG-A
- verify: succeed.
-
Aliceregister a product forORG-A(false)- verify: fail, as no right role has been assigned for
Aliceyet
- verify: fail, as no right role has been assigned for
-
Bobregisters a new product- verify: fail, as no right role has been assigned for
Aliceyet
- verify: fail, as no right role has been assigned for
-
Alicecreates a roleProductRegistry::Manage- verify: succeed
-
Bobcreates a roleProductRegistry::Execute- verify: fail, as he is not an admin of
ORG-A
- verify: fail, as he is not an admin of
-
Alicecreates a roleProductRegistry::Execute- verify: succeed
-
Aliceassigns roleProductRegistry::ExecuteofORG-AtoBob- verofy: succeed
-
Bobregisters a new product- verify: succeed
-
Bobregisters a new shipment- verify: fail, as
Bobdoes not haveProductTracking::Executerole
- verify: fail, as
-
Alicecreates two rolesProductTracking::ManageandProductTracking::Execute.- verify: succeed
-
AliceassignsProductTracking::ExecutetoCharlies- verify: fail, because
Charliesdoes not belong toORG-A
- verify: fail, because
-
AliceaddsCharliestoORG-Aand assign the same role toCharlies- verify: succeed
-
Grants
Charliessome tokens.Charliesregisters a new shipment- verify: succeed
-
Charliesregisters a new product- verify: fail. No corresponding role
-
Bobregisters a new shipment or updates shipment- verify: fail. No corresponding role
-
Alicecreates an organizationORG-A- verify: succeed, and
Aliceis now an admin ofORG-A
- verify: succeed, and
-
Alicecalls ProductRegistry dispatchables on behalf ofORG-A- verify: fail, as Alice has not been assigned the right role
-
Bobcalls ProductRegistry dispatchables on behalf ofORG-A- verify: fail, as Bob is not in
ORG-A
- verify: fail, as Bob is not in
-
AliceaddsBobandCharliesinto the organization- verify: succeed, and Bob and Charlies are in
ORG-A
- verify: succeed, and Bob and Charlies are in
-
AlicecreatesProductRegistry::ManageExecute&&ProductRegistry::Executeroles forORG-A- verify: succeed, and these two roles are created for
ORG-A - verify:
Alicehave been assigned for these two roles
- verify: succeed, and these two roles are created for
-
Alicecreates a new product (ProductRegistry dispatchable) on behalf ofORG-A- verify: succeed, and a new product is created of
ORG-A
- verify: succeed, and a new product is created of
-
Bobcreates a new product on behalf ofORG-A- verify: fail, as
Bobhas not been assigned the right role
- verify: fail, as
-
AliceassignsProductRegistry::ExecuteofORG-AtoBob, and Bob create a product.- verify: succeed, and a new product is created of
ORG-A
- verify: succeed, and a new product is created of
-
AlicecreatesProductTracking::ManageExecute&&ProductTracking::ExecuteforORG-A -
AliceassignsProductTracking::ExecuteofORG-AtoCharles -
Charlesregisters a new shipment (ProductTrackingdispatchable)- verify: succeed, and a new shipment is created
-
Charlescreates a new product forORG-A- verify: fail, as Charles does not have
ProductRegistry::ExecuteofORG-A
- verify: fail, as Charles does not have
-
Bobcreates a new shipment forORG-A- verify: fail, as Bob does not have
ProductTracking::ExecuteofORG-A
- verify: fail, as Bob does not have
-
AliceremovesProductRegistry::ExecutefromBobforORG-A -
Bobcreates a new product on behalf ofORG-A- verify: fail, as
Bobhas not been assigned the right role
- verify: fail, as
-
continue setup from Story 1
-
AliceassignsDaveasORG-Aadmin- verify: fail, as
Daveis not inORG-A
- verify: fail, as
-
BobaddsDaveinto the organization- verify: fail, as Bob is not an admin of
ORG-A
- verify: fail, as Bob is not an admin of
-
BobcreatesBalance::ManageExecuterole ofORG-A- verify: fail, as Bob is not an admin of
ORG-A
- verify: fail, as Bob is not an admin of
-
BobassignsProductRegistry::Executerole ofORG-AtoCharles- verify: fail, as Bob is not an admin of
ORG-A
- verify: fail, as Bob is not an admin of
-
AliceassignsBobasORG-Aadmin- verify: succeed, and
Daveis added toORG-A
- verify: succeed, and
-
BobaddsDaveintoORG-A- verify: succeed,
Daveadded intoORG-A
- verify: succeed,
-
BobcreatesBalance::ManageExecuterole ofORG-A- verify: succeed,
BobcreatesBalance::ManageExecuterole ofORG-A
- verify: succeed,
-
BobassignsProductRegistry::Executerole ofORG-AtoCharles- verify: succeed
-
continue setup from Story 2
-
Davecreates an organizationORG-D- verify: succeed, and
Daveis now an admin ofORG-D
- verify: succeed, and
-
DaveassignsAliceasORG-Dadmin- verify: succeed. There are two admins for
ORG-D,AliceandDave
- verify: succeed. There are two admins for
-
Alicecreates and assignsProductRegistry::Executerole ofORG-Dto herself- verify: succeed
-
Alicecreates a new product forORG-D- verify: succeed
-
Alicecreates a new product forORG-A- verify: succeed