Commit Graph

40 Commits

Author SHA1 Message Date
yonasberhe23 8587c2cf45 fix repositories test 2025-10-15 06:25:09 -07:00
yonasberhe23 a40fb7c3db make improvments to harvester tests 2025-10-10 06:13:13 -07:00
yonasberhe23 77aa1d95a4 fix flaky tests - jenkins 2025-09-03 08:16:07 -07:00
Richard Cox 4070270b35
Improve e2e tests, add but don't use K3S scripts (#14854)
* Run e2e tests in k3s + helm rather than docker

* collect logs from k3s, use head and newer kube version, check for webhook up when starting rancher

* use latest rc chart

* debugging

* use lower kube version

* fixes to brittle tests, log fixes, enable oidc provider

* fix logs

* test tweaks

* use alpha repo, rc in stable is too old. also wait for capi service

* improvements

* debug

* rtryyr

* don't run settings e2e tests - they leave cluster with non-original values

* fix settings tests, fix CRD test (worked by luck before)

* fix fetch of initial settings

* more settings fixes, crd tweak

* update settings
- it uses useDefault as the reset, which was the issue
- leave tests as is (mosty) and just reset them all at the end

* asd

* adsad

* more settings fixes

* remove problem code

* use toms debug image for api failures

* sdfdsf

* Use 'head' chart

* Use audit log

* enable browser logs for beforeAll and afterAll

* debug for checking racnher pod containers, increase audit log level

* don't overwrite logs...

* output improvements, move position of audit log `set`

* use new (docs pending) flag to enable audit log

* extra logging now in rancher/rancher, use head image (should remove a lot of false positives around fleet)

* improve comment

* combine test artifacts

* tweaks, and another data point for 'resolved' tests

* attempt to get previous logs (audit log previous might not exist)

* remove k logs --previous, use logs deployment/name

* re-enable all tests

* tidyng up

* better logs, including crashed containers

* k3s updates... but run in docker

* change lookup from anything containing 1 to `1`

* changes following pr review

* remove un-needed chrome pin
- this commented out section was a c+p from the main e2e section
- the main e2e section comments this out
- both should use a single repo gh action, won't do that now though
2025-08-22 09:38:08 +01:00
Richard Cox d06c38893a E2E: Fix command name, improve descriptions 2025-07-03 17:17:16 +01:00
Richard Cox cbf476fc86
Fix logging e2e test and other improvements (#14664)
* WIP - just testing how are suite behaves with vai on

* Use common method to create query params for steve api requests

* with vai on there's no workload page... so update tests

* flip back hom page urls

* more fixes

* More fixes

* E2eRequestUtils --> RequestUtils, smarter isVaiCacheEnabled

* better method name, fix a11y tests

* disable vai for vai tests

* fetching the setting gives a 404. hardcode for the moment

* give up, make method async

* use pathWithDefaultSteveParams everywhere

* rename grep tag vai to noVai (matching what the tests run)

* fixes

* Allow more time for rancher to restart after toggling a ff

* fix network policies

* Changes following review

* replace pathWithDefaultSteveParams with ?*

* fixes

* Remove temp code that enables FF, should be defunct once enabled by default

* unpin, improve script

* on failure upload rancher logs to job artifacts

* fix

* test specific rancher commit, and rancher debug level

* try head again following overnight fixes

* Wire in VAI_ENABLED env var (to avoid), fixed isVaiCacheEnabled (no value, use default)

* Standardise references to small image, use `k8s.gcr.io/pause` instead of `nginx:alpine`

* test - see if specific workalods are the sticking point

* reduce impact of cronjob

* reduce impact of cronjob - additional

* Improve e2e tests that spam resource creation/delete
- take gaps when creating resources
- wait for ns deletion (containing resources) to complete before continueing)

* even stricker cron schedule

* update three additional places where workloads spam happens

* fix tag of new @vai tests

* use default count, reduce to min. also removed horrible `while`

* temp fail cronjobs to see logs + recordings

* improvements to noVai test cases, move new utils to commands

* fix flaky compliance and kontainer tests

* proper context, fix lint, fix ingress test

* fix lint

* comment out it.skip

* fix lint, fix flaky logging test, test removing wait when spam creating resources

* testing commented out skip

* re-enable wait, given rancher crashes again
2025-07-03 07:59:21 +01:00
Richard Cox 1c9e290786
Unpin rancher version in e2e tests, update tests following vai on by default (#14498)
* WIP - just testing how are suite behaves with vai on

* Use common method to create query params for steve api requests

* with vai on there's no workload page... so update tests

* flip back hom page urls

* more fixes

* More fixes

* E2eRequestUtils --> RequestUtils, smarter isVaiCacheEnabled

* better method name, fix a11y tests

* disable vai for vai tests

* fetching the setting gives a 404. hardcode for the moment

* give up, make method async

* use pathWithDefaultSteveParams everywhere

* rename grep tag vai to noVai (matching what the tests run)

* fixes

* Allow more time for rancher to restart after toggling a ff

* fix network policies

* Changes following review

* replace pathWithDefaultSteveParams with ?*

* fixes

* Remove temp code that enables FF, should be defunct once enabled by default

* unpin, improve script

* on failure upload rancher logs to job artifacts

* fix

* test specific rancher commit, and rancher debug level

* try head again following overnight fixes

* Wire in VAI_ENABLED env var (to avoid), fixed isVaiCacheEnabled (no value, use default)

* Standardise references to small image, use `k8s.gcr.io/pause` instead of `nginx:alpine`

* test - see if specific workalods are the sticking point

* reduce impact of cronjob

* reduce impact of cronjob - additional

* Improve e2e tests that spam resource creation/delete
- take gaps when creating resources
- wait for ns deletion (containing resources) to complete before continueing)

* even stricker cron schedule

* update three additional places where workloads spam happens

* fix tag of new @vai tests

* use default count, reduce to min. also removed horrible `while`

* temp fail cronjobs to see logs + recordings

* improvements to noVai test cases, move new utils to commands

* fix flaky compliance and kontainer tests

* proper context, fix lint, fix ingress test

* fix lint
2025-07-02 15:40:14 +01:00
Izaac Zavaleta ed67671b51
configmaps pagination tests 2025-06-30 12:23:36 -07:00
yonasberhe23 2ede05f2f5 add Ingress tests for vai 2025-06-04 10:51:38 -07:00
Neil MacDougall 0ababdda45
Add support for HTML page banners (#14356)
* Add support for HTML banners

* Add support for HTML banners

* Updates test so it runs okay after the text banner tests

* Fix for html tests running after others

* Improve e2e test reliability

* Add aria-labels
2025-05-29 17:15:21 +01:00
Richard Cox cec02d3798 Wait for settings resource to be available before trying to set it and silently fail 2025-05-09 14:53:26 +01:00
Neil MacDougall 3665e77a1c
Don't show built-in extensions by default (#13469)
* Don't show built-in extensions by default

* Fix e2e tests and add tests for builtin tab

* Address PR feedback

* Address PR e2e test feedback

* Fix lint
2025-02-26 18:06:46 +00:00
Cody Jackson 1c360d659f Adding a after login redirect for the case when a user enters a url but gets redirected to the login page
Fixes https://github.com/rancher/dashboard/issues/11224
2025-02-24 08:02:45 -07:00
Yonas Berhe 63167dfe64 automation: harvester tests 2025-02-11 16:41:22 -08:00
Neil MacDougall 90d0fff96d
Remove close button from banner and move to a page action (#13255)
* Remove close button from banner and move to a page action

* Update home.vue to fix lint

* Update e2e tests and fix lint issue

* Ensure we wait for both PUTs

* Improve comments

* Change test order

* Improve e2e test

* Fix lint issue

* Improve e2e test reliability

* Fix lint

* Fix e2e test so it works for standard user
2025-02-07 12:22:28 +00:00
Francesco Torchia d11320a187
e2e: Add metadata input field to createAmazonRke2Cluster; Check fleet clusters labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-28 12:23:12 +01:00
Yonas Berhe c0fd9603c6 automation: add step to ensure aks is enabled 2025-01-17 18:30:49 -08:00
Richard Cox f980283813
Add server-side pagination to cluster explorer lists (#11672)
* cluster list now uses resource table

* New PaginatedResourceTable

* WIP

* add context to pag setting

* tidying up

* Add server-side pagination to cluster explorer events and general events list

* Servier-side pagination for catalog apps, cluster repo and operation

* Servier-side pagination for Service --> HPA, inmgress, services

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* fixes after merge. apply PagResTable to node list, vue3 fixes

* - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists

* policy section

* fix async button in manual refresh mode

* fgh

* aaaaa

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* fixes / updates

* testing/tidying

* WIP - Rest of workload lists

* finish off workloads

* tidying up

* fix non-generic list filtering by namespace

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests

* remove invalid sort/filter type

* Running through new indexed fields

* fix unit tests

* lint fixes

* Fixes after small review

* lint

* Test for check-plugin-gates pkg build from shell

* e2e fixes

* Testing new indexed fields with dev image

* tidyuing up imports in hope to fix ts error in check-plugins gate

* Fix failing check-plugin-gates
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file

* tidying up a smidge

* Many tweaks
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields

* Improve location of new place where componentWillFetch is set

* fix lint, comment updated

* Fix failing e2e tests
- fix cluster dashboard events test
- fix and greatly improve flaky events test
- fix hpa test
- functional fixes
  - fix sorting/filtering events by object type
  - fix hpa columns
2025-01-07 15:13:42 -07:00
Richard Cox 024f92c173
Improve E2E tests (#12366)
* Improve pod.spec test

* Improve another repo spec test

* vai test improvements

* Various fixes

* pagination change fixes

* pagination change fixes + new settings

* Update settings-utils.ts

* Fixes

* create name fixes

* improve namespace picker test

* Fix user response

* fixes

* fixes

* fixes

* Make up for userpreference lag by waiting for desired value

* Dont include junk revision in mock resources
- causes MASSSIVE socket spam if the rancher revision exceeds it

* update burger menu, make it clear there's pinned and other cluster lists

also comment out .skip, they play HAVOC with test reports

* improve tableRowsPerPageAndNamespaceFilter

* fix project-namespace

* more fixes...

* Revert "Dont include junk revision in mock resources"

This reverts commit 9aaaabb02c.

* real revision fix

* lint fixes are commenting out skip

* use common resource revision

* safer userpref check

* fix standard user tests

* more linting

* because why not

* fixes/improvements

* Add retry to updateNamespaceFilter

* improve CRD list check for count

* after own review

* tie in failure and retry to tableRowsPerPageAndNamespaceFilter

* handle events count less than 500...

* fix merge fail
2024-11-07 09:58:28 +00:00
Yonas Berhe d6b70aaa36 fix flaky provisioning tests 2024-10-16 09:49:30 -07:00
Izaac Zavaleta 92fc735fb2 Attempt to make pagination tests execution faster 2024-08-21 14:10:12 -07:00
Richard Cox fc9a2188f0 Fix rke1-ui feature flag test
Issue
- Request counted on a specific value of a specific feature flag
- This was supplied by intercepting the request for all FFs and returning the desired one
- However the FF response supplied missed the `revision`
- The `revision` is used to watch for changes to the resource from a given point in history
- If no revision is supplied rancher will return the current value
- In the FF world this meant the intercepted response was overwritten by the actual value

Solution
- Fetch the rancher specific revision up front and then add to the intercept
2024-08-06 12:07:40 +01:00
Richard Cox 6940a349bd Fix lint after rebase 2024-07-10 15:05:38 +01:00
Yonas Berhe 5f41eb1555 vai pagination test - Fleet Bundles 2024-07-10 14:56:38 +01:00
Yonas Berhe aaa191ca81 vai pagination test - Role Templates & Users 2024-07-09 20:13:24 -07:00
Yonas Berhe f6a4589133 vai pagination tests - tokens 2024-07-04 07:41:30 -07:00
Evgeniya Vashkevich 6bf081327f
[FEAT] Added JWT Authentication feature (#11292)
[FEAT] Added JWT Authentication feature
2024-06-27 17:24:43 -07:00
Yonas Berhe c49dfff923 vai pagination tests - pods 2024-06-27 12:57:00 -07:00
Yonas Berhe a4325ae8e2 fleet cluster list page 2024-06-11 08:52:36 -07:00
yonasberhe23 9a1a4b6319
automation: rke1 cluster prov azure (#10715)
* automation: cluster prov rke1 - azure
2024-04-22 12:00:53 -07:00
yonasberhe23 e6030161f5
automation: rke1 cluster prov aws (#10644)
* automation: cluster prov rke1 - aws

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2024-04-04 21:28:38 -07:00
yonasberhe23 b189f8efb0
Cluster management (#10161)
* actions on cluster tests

* initial iteration for cluster drivers tests

* node drivers tests

* rke templates tests

* cloud credentials tests and initial node templates tests

* completed node templates tests

* pod security admissions and policy templates

* MachineDeployments MachineSets and Machines tests

* repositories tests

* filter out tests with @jenkins tag
2024-02-05 17:04:57 -08:00
Alexandre Alves e8abcbfbc9
fix issue with duplicate labels on editing a cluster cloud credential (#10225)
* update label on SelectCredential to display combination of name and id + fix label and placeholder on cloudcredential edit view + fix translation

* fix issue with duplicate labels on editing a cluster cloud credential

* address pr comments

* add e2e tests

* add fix for adjacent-overload-signatures ts lint error

* add fix for adjacent-overload-signatures ts lint error

* add fix for adjacent-overload-signatures ts lint error

* change type for body prop

* fix duplication of createRancherResource command and type definition

* fix linting on ts definition for getRancherResource

* address pr comments

* address pr comments

* address pr comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-01-22 09:59:12 +00:00
Neil MacDougall b036421f25
Fix bug where a manually added node breaks the node list page (#10091)
* Fix bug where a manually added node breaks the node list page

* Address PR feedback

* Address PR feedback

* User rowNames in node list test
2024-01-08 17:08:50 +00:00
Richard Cox 0368f657f0
Merge pull request #10037 from Shavindra/9371-remove-unwatned-properties
Removed unwanted properties from steve resources
2024-01-08 15:48:08 +00:00
Neil MacDougall b1f40a0c49
Fix select does not select default storage class (#10107)
* Fix select does not select default storage class

* Fix indentation
2024-01-04 17:56:14 +00:00
cnotv b816b42913 Remove type from resource 2023-12-18 15:27:20 +01:00
yonasberhe23 1598a46d5c
cluster explore page tests (#9816)
* cluster dashboard page tests
2023-12-13 09:33:12 -08:00
yonasberhe23 afdb3ce093
namespace picker tests (#9910)
* namespace picker tests
2023-11-16 10:41:59 -08:00
Richard Cox ff065e508e Beef up flaky extension banner test
- banner should be visibile when test starts
- banner is visible if v3 setting is not 'true' and there is a missing helm repo
- previously confirmed the repo is missing, now confirm the v3 setting is correct
- split rancher api commands out from base commands, added get/set commands
2023-07-21 11:15:19 +01:00