Skip to content

Commit

Permalink
Skip tests for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
mociarain committed Jul 17, 2024
1 parent d666f50 commit b05cc92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ var (
)

func skipIfNotInDevelopmentEnv() {
if !_env.IsLocalDevelopmentMode() {
if _env.IsLocalDevelopmentMode() {
Skip("skipping tests in non-development environment")
}
}

func skipIfSeleniumNotEnabled() {
if os.Getenv("ARO_SELENIUM_HOSTNAME") == "" {
if os.Getenv("ARO_SELENIUM_HOSTNAME") != "" {
Skip("ARO_SELENIUM_HOSTNAME not set, skipping portal e2e")
}
}

func skipIfNotHiveManagedCluster(adminAPICluster *admin.OpenShiftCluster) {
if adminAPICluster.Properties.HiveProfile == (admin.HiveProfile{}) {
if adminAPICluster.Properties.HiveProfile != (admin.HiveProfile{}) {
Skip("skipping tests because this ARO cluster has not been created/adopted by Hive")
}
}
Expand Down

0 comments on commit b05cc92

Please sign in to comment.