Skip to content

Commit

Permalink
don't create cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny Chen committed Nov 29, 2023
1 parent 5d424dd commit 151cf25
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,17 +396,17 @@ func setup(ctx context.Context) error {

osClusterVersion = os.Getenv("OS_CLUSTER_VERSION")

if os.Getenv("CI") != "" { // always create cluster in CI
cluster, err := cluster.New(log, _env, os.Getenv("CI") != "")
if err != nil {
return err
}
// if os.Getenv("CI") != "" { // always create cluster in CI
// cluster, err := cluster.New(log, _env, os.Getenv("CI") != "")
// if err != nil {
// return err
// }

err = cluster.Create(ctx, vnetResourceGroup, clusterName, osClusterVersion)
if err != nil {
return err
}
}
// err = cluster.Create(ctx, vnetResourceGroup, clusterName, osClusterVersion)
// if err != nil {
// return err
// }
// }

clusterResourceID = resourceIDFromEnv()

Expand Down Expand Up @@ -436,7 +436,7 @@ func done(ctx context.Context) error {
}

var _ = BeforeSuite(func() {
log.Info("BeforeSuite e2e only")
log.Info("BeforeSuite chiac e2e test")

SetDefaultEventuallyTimeout(DefaultEventuallyTimeout)
SetDefaultEventuallyPollingInterval(10 * time.Second)
Expand All @@ -450,7 +450,7 @@ var _ = BeforeSuite(func() {
})

var _ = AfterSuite(func() {
log.Info("AfterSuite e2e only")
log.Info("AfterSuite chiac e2e test")

// if err := done(context.Background()); err != nil {
// if oDataError, ok := err.(msgraph_errors.ODataErrorable); ok {
Expand Down

0 comments on commit 151cf25

Please sign in to comment.