Skip to content

Commit

Permalink
Disable VM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saffronjam committed Jun 3, 2024
1 parent 0af4995 commit 5ccf9f5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions test/acc/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
"github.com/google/uuid"
)

const (
VmTestsEnabled = false
)

func Setup() {
err := log.SetupLogger(mode.Test)
if err != nil {
Expand Down
9 changes: 9 additions & 0 deletions test/acc/subsystems/k8s/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@ package k8s
import (
"github.com/stretchr/testify/assert"
"go-deploy/test"
"go-deploy/test/acc"
"testing"
)

func TestCreateVM(t *testing.T) {
if !acc.VmTestsEnabled {
t.Skip("vm tests are disabled")
}

t.Parallel()

c, _ := withContext(t)
withDefaultVM(t, c)
}

func TestUpdateVM(t *testing.T) {
if !acc.VmTestsEnabled {
t.Skip("vm tests are disabled")
}

t.Parallel()

c, _ := withContext(t)
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const (
CheckInterval = 1 * time.Second
MaxChecks = 3600 // 1 hour

// VmTestsEnabled flag is used temporarily to enable V2 tests until V2 zone is fully operational
VmTestsEnabled = true
VmTestsEnabled = false
)

func GetUserID(user string) string {
Expand Down

0 comments on commit 5ccf9f5

Please sign in to comment.