Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset user preferences on E2E start or requests #6300

Closed
cnotv opened this issue Jul 7, 2022 · 0 comments · Fixed by #6535
Closed

Reset user preferences on E2E start or requests #6300

cnotv opened this issue Jul 7, 2022 · 0 comments · Fixed by #6535
Assignees
Labels
area/test Test (e2e and unit) kind/tech-debt Technical debt size/1 Size Estimate 1
Milestone

Comments

@cnotv
Copy link
Member

cnotv commented Jul 7, 2022

Detailed Description
Reset user preferences while starting or override them with an interceptor while running E2E.

Context
Since E2E tests necessarily MUST be deterministic to avoid flake cases, plus we are not mixing tests with this feature, reset properties. This will provide a seamless scenario regardless of the machine and Rancher instance.

Request: /v1/userpreferences
Payload sample (only data for simplification):

      "data": {
        "after-login-route": "\"home\"",
        "cluster": "local",
        "group-by": "none",
        "home-page-cards": "{\"welcomeBanner\":true,\"migrationTip\":true,\"setLoginPage\":true,\"communitySupportTip\":true,\"commercialSupportTip\":true}",
        "last-namespace": "default",
        "last-visited": "{\"name\":\"c-cluster-product\",\"params\":{\"cluster\":\"local\",\"product\":\"manager\"}}",
        "ns-by-cluster": "{\"local\":[]}",
        "provisioner": "rke2",   // This leads to an issue while running cluster creation tests
        "read-whatsnew": "\"\"",
        "seen-whatsnew": "\"v2.6-4a5a926fe1fc319847a78fe814e3f2be18bb2c2b-head\"",
        "theme": "\"ui-auto\""
      }
@cnotv cnotv added the area/test Test (e2e and unit) label Jul 7, 2022
@cnotv cnotv added this to the v2.7.0 milestone Jul 7, 2022
@cnotv cnotv changed the title Reset user preferences on E2E start Reset user preferences on E2E start or requests Jul 7, 2022
@cnotv cnotv added the kind/tech-debt Technical debt label Jul 7, 2022
@cnotv cnotv self-assigned this Jul 27, 2022
@cnotv cnotv added the size/1 Size Estimate 1 label Jul 27, 2022
@zube zube bot added [zube]: Done and removed [zube]: Review labels Aug 5, 2022
@nwmac nwmac modified the milestones: v2.7.0, v2.6.9 Aug 30, 2022
@zube zube bot removed the [zube]: Done label Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test Test (e2e and unit) kind/tech-debt Technical debt size/1 Size Estimate 1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants