From 49598cce63c40b397d68eb7dd6a1566ba2b3145b Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Thu, 22 Aug 2024 22:20:53 +0200 Subject: [PATCH] Fix copy/paste error --- bundle/permissions/permission_diagnostics_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bundle/permissions/permission_diagnostics_test.go b/bundle/permissions/permission_diagnostics_test.go index fa913df9..a1051484 100644 --- a/bundle/permissions/permission_diagnostics_test.go +++ b/bundle/permissions/permission_diagnostics_test.go @@ -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) }