[MGNLTEST-356] saas-TF can call Unleash-service to switch feature-toggle(s) Created: 18/Nov/22  Updated: 25/Jan/23  Resolved: 24/Jan/23

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

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

Issue Links:
dependency
relation
is related to MGNLTEST-381 How to make the feature toggle kick i... Open
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: subscription-life-cycle-support-by-test-fwk
Team: Foundation
Work Started:

 Description   

Context

First use case is that we have scenarios for JCR-pages and NORSU-pages.
Whether a saas-webapp comes with JCR-pages or NORSU-pages can be toggled with feature-toggle.
Such toggle can be switched during runtime.

The saas-test-framework has no control over how any particular feature behaves. For example, replacing JCR pages for Norsu pages requires changing the toggle state, but also some other operations over the subscription (See Slack thread). Even the hot reloading can't be guaranteed (see MGNLTEST-381). Therefore, for this ticket its enough if the saas-test-framework can change the toggle state (and verify the state has changed in Unleash Server), regardless how Magnolia reacts to the change.  

Also, not all the toggles trigger the same kind of change in Magnolia, and specifics depends on the concrete toggle and corresponding feature. So, in case the saas-test-framework needs to work with any particular feature, an independent ticket will be filed to handle the concrete scenario.

There's a feature-toggles librarythat should be reuse for this task, exposing in the saas-test-framework the funcitonality provided by that library.

Task

saas-test-infra-connectors should provide a service which allows to switch such feature toggle(s).

Since we sometimes we only want to know the status of a toggle - could make sense if the API of such SaasTFunleashService whould allow to read only first before toggling ... but ... tbd depending on what unleash provides

Sources


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