From 00bc6c6599708b056d57aa83f85a9e3c7ea53a1d Mon Sep 17 00:00:00 2001 From: Leonardo Scalabrini Date: Mon, 30 Mar 2026 16:28:58 -0300 Subject: [PATCH 1/2] feat: Removed elemental schema --- .../elemental/schemas/elemental_schemas.yaml | 114 ------------------ 1 file changed, 114 deletions(-) delete mode 100644 validation/elemental/schemas/elemental_schemas.yaml diff --git a/validation/elemental/schemas/elemental_schemas.yaml b/validation/elemental/schemas/elemental_schemas.yaml deleted file mode 100644 index d2999897d1..0000000000 --- a/validation/elemental/schemas/elemental_schemas.yaml +++ /dev/null @@ -1,114 +0,0 @@ -- projects: [RANCHERINT] - suite: Elemental - cases: - - title: "Deploy Fleet GitRepo on Elemental downstream cluster" - description: "Validate deployment of a GitRepo via Fleet on a downstream Elemental cluster managed by Rancher" - automation: 0 - steps: - - position: 1 - action: "Create Rancher" - expectedresult: "Rancher Manager is up and accessible" - - position: 2 - action: "Generate Elemental ISO" - data: "Follow steps in https://elemental.docs.rancher.com/quickstart-ui" - expectedresult: "Elemental ISO is successfully generated" - - position: 3 - action: "Create Elemental node" - data: "Follow steps in elemental_node.md" - expectedresult: "Node is created in the inventory and becomes Active in Rancher" - - position: 4 - action: "Provision Elemental cluster using active node" - data: "cluster name: elementalcluster1" - expectedresult: "Cluster is successfully provisioned and becomes Active in Rancher" - - position: 5 - action: "Create project and namespace" - data: "project: fleet-test, namespace: fleet-testns" - expectedresult: "Project and namespace are successfully created" - - position: 6 - action: "Deploy GitRepo object" - data: "/validation/fleet/schemas/gitrepo.yaml" - expectedresult: "GitRepo reaches Active state and defined resources are created in fleet-testns namespace" - - - title: "Provision Elemental cluster in Rancher proxied environment" - description: "Validate provisioning of an Elemental cluster when Rancher is deployed behind a proxy" - automation: 0 - steps: - - position: 1 - action: "Create Rancher with proxy enabled" - expectedresult: "Rancher Manager with proxy is accessible" - - position: 2 - action: "Generate Elemental ISO" - data: "Follow steps in https://elemental.docs.rancher.com/quickstart-ui" - expectedresult: "Elemental ISO is successfully generated" - - position: 3 - action: "Create Elemental node" - data: "Follow steps in elemental_node.md" - expectedresult: "Node is created in the inventory and becomes Active in Rancher" - - position: 4 - action: "Provision Elemental cluster using active node" - data: "cluster name: elementalcluster1" - expectedresult: "Elemental cluster is successfully provisioned and becomes Active in Rancher" - - - title: "Install feature charts on Elemental downstream cluster" - description: "Validate deployment of feature charts on a downstream Elemental cluster managed by Rancher" - automation: 0 - steps: - - position: 1 - action: "Create Rancher" - expectedresult: "Rancher Manager is up and accessible" - - position: 2 - action: "Generate Elemental ISO" - data: "Follow steps in https://elemental.docs.rancher.com/quickstart-ui" - expectedresult: "Elemental ISO is successfully generated" - - position: 3 - action: "Create Elemental node" - data: "Follow steps in elemental_node.md" - expectedresult: "Node is created in the inventory and becomes Active in Rancher" - - position: 4 - action: "Provision Elemental cluster using active node" - data: "cluster name: elementalcluster1" - expectedresult: "Cluster is successfully provisioned and becomes Active in Rancher" - - position: 5 - action: "Install StackState feature chart" - expectedresult: "StackState chart reaches Active state and resources are deployed successfully" - - position: 6 - action: "Install Istio feature chart" - expectedresult: "Istio chart reaches Active state and Istio components are available" - - position: 7 - action: "Install Monitoring feature chart" - expectedresult: "Monitoring chart reaches Active state" - - position: 8 - action: "Install Logging feature chart" - expectedresult: "Logging chart reaches Active state" - - position: 9 - action: "Install CIS Benchmark feature chart" - expectedresult: "CIS Benchmark chart reaches Active state" - - position: 10 - action: "Install Alerting feature chart" - expectedresult: "Alerting chart reaches Active state and default alerts are configured" - - position: 11 - action: "Install NeuVector feature chart" - expectedresult: "NeuVector chart reaches Active state" - - - title: "Test provisioning Elemental cluster on Rancher environment with Harvester" - description: "Validate that an Elemental cluster can be provisioned on a Rancher environment using Harvester as the infrastructure" - automation: 0 - steps: - - position: 1 - action: "Create Rancher" - expectedresult: "Rancher Manager is up and accessible" - - position: 2 - action: "Generate Elemental ISO" - data: "Follow steps in https://elemental.docs.rancher.com/quickstart-ui" - expectedresult: "Elemental ISO is successfully generated" - - position: 3 - action: "Create Harvester" - expectedresult: "Harvester is up and accessible" - - position: 4 - action: "Create Elemental node in Harvester" - data: "Follow steps in elemental_harvester_node.md" - expectedresult: "Node is created in the inventory and becomes Active in Rancher" - - position: 5 - action: "Provision Elemental cluster using active node" - data: "cluster name: elementalcluster1" - expectedresult: "Cluster is successfully provisioned and becomes Active in Rancher" From 365561034d13ff2ccf3e74b77f03ca3310cf6695 Mon Sep 17 00:00:00 2001 From: Leonardo Scalabrini Date: Mon, 30 Mar 2026 16:49:46 -0300 Subject: [PATCH 2/2] feat: add elemental tag --- .github/copilot-instructions.md | 1 + TAG_GUIDE.md | 3 +++ validation/charts/alerting_test.go | 2 +- validation/charts/appco/istio_test.go | 2 +- validation/charts/cis_benchmark_test.go | 2 +- validation/charts/istio_test.go | 2 +- validation/charts/logging_test.go | 2 +- validation/charts/monitoring_test.go | 2 +- validation/charts/neuvector_test.go | 2 +- validation/fleet/public_gitrepo_test.go | 2 +- validation/fleet/upgrade/upgrade_test.go | 2 +- validation/longhorn/chartinstall/installation_test.go | 2 +- validation/longhorn/longhorn_test.go | 2 +- validation/networking/connectivity/network_policy_test.go | 2 +- validation/networking/connectivity/port_test.go | 2 +- validation/neuvector/neuvector_hardened_test.go | 2 +- validation/upgrade/workload_test.go | 2 +- validation/workloads/workload_test.go | 2 +- 18 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 885b1fc1c8..d7fe5f1fda 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -57,6 +57,7 @@ This repository uses Go build tags extensively to control which tests run in dif 3. **Test tier tags**: `sanity`, `extended`, `stress` 4. **PIT (Platform Interoperability Testing) tags**: * `pit.daily`: Tests that run daily + * `pit.elemental`: Daily tests for Harvester setup * `pit.harvester.daily`: Daily tests for Harvester setup * `pit.weekly`: Tests that run weekly * `pit.event`: Tests that run on Alpha/RC releases diff --git a/TAG_GUIDE.md b/TAG_GUIDE.md index 1e8db95223..65c6583394 100644 --- a/TAG_GUIDE.md +++ b/TAG_GUIDE.md @@ -102,6 +102,9 @@ The pit tags organizes Go tests using **build tags**. These tags define when and ##### pit.harvester.daily - Tests that should run **every day** on a harvester setup +##### pit.elemental +- Tests that should run on a elemetal setup + ##### pit.weekly - Tests that should run **once per week** diff --git a/validation/charts/alerting_test.go b/validation/charts/alerting_test.go index 24b7c9d7aa..f8e6d59d51 100644 --- a/validation/charts/alerting_test.go +++ b/validation/charts/alerting_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || cluster.any || sanity || pit.daily) && !stress && !extended +//go:build (validation || infra.any || cluster.any || sanity || pit.daily || pit.elemental) && !stress && !extended package charts diff --git a/validation/charts/appco/istio_test.go b/validation/charts/appco/istio_test.go index 6d55efb701..90f8a2e7b9 100644 --- a/validation/charts/appco/istio_test.go +++ b/validation/charts/appco/istio_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || cluster.any || extended || pit.daily) && !sanity && !stress +//go:build (validation || infra.any || cluster.any || extended || pit.daily || pit.elemental) && !sanity && !stress package appco diff --git a/validation/charts/cis_benchmark_test.go b/validation/charts/cis_benchmark_test.go index 8321c7a38b..471c44a920 100644 --- a/validation/charts/cis_benchmark_test.go +++ b/validation/charts/cis_benchmark_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || cluster.any || sanity || pit.daily) && !stress && !extended +//go:build (validation || infra.any || cluster.any || sanity || pit.daily || pit.elemental) && !stress && !extended package charts diff --git a/validation/charts/istio_test.go b/validation/charts/istio_test.go index b13047a98c..253ec6e44b 100644 --- a/validation/charts/istio_test.go +++ b/validation/charts/istio_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.rke1 || cluster.any || stress || pit.daily) && !infra.any && !infra.aks && !infra.eks && !infra.gke && !infra.rke2k3s && !sanity && !extended +//go:build (validation || infra.rke1 || cluster.any || stress || pit.daily || pit.elemental) && !infra.any && !infra.aks && !infra.eks && !infra.gke && !infra.rke2k3s && !sanity && !extended package charts diff --git a/validation/charts/logging_test.go b/validation/charts/logging_test.go index 7c6187301c..85578d65a0 100644 --- a/validation/charts/logging_test.go +++ b/validation/charts/logging_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || cluster.any || sanity || pit.daily) && !stress && !extended +//go:build (validation || infra.any || cluster.any || sanity || pit.daily || pit.elemental) && !stress && !extended package charts diff --git a/validation/charts/monitoring_test.go b/validation/charts/monitoring_test.go index ad72a477f4..79b4a9fc3d 100644 --- a/validation/charts/monitoring_test.go +++ b/validation/charts/monitoring_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.rke1 || cluster.any || stress || pit.daily) && !infra.any && !infra.aks && !infra.eks && !infra.gke && !infra.rke2k3s && !sanity && !extended +//go:build (validation || infra.rke1 || cluster.any || stress || pit.daily || pit.elemental) && !infra.any && !infra.aks && !infra.eks && !infra.gke && !infra.rke2k3s && !sanity && !extended package charts diff --git a/validation/charts/neuvector_test.go b/validation/charts/neuvector_test.go index 57fca23451..967a9d631c 100644 --- a/validation/charts/neuvector_test.go +++ b/validation/charts/neuvector_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || i.cluster.any || sanity || pit.daily) && !stress && !extended +//go:build (validation || infra.any || i.cluster.any || sanity || pit.daily || pit.elemental) && !stress && !extended package charts diff --git a/validation/fleet/public_gitrepo_test.go b/validation/fleet/public_gitrepo_test.go index e8a44fa031..2e7c946073 100644 --- a/validation/fleet/public_gitrepo_test.go +++ b/validation/fleet/public_gitrepo_test.go @@ -1,4 +1,4 @@ -//go:build validation || sanity || pit.daily || pit.harvester.daily +//go:build validation || sanity || pit.daily || pit.elemental || pit.harvester.daily package fleet diff --git a/validation/fleet/upgrade/upgrade_test.go b/validation/fleet/upgrade/upgrade_test.go index 07a1da9a3d..5749e5cacb 100644 --- a/validation/fleet/upgrade/upgrade_test.go +++ b/validation/fleet/upgrade/upgrade_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || cluster.any || extended || pit.daily) && !sanity && !stress +//go:build (validation || infra.any || cluster.any || extended || pit.daily || pit.elemental) && !sanity && !stress package upgrade diff --git a/validation/longhorn/chartinstall/installation_test.go b/validation/longhorn/chartinstall/installation_test.go index 1ed4c826d9..9e7313e2bf 100644 --- a/validation/longhorn/chartinstall/installation_test.go +++ b/validation/longhorn/chartinstall/installation_test.go @@ -1,4 +1,4 @@ -//go:build validation || pit.daily +//go:build validation || pit.daily || pit.elemental package longhorn diff --git a/validation/longhorn/longhorn_test.go b/validation/longhorn/longhorn_test.go index df29914acc..8906ab7753 100644 --- a/validation/longhorn/longhorn_test.go +++ b/validation/longhorn/longhorn_test.go @@ -1,4 +1,4 @@ -//go:build validation || pit.daily || pit.harvester.daily +//go:build validation || pit.daily || pit.elemental || pit.harvester.daily package longhorn diff --git a/validation/networking/connectivity/network_policy_test.go b/validation/networking/connectivity/network_policy_test.go index f95a7ea6cd..7196214a9c 100644 --- a/validation/networking/connectivity/network_policy_test.go +++ b/validation/networking/connectivity/network_policy_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.rke2k3s || cluster.any || sanity || pit.daily || pit.harvester.daily) && !stress && !extended +//go:build (validation || infra.rke2k3s || cluster.any || sanity || pit.daily || pit.elemental || pit.harvester.daily) && !stress && !extended package connectivity diff --git a/validation/networking/connectivity/port_test.go b/validation/networking/connectivity/port_test.go index bb7ee1ca06..4f2cbfd848 100644 --- a/validation/networking/connectivity/port_test.go +++ b/validation/networking/connectivity/port_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.rke2k3s || cluster.any || sanity || pit.daily) && !stress && !extended +//go:build (validation || infra.rke2k3s || cluster.any || sanity || pit.daily || pit.elemental) && !stress && !extended package connectivity diff --git a/validation/neuvector/neuvector_hardened_test.go b/validation/neuvector/neuvector_hardened_test.go index a800abf00a..406adbea20 100644 --- a/validation/neuvector/neuvector_hardened_test.go +++ b/validation/neuvector/neuvector_hardened_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || i.cluster.any || sanity || pit.daily) && !stress && !extended +//go:build (validation || infra.any || i.cluster.any || sanity || pit.daily || pit.elemental) && !stress && !extended package charts diff --git a/validation/upgrade/workload_test.go b/validation/upgrade/workload_test.go index 3e94a9f314..d2a213619f 100644 --- a/validation/upgrade/workload_test.go +++ b/validation/upgrade/workload_test.go @@ -1,4 +1,4 @@ -//go:build validation || pit.daily +//go:build validation || pit.daily || pit.elemental package upgrade diff --git a/validation/workloads/workload_test.go b/validation/workloads/workload_test.go index f654a709dc..3842a2b202 100644 --- a/validation/workloads/workload_test.go +++ b/validation/workloads/workload_test.go @@ -1,4 +1,4 @@ -//go:build (validation || infra.any || cluster.any || sanity || pit.daily || pit.harvester.daily) && !stress && !extended +//go:build (validation || infra.any || cluster.any || sanity || pit.daily || pit.elemental || pit.harvester.daily) && !stress && !extended package workloads