feat: [UIE-9685] - Proactive IAM e2e gating
Description π
This PR adds IAM flag mocking in preparation for the iam_beta customer tag to be added to the test accounts.
When it fist happened (and since was rolled back), we noticed a wide array of failures related to the handling of the permission endpoints:
https://baker.linode.com/blue/organizations/jenkins/manager%2Fmanager-test/detail/PR-13105/4/tests
While this will have to be handled properly post beta, we want to prevent failures for every run, then progressively fix the tests.
@jdamore-linode - is there a way we can get this particular PR to run with the newly test account that was taken out of rotation? I want to see if I missed anything.
Changes π
- mock iam: enabled as false in failing tests
Scope π’
Upon production release, changes in this PR will be visible to:
- [ ] All customers
- [ ] Some customers (e.g. in Beta or Limited Availability)
- [x] No customers / Not applicable
Author Checklists
As an Author, to speed up the review process, I considered π€
π Doing a self review β Our contribution guidelines π€ Splitting feature into small PRs β Adding a changeset π§ͺ Providing/improving test coverage π Removing all sensitive information from the code and PR description π© Using a feature flag to protect the release π£ Providing comprehensive reproduction steps π Providing or updating our documentation π Scheduling a pair reviewing session π± Providing mobile support βΏ Providing accessibility support
- [x] I have read and considered all applicable items listed above.
As an Author, before moving this PR from Draft to Open, I confirmed β
- [x] All tests and CI checks are passing
- [x] TypeScript compilation succeeded without errors
- [x] Code passes all linting rules
@jdamore-linode could you give this some attention when you have a minute? I'd like to avoid a ton of failures once the IAM customer tags get rolled out again. Ideally I'd want to run this PR against a test account with the tag. thx!
@jdamore-linode could you give this some attention when you have a minute? I'd like to avoid a ton of failures once the IAM customer tags get rolled out again. Ideally I'd want to run this PR against a test account with the tag. thx!
@abailly-akamai just kicked off a run against the account with IAM π
Better than I expected! If I have time this afternoon I'll take a stab at some of these
@jdamore-linode thx! i did another pass but will need your help with the remaining since they seem to be passing locally with my account
@abailly-akamai planning to look at these last few and ideally push fixes this afternoon
Cloud Manager UI test results
:small_red_triangle: 1 failing test on test run #18 βοΈ
| :x: Failing | :white_check_mark: Passing | :arrow_right_hook: Skipped | :clock1: Duration |
1 Failing | 830 Passing | 11 Skipped | 42m 11s |
Details
| Failing Tests | ||
|---|---|---|
| Spec | Test | |
| :x: | attach-volume.spec.ts | Cloud Manager Cypress Testsβvolume attach and detach flows Β» attaches a volume to a Linode |
Troubleshooting
Use this command to re-run the failing tests:
pnpm cy:run -s "cypress/e2e/core/volumes/attach-volume.spec.ts"
@jdamore-linode just FYI the latest run was done with e2e-pat-prod-2
it is the plan to add 10k users tomorrow to the pool - unsure if we're at a good place with this PR at this point
@abailly-akamai, nice! I think in that case we're ready to merge whenever you are π not totally sure what happened with that Volume Attach test: at a glance it looks like the attach succeeded as expected but the toast didn't appear.