Commit Graph

43 Commits

Author SHA1 Message Date
yiannistri 2cf764bc0d
fix: Change Turtles namespace to `cattle-turtles-system` 2025-10-15 11:07:32 +01:00
yiannistri c19f575de0
fix: Update chart upgrade test to reflect removal of CAPRKE2 and CAAPF from rancher-turtles chart 2025-10-02 11:11:00 +01:00
Andrea Mazzotti 5a9cb81cf2
Cleanup test framework
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-09-03 16:49:22 +02:00
yiannistri 262384fde5
test: Update test to ensure that a cluster remains operational post-upgrade 2025-08-22 14:08:35 +01:00
yiannistri 5007f6b925
feat: Update test to verify that CAPI Operator provider resources have been removed. 2025-08-11 13:26:21 +01:00
Alexandr Demicev 90420b93b8
Revert "Revert "Use OCI artifacts for CAPI providers (#1429)""
This reverts commit 80f8ef7ae9.
2025-07-10 15:53:52 +02:00
Andrea Mazzotti 80f8ef7ae9
Revert "Use OCI artifacts for CAPI providers (#1429)"
This reverts commit 4acde94bee.
2025-07-09 17:52:51 +02:00
Danil-Grigorev 5538771bd9
Verify CAPIO deployment is removed
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-07-07 12:43:10 +02:00
Danil Grigorev 95ff02d146
Fix panic on nil error in defaultToCurrentGitRepo (#1514)
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-07-04 11:46:27 +00:00
Danil Grigorev fe0e040cdc
Bump CAPIO to v0.21.0 (#1504)
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-07-03 08:58:39 +02:00
Michal Jura 4acde94bee
Use OCI artifacts for CAPI providers (#1429)
Issue: https://github.com/rancher/turtles/issues/1351
2025-06-30 15:52:06 +02:00
Andrea Mazzotti 881ff7759e
Increase ginkgo nodes for parallel vSphere e2e
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-06-19 10:04:47 +02:00
Danil Grigorev cd1908eafc
Refactor E2E Fleet GitRepo names and ensure uniqueness (#1430)
Rename Fleet GitRepo names in E2E tests to be more specific, including the provider and Kubernetes distribution.

Add a random suffix to generated GitRepo names in the test framework to ensure uniqueness and prevent conflicts.

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-06-03 12:13:43 +02:00
Andrea Mazzotti b869965c4a
Print e2e Rancher kubeconfig secret key
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-06-02 18:03:18 +02:00
Danil-Grigorev 2ffe05212e
Use fleet to deploy CNI across all providers
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-04-25 11:01:39 +02:00
Alexandr Demicev 5553e866e8
Use fleet to install CNI for vSphere in e2e
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-04-08 15:59:41 +02:00
yiannistri f5c60cf03b
fix: Minor typo 2025-04-01 19:10:50 +01:00
Danil Grigorev a858180de7
Bump CAAPF to latest (#1185)
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-03-25 12:29:33 +00:00
Danil-Grigorev db38a7c0ee
Use Calico CNI and Azure CCM for Azure e2e
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-03-21 15:15:33 +01:00
Andrea Mazzotti fbeee50d53
Add Azure + RKE2 ClusterClass e2e test
Signed-off-by: Andrea Mazzotti <andrea.mazzotti@suse.com>
2025-03-18 09:36:15 +01:00
Alexandr Demicev aae45ad15e
Add AWS EC2 Kubeadm cluster to e2e
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-03-14 12:07:07 +01:00
Alexandr Demicev e625f8d44a
Wait for rancher kubeconfig to be fetched in e2e 2025-03-03 18:01:28 +01:00
Alexandr Demicev ec78f07949
Use curl to push local chart in e2e
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-01-14 16:31:23 +01:00
Alexandr Demicev 1f6972edae
Enable v3 migration by default
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2025-01-14 15:34:30 +01:00
Danil Grigorev c65959854d
Refactor e2e to use env declaratively (#970)
* Refactor e2e to use env declaratively

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Default policy to IfNotPresent in e2e

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Simplify sute test setup

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Define secrets keys via env for crust-gather exclusion

Use any `SECRET_` prefixed env variable with \n separated content with
environment variable names to exclude from logs collection.

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Process e2eConfig individually to populate environment in test

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Add documentation for new vars and SECRET_KEYS processing

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Use GinkgoWriter for logging in e2e

Replace all usages of fmt.Printf, which skew the log output in parallel
test execution.

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

---------

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2025-01-07 14:46:49 +00:00
Danil-Grigorev e97f40f69c
Bump CAPI to 1.9.0
- Re-implement Apply method in local framework
- Add controller names, where needed
- Integration test: init controllers only once per all test cases

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

WIP: Evaluating CreateOrUpdate
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-12-16 18:22:35 +01:00
Alexandr Demicev 4fad30685b
Use ngrok ingress for chart museum when running locally
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-12-01 13:25:56 +01:00
Danil Grigorev c985831c7e
🌱 Add image overrides for certified providers (#874)
* Add image overrides for certified providers

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Cover image substitution in e2e tests

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Apply suggestions from code review

Co-authored-by: Yiannis Triantafyllopoulos <8741709+yiannistri@users.noreply.github.com>

---------

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Co-authored-by: Yiannis Triantafyllopoulos <8741709+yiannistri@users.noreply.github.com>
2024-11-27 16:21:09 +00:00
Danil Grigorev add88107f3
Use local clusterctl overrides for determining latest version for provider (#751)
* Refactor auto-upgrade functionality

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Notify users about version update being available

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

* Add integration tests for custom providers

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>

---------

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
2024-09-25 17:19:26 +02:00
Alexander Demicev 435d814f57
Use E2E config instead of ginkgo flags (#657)
* Use E2E config instead of ginkgo flags

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>

* Add documentation for public E2E structures and functions

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>

* Use rancher turtles version from the config file

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>

* Update README with information about new config options

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>

---------

Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-08-14 13:11:31 +03:00
Alexandr Demicev 737d58c0ee
Add retry timeout when pushing to Gitea repository
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-07-23 11:15:57 +02:00
Alexandr Demicev 2383801580
E2E: Add custom ingress for gitea
Signed-off-by: Alexandr Demicev <alexandr.demicev@suse.com>
2024-07-19 17:57:39 +02:00
Danil Grigorev 4a8d689145
Perform helm chart upgrade tests in pre-submits (#485) 2024-04-19 12:18:54 +02:00
Richard Case 2773255c29
feat: changing to use EKS for management cluster (#394)
* feat: changing to use EKS for management cluster

This change introduces the following changes to the e2e tests:

- For the **full** tests the option to use EKS as a management cluster.
This enabled use an AWS ELB instead on ngrok.
- Changed tests so they are either short, full, local....but not both.
- Increased the Rancher version to v2.8.1
- Added a Rancher restart after installing Rancher Turtles to workaround
and issue with the CRDs being watched.

Signed-off-by: Richard Case <richard.case@suse.com>

* wip: update for other test suites

Signed-off-by: Richard Case <richard.case@suse.com>

* wip: added gitea remove

Signed-off-by: Richard Case <richard.case@suse.com>

---------

Signed-off-by: Richard Case <richard.case@suse.com>
2024-03-26 14:39:34 +01:00
Richard Case 7ff0769098
Merge pull request #335 from Danil-Grigorev/collect-cluster-artifacts
🌱 Implement full cluster artifact gathering for both clusters after each test run
2024-01-16 09:13:15 +00:00
Danil Grigorev d3f50322c0
Implement artifact gathering for both cluster after each test run
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2024-01-15 20:17:56 +01:00
Furkat Gofurov b81f85e8c3 Align license header years with 'reference' copyright
It also adds license headers to few missing go files, Dockerfile
and Makefile

Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
2024-01-08 11:10:29 +02:00
Carlos Salas 943c36eb1d
test: avoid leaking sensitive information in e2e logs
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
2023-11-16 10:14:05 +01:00
Richard Case 2c98815ff7
fix: various changes to get full e2e working
Signed-off-by: Richard Case <richard.case@suse.com>
2023-10-16 14:54:06 +02:00
Danil Grigorev fe3cf9fb62
Add azure e2e test job
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
2023-10-03 13:16:04 +02:00
Richard Case 285f1e3da8
feat: add e2e that ensures v2prov doesn't break
This change adds a new e2e test suite that checks that installing
Rancher Turtles doesn't break v2prov.

The test will provision a RKE2 cluster in Azure. It will then connect to
the cluster via the kubeconfig.

Signed-off-by: Richard Case <richard.case@suse.com>
2023-10-03 10:44:03 +02:00
Richard Case afe1436152
refactor: split e2e into separate suites
This change splits the e2e tests into separate suites. Each of which can
have their own cluster setup. This also invloved extracting the
management cluster setup into its own package.

A new test suite will be introduced later to test v2prov.

Signed-off-by: Richard Case <richard.case@suse.com>
2023-09-29 16:49:48 +02:00
Richard Case 02a6430e6e
refactor: change e2e tests so its easier to use different providers
This change refactors the existing e2e tests so that there is a new spec
that can be re-used with different template files to enable us to test
different provider combinations.

Additionally the tests have been changed to use an in-cluster Git server
(gitea) so that we can create new repos as part of the test and remove
the reliance on the samples repo.

Signed-off-by: Richard Case <richard.case@suse.com>
2023-09-25 15:44:51 +02:00