spanner: skip dasbhoard RBAC e2e tests for spanner (#104043)

* skip dasbhoard RBAC e2e for spanner

* annotations also relying on dashboard find
This commit is contained in:
Georges Chaudy
2025-04-29 15:50:45 -05:00
committed by GitHub
parent 4d7a4eba54
commit a4f6953f27
3 changed files with 17 additions and 2 deletions
@@ -204,6 +204,10 @@ func TestIntegrationAnnotationListingWithInheritedRBAC(t *testing.T) {
t.Skip("skipping integration test")
}
if db.IsTestDBSpanner() {
t.Skip("skipping integration test")
}
orgID := int64(1)
permissions := []accesscontrol.Permission{
{
@@ -235,6 +235,9 @@ func TestIntegrationDashboardInheritedFolderRBAC(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
if db.IsTestDBSpanner() {
t.Skip("skipping integration test")
}
// the maximux nested folder hierarchy starting from parent down to subfolders
nestedFolders := make([]*folder.Folder, 0, folder.MaxNestedFolderDepth+1)
@@ -445,7 +445,9 @@ func TestIntegration_DashboardNestedPermissionFilter(t *testing.T) {
expectedResult: []string{"parent"},
},
}
if db.IsTestDBSpanner() {
t.Skip("skipping integration test")
}
origNewGuardian := guardian.New
guardian.MockDashboardGuardian(&guardian.FakeDashboardGuardian{CanViewValue: true, CanSaveValue: true})
t.Cleanup(func() {
@@ -558,7 +560,9 @@ func TestIntegration_DashboardNestedPermissionFilter_WithSelfContainedPermission
expectedResult: []string{"parent"},
},
}
if db.IsTestDBSpanner() {
t.Skip("skipping integration test")
}
origNewGuardian := guardian.New
guardian.MockDashboardGuardian(&guardian.FakeDashboardGuardian{CanViewValue: true, CanSaveValue: true})
t.Cleanup(func() {
@@ -672,6 +676,10 @@ func TestIntegration_DashboardNestedPermissionFilter_WithActionSets(t *testing.T
},
}
if db.IsTestDBSpanner() {
t.Skip("skipping integration test")
}
origNewGuardian := guardian.New
guardian.MockDashboardGuardian(&guardian.FakeDashboardGuardian{CanViewValue: true, CanSaveValue: true})
t.Cleanup(func() {