From abc2f3c825e1e445ba561d62118025120d07928f Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:16:24 +0530 Subject: [PATCH] Fix `TestAccBundleInitOnMlopsStacks` (#1924) ## Changes The ML production team modified mlops-stack to use `mode: development` for their development target here: https://github.com/databricks/mlops-stacks/pull/174 This PR makes the integration test assertion agnostic of the prefix to make it pass again. ## Tests The test passes now --- internal/init_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/init_test.go b/internal/init_test.go index a6241d62..25bfc19d 100644 --- a/internal/init_test.go +++ b/internal/init_test.go @@ -97,7 +97,7 @@ func TestAccBundleInitOnMlopsStacks(t *testing.T) { require.NoError(t, err) job, err := w.Jobs.GetByJobId(context.Background(), batchJobId) assert.NoError(t, err) - assert.Equal(t, fmt.Sprintf("dev-%s-batch-inference-job", projectName), job.Settings.Name) + assert.Contains(t, job.Settings.Name, fmt.Sprintf("dev-%s-batch-inference-job", projectName)) } func TestAccBundleInitHelpers(t *testing.T) {