Skip to content

Commit 6ccb246

Browse files
denikIsaac
andcommitted
bundle: update validate:engine unit test for the removal error
The terraform engine is now rejected with an error, not a deprecation warning. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 042111a commit 6ccb246

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎bundle/config/validate/validate_engine_test.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestValidateEngineDirect(t *testing.T) {
2525
assert.Empty(t, diags)
2626
}
2727

28-
func TestValidateEngineTerraformDeprecated(t *testing.T) {
28+
func TestValidateEngineTerraformRemoved(t *testing.T) {
2929
b := &bundle.Bundle{
3030
Config: config.Root{
3131
Bundle: config.Bundle{
@@ -37,8 +37,8 @@ func TestValidateEngineTerraformDeprecated(t *testing.T) {
3737
bundletest.SetLocation(b, "bundle.engine", []dyn.Location{loc})
3838
diags := ValidateEngine().Apply(t.Context(), b)
3939
assert.Len(t, diags, 1)
40-
assert.Equal(t, diag.Warning, diags[0].Severity)
41-
assert.Contains(t, diags[0].Summary, "deprecated")
40+
assert.Equal(t, diag.Error, diags[0].Severity)
41+
assert.Contains(t, diags[0].Summary, "has been removed")
4242
assert.Equal(t, []dyn.Location{loc}, diags[0].Locations)
4343
}
4444

0 commit comments

Comments
 (0)