[MGNLTEST-373] SaasTestsuiteInitializer should expose method to add admin-user Created: 13/Dec/22  Updated: 19/Dec/22  Resolved: 13/Dec/22

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Done Votes: 0
Labels: TPR-E2E
Remaining Estimate: Not Specified
Time Spent: 1h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: subscription-life-cycle-support-by-test-fwk

 Description   

SubscriptionManager#create(boolean) currently creates a sub. with only one user, the owner.

iirc - an earlier version was also adding test.user.2 as an admin. This seems gone.

To facilitate the process of adding a user within a Hooks class of a consumer module, we should implement 

SaasTestsuiteInitializer#addUser(Subscription, userRole)
SaasTestsuiteInitializer#addAdminUser

Note: I have changed it from #addUser(Subscription, userRole) to #addAdminUser.
atm, the others roles cannot be enrolled, because we lack other users so far.

In a next step we also will need to add the editable.test.user - but this one is not yet created - though hoping to get it soon with SRE-3593 (after we were discussing the topic with Ruben)

 


Generated at Mon Feb 12 07:48:18 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.