Skip to content

Commit

Permalink
Moving cloudstack registry mirror regex checks (aws#5873)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokearu authored May 15, 2023
1 parent 7e40ffb commit a11b7eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/test/e2e/registryMirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (e *E2ESession) setupRegistryMirrorEnv(testRegex string) error {

// Since Tinkerbell uses a separate harbor registry,
// we need to setup cert for that registry for Tinkerbell tests.
re = regexp.MustCompile(`^.*(Tinkerbell|CloudStack).*$`)
re = regexp.MustCompile(`^.*Tinkerbell.*$`)
if re.MatchString(testRegex) {
endpoint = e.testEnvVars[e2etests.RegistryEndpointTinkerbellVar]
port = e.testEnvVars[e2etests.RegistryPortTinkerbellVar]
Expand All @@ -44,12 +44,12 @@ func (e *E2ESession) setupRegistryMirrorEnv(testRegex string) error {
}

// Since Authenticated tests needs to use separate harbor registries.
re = regexp.MustCompile(`^.*VSphere.*Authenticated.*$`)
re = regexp.MustCompile(`^.*(VSphere|CloudStack).*Authenticated.*$`)
if re.MatchString(testRegex) {
endpoint = e.testEnvVars[e2etests.PrivateRegistryEndpointVar]
port = e.testEnvVars[e2etests.PrivateRegistryPortVar]
caCert = e.testEnvVars[e2etests.PrivateRegistryCACertVar]
} else if re = regexp.MustCompile(`^.*(Tinkerbell|CloudStack).*Authenticated.*$`); re.MatchString(testRegex) {
} else if re = regexp.MustCompile(`^.*Tinkerbell.*Authenticated.*$`); re.MatchString(testRegex) {
endpoint = e.testEnvVars[e2etests.PrivateRegistryEndpointTinkerbellVar]
port = e.testEnvVars[e2etests.PrivateRegistryPortTinkerbellVar]
caCert = e.testEnvVars[e2etests.PrivateRegistryCACertTinkerbellVar]
Expand Down

0 comments on commit a11b7eb

Please sign in to comment.