mirror of https://github.com/databricks/cli.git
Snooze mlops-stacks integration test (#2063)
## Changes https://github.com/databricks/mlops-stacks/pull/187 broke mlops-stacks deployments for non-UC projects. Snoozing the test until upstream is fixed. ## Tests The test is skipped on my local machine. CI run will verify it's also skipped on Github Actions runners.
This commit is contained in:
parent
cae21693bb
commit
509f5aba6a
|
@ -39,6 +39,8 @@ func TestBundleInitErrorOnUnknownFields(t *testing.T) {
|
|||
// make changes that can break the MLOps Stacks DAB. In which case we should
|
||||
// skip this test until the MLOps Stacks DAB is updated to work again.
|
||||
func TestBundleInitOnMlopsStacks(t *testing.T) {
|
||||
testutil.SkipUntil(t, "2025-01-09")
|
||||
|
||||
ctx, wt := acc.WorkspaceTest(t)
|
||||
w := wt.W
|
||||
|
||||
|
|
|
@ -5,6 +5,9 @@ import (
|
|||
"math/rand"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// GetEnvOrSkipTest proceeds with test only with that env variable.
|
||||
|
@ -30,3 +33,12 @@ func RandomName(prefix ...string) string {
|
|||
}
|
||||
return string(b)
|
||||
}
|
||||
|
||||
func SkipUntil(t TestingT, date string) {
|
||||
deadline, err := time.Parse(time.DateOnly, date)
|
||||
require.NoError(t, err)
|
||||
|
||||
if time.Now().Before(deadline) {
|
||||
t.Skipf("Skipping test until %s. Time right now: %s", deadline.Format(time.DateOnly), time.Now())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue