Skip to content

Commit

Permalink
automate ocp-64907
Browse files Browse the repository at this point in the history
  • Loading branch information
shellymiron authored and openshift-merge-bot[bot] committed Jan 9, 2024
1 parent b7eeee1 commit f61c327
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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

0 comments on commit f61c327

Please sign in to comment.