Fix test with error message

This commit is contained in:
Ilya Kuznetsov 2025-01-21 18:25:26 +01:00
parent 38b7d275f7
commit 3e1a3354f0
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 1 additions and 1 deletions
bundle/config/mutator

View File

@ -108,7 +108,7 @@ func TestSetVariablesErrorsIfAValueCouldNotBeResolved(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
_, err = setVariable(context.Background(), v, &variable, "foo") _, err = setVariable(context.Background(), v, &variable, "foo")
assert.ErrorContains(t, err, "no value assigned to required variable foo. Assignment can be done through the \"--var\" or \"--var-file\" flag or by setting the BUNDLE_VAR_foo environment variable") assert.ErrorContains(t, err, "no value assigned to required variable foo. Assignment can be done using \"--var\" or \"--var-file\", by setting the BUNDLE_VAR_foo environment variable, or in .databricks/bundle/<target>/vars.json file")
} }
func TestSetVariablesMutator(t *testing.T) { func TestSetVariablesMutator(t *testing.T) {