Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNotRestRoutesHaveAuth (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go

    		}
    		if test.protected != protected {
    			t.Errorf("%d: Expected protected=%v, got protected=%v.", i, test.protected, protected)
    		}
    	}
    }
    
    // TestNotRestRoutesHaveAuth checks that special non-routes are behind authz/authn.
    func TestNotRestRoutesHaveAuth(t *testing.T) {
    	config, _ := setUp(t)
    
    	authz := mockAuthorizer{}
    
    	config.LegacyAPIGroupPrefixes = sets.NewString("/apiPrefix")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top