Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package integrationtesting_test
import (
"fmt"
"maps"
"os"
"path/filepath"
"slices"
"testing"
Expand Down Expand Up @@ -76,16 +75,10 @@ func runQueryPlanConsistencyForFile(t *testing.T, filePath string) {
runQueryPlanAssertions(t, handle)

t.Run("lookup_resources", func(t *testing.T) {
if os.Getenv("TEST_QUERY_PLAN_RESOURCES") == "" {
t.Skip("Skipping IterResources tests: set TEST_QUERY_PLAN_RESOURCES=true to enable")
}
runQueryPlanLookupResources(t, handle)
})

t.Run("lookup_subjects", func(t *testing.T) {
if os.Getenv("TEST_QUERY_PLAN_SUBJECTS") == "" {
t.Skip("Skipping IterSubjects tests: set TEST_QUERY_PLAN_SUBJECTS=true to enable")
}
runQueryPlanLookupSubjects(t, handle)
})
}
Expand Down Expand Up @@ -319,11 +312,6 @@ func testQueryPlanForEachResourceType(

// TestAccessibilitySetMethods tests the various methods of the AccessibilitySet
// to ensure they work correctly and provide code coverage.
//
// NOTE: This test exists to provide coverage for AccessibilitySet methods
// that are otherwise only exercised when TEST_QUERY_PLAN_RESOURCES or TEST_QUERY_PLAN_SUBJECTS
// environment flags are set. This test should be removed when those flags are removed and
// the corresponding tests run unconditionally.
func TestAccessibilitySetMethods(t *testing.T) {
t.Parallel()
require := require.New(t)
Expand Down
Loading