From 38b1457cbacb733285c0b2381ba22ae14076f42f Mon Sep 17 00:00:00 2001 From: caliskanugur Date: Tue, 24 Sep 2024 11:17:56 -0400 Subject: [PATCH] Feat(environmentflags,quarantine): Adds a new quarantine package that has a method to quarantine tests. Closes [rancher/qa-tasks/issues/1484]. --- pkg/environmentflag/environmentflags.go | 1 + pkg/environmentflag/zz_environmentflags.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/environmentflag/environmentflags.go b/pkg/environmentflag/environmentflags.go index 6e391955..b0669d5e 100644 --- a/pkg/environmentflag/environmentflags.go +++ b/pkg/environmentflag/environmentflags.go @@ -17,5 +17,6 @@ const ( InstallRancher Long Short + Quarantined environmentFlagLastItem // This is used to determine the number of items in the enum ) diff --git a/pkg/environmentflag/zz_environmentflags.go b/pkg/environmentflag/zz_environmentflags.go index 94fe6497..b13f258c 100644 --- a/pkg/environmentflag/zz_environmentflags.go +++ b/pkg/environmentflag/zz_environmentflags.go @@ -17,12 +17,13 @@ func _() { _ = x[InstallRancher-6] _ = x[Long-7] _ = x[Short-8] - _ = x[environmentFlagLastItem-9] + _ = x[Quarantined-9] + _ = x[environmentFlagLastItem-10] } -const _EnvironmentFlag_name = "KubernetesUpgradeAllClustersWorkloadUpgradeAllClustersUpdateClusterNameGatekeeperAllowedNamespacesUpgradeAllClustersUseExistingRegistriesInstallRancherLongShortThis is used to determine the number of items in the enum" +const _EnvironmentFlag_name = "KubernetesUpgradeAllClustersWorkloadUpgradeAllClustersUpdateClusterNameGatekeeperAllowedNamespacesUpgradeAllClustersUseExistingRegistriesInstallRancherLongShortQuarantinedThis is used to determine the number of items in the enum" -var _EnvironmentFlag_index = [...]uint8{0, 28, 54, 71, 98, 116, 137, 151, 155, 160, 217} +var _EnvironmentFlag_index = [...]uint8{0, 28, 54, 71, 98, 116, 137, 151, 155, 160, 171, 228} func (i EnvironmentFlag) String() string { if i < 0 || i >= EnvironmentFlag(len(_EnvironmentFlag_index)-1) {