Fix copy/paste error

This commit is contained in:
Lennart Kats 2024-08-22 22:20:53 +02:00
parent a237dfac5c
commit 49598cce63
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
1 changed files with 3 additions and 4 deletions

View File

@ -47,10 +47,9 @@ func TestPermissionDiagnosticsPermissionDeniedWithGroup(t *testing.T) {
})
diags := permissions.ReportPossiblePermissionDenied(context.Background(), b, "testpath")
expected := "EPERM1: unable to deploy to testpath as testuser@databricks.com.\n" +
"Please make sure the current user or one of their groups is listed under the permissions of this bundle.\n" +
"For assistance, users or groups with appropriate permissions may include: testgroup@databricks.com.\n" +
"They may need to redeploy the bundle to apply the new permissions.\n" +
expected := "EPERM3: access denied while updating deployment permissions as testuser@databricks.com.\n" +
"For assistance, contact the owners of this project.\n" +
"They can redeploy the project to apply the latest set of permissions.\n" +
"Please refer to https://docs.databricks.com/dev-tools/bundles/permissions.html for more on managing permissions."
require.ErrorContains(t, diags.Error(), expected)
}