Commit Graph

36 Commits

Author SHA1 Message Date
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 78e4196ece
Merge branch 'master' into set-server-url 2025-07-08 11:06:17 +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
Alejandro Ruiz 6f86e88a91 Set CATTLE_SERVER_URL when running Rancher with Docker 2025-06-30 14:31:23 +02:00
Alexandre Alves aebde5c25f
Rancher as an OIDC provider (#14475)
* Rancher as an OIDC provider (interface and flow)

---------

Co-authored-by: Richard Cox <ricox@suse.com>
2025-06-26 10:39:26 +01:00
Richard Cox 2b2a499691 Pin rancher to a version that should unblock e2e 2025-06-25 11:48:25 +01:00
Richard Cox e2b6ef0a95 allow more time for rancher to start up 2025-06-24 16:59:50 +01:00
yonasberhe23 17becd3559 unpin e2e tests 2025-05-14 08:09:16 -07:00
yonasberhe23 ec5e91405e pin e2e tests to older version of rancher 2025-05-09 14:39:29 -07:00
Phillip Rak d35c29cc79 Revert: Pin Rancher version to v2.11-2053ce644a31cd8053d1f58e2487154b0b8513b6-head for e2e tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-06 11:34:14 -07:00
Phillip Rak 60f62107e7 Pin Rancher version to v2.11-2053ce644a31cd8053d1f58e2487154b0b8513b6-head for e2e tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-01-14 12:25:23 -07:00
Alejandro Ruiz 79d71c62cc e2e: wait for webhook to be ready 2024-11-07 13:07:01 +01:00
momesgin f84ac9e0fc
Update rancher image version for e2e tests (#12310)
* update rancher image version for e2e tests

* update package.json's docker local script to use the latest version

* update what's new version to 2.10

* revert unrelated change

* add rancher version variable to reuse + skipping some e2e tests

* revert unnecessary changes in version.spec.ts

* remove typo

* fix version typo

* skip account-api-keys tests

* skip a test in namespace-picker.spec.ts

* update home test to use rancher version variable

* remove 'v' from version number

* fix typo

* fix flaky charts tests

* fix flaky repositories tests

* more precise enabling logic for checkboxes

* lint

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-10-24 10:46:38 +01:00
Alexandre Alves 97ff592ca5 get back script optimisations + revert small change used to trigger workflow + fix path elemental.po 2024-08-14 12:36:12 +01:00
Alexandre Alves e6cc196f40 finalized workflow + remove echos from e2e-docker-start + working on elemental spec 2024-08-14 09:11:12 +01:00
Alexandre Alves 7ed37c7edb echo on e2e-docker-start 2024-08-14 09:11:12 +01:00
Alexandre Alves 8f6433b4f2 test matrix for multiple envs 2024-08-14 09:10:13 +01:00
Alexandre Alves 169d8fa1f0 script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves b0211fff11 script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves befd075ac1 Revert "script adjustment/fix"
This reverts commit 48a13ef3554da045850f88b43ace5edfee99e03d.
2024-08-14 09:10:13 +01:00
Alexandre Alves 320d53b29b script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves c9eda1eef3 script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves 104e80c75c script adjustment 2024-08-14 09:10:13 +01:00
Alexandre Alves e15ee8947a script adjustment 2024-08-14 09:10:13 +01:00
Alexandre Alves e14a9735b9 script adjustment 2024-08-14 09:10:13 +01:00
Alexandre Alves 00e5db19ff fix bash script + prevent a lot of e2e tests from running 2024-08-14 09:10:13 +01:00
Alexandre Alves 7ca533c172 testing workflow for the first time 2024-08-14 09:10:13 +01:00
Alexandre Alves 872f7deace saving WIP 2024-08-14 09:10:13 +01:00
Neil MacDougall 53e666994d
Unpin Rancher backend (#10900) 2024-04-30 11:10:27 +01:00
Neil MacDougall c4c7d9e02d
Pin rancher backend image version for e2e tests (#10859)
* Pin rancher backend image version for e2e tests

* Try older image
2024-04-22 17:58:23 +01:00
Phillip Rak 69c71cfea3 Target `v2.9-head` for e2e runs
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-15 16:18:42 -07:00
Phillip Rak 201b53cb34 Target `v2.9-a83e8c5526b54153aee0edbc2dc7b6d8ea982bec-head` for e2e runs
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-14 14:55:31 -07:00
Phillip Rak 52c39e2038 Bump rancher version to `v2.9-head` for e2e scripts
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-12-20 10:40:01 -07:00
Richard Cox d5ed805086 Bump the rancher version used in e2e tests to 2.8 2023-09-28 14:01:04 +01:00
Richard Cox a3f17e3f6d Use the latest rancher/ui build in e2e tests
- given we now serve the (built) dashboard files we set CATTLE_UI_OFFLINE_PREFERRED=true
- this means the embedded rancher/ui is used
- so now we do something similar to ensure the latest rancher/ui is used
2023-06-27 11:16:54 +01:00
Neil MacDougall 226ed30e39
e2e: Add built UI to docker container rather than run a node process (#9063)
* e2e: Add built UI to docker container rather than run a node process

* Fix to ensure docker:local:stop tried to both clean and remove cypress container

* Check dist folder is correct

* Build U first

* Remove debug, wait for ui

* Change cluster test

* Tweak test

* Improve resilience of cluster manager delete tests

* Fix lint

* Try and fix delete tests

* Remove unused var

* Remove unused baseUrl

* Fix cluster delete tests

* Address lint issues

* Fix api keys test
2023-06-19 09:08:19 +01:00