Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add qe_usage var env to track leakages #488

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/ci/profile_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ func GenerateClusterCreationArgsByProfile(token string, profile *Profile) (clust
profile.Version = PrepareVersion(RHCSConnection, profile.Version, profile.ChannelGroup, profile)

clusterArgs = &EXE.ClusterCreationArgs{
// Token: token,
OpenshiftVersion: profile.Version,
}

Expand Down
4 changes: 4 additions & 0 deletions tests/utils/constants/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type RHCSconfig struct {
RHCSEnv string `env:"RHCS_ENV" default:"staging" yaml:"env"`
ClusterProfile string `env:"CLUSTER_PROFILE" yaml:"clusterProfile,omitempty"`
ClusterProfileDir string `env:"CLUSTER_PROFILE_DIR" yaml:"clusterProfileDir,omitempty"`
QEUsage string `env:"QE_USAGE" default:"" yaml:"qeUsage,omitempty"`
RhcsOutputDir string
YAMLProfilesDir string
RootDir string
Expand All @@ -48,6 +49,9 @@ func init() {
if os.Getenv("CLUSTER_PROFILE_DIR") != "" {
RHCS.ClusterProfileDir = os.Getenv("CLUSTER_PROFILE_DIR")
}
if os.Getenv("QE_USAGE") != "" {
RHCS.QEUsage = os.Getenv("QE_USAGE")
}

RHCS.RhcsOutputDir = GetRHCSOutputDir()
RHCS.KubeConfigDir = GetKubeConfigDir()
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/constants/profile_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (
DefaultMPLabels = map[string]string{
"test1": "testdata1",
}
CustomProperties = map[string]string{"custom_property": "test"}
CustomProperties = map[string]string{"custom_property": "test", "qe_usage": RHCS.QEUsage}
LdapURL = "ldap://ldap.forumsys.com/dc=example,dc=com?uid"
GitLabURL = "https://gitlab.cee.redhat.com"
Organizations = []string{"openshift"}
Expand Down
Loading