add v1 to hack/test-integration.sh
This commit is contained in:
@@ -397,6 +397,7 @@ func TestAuthModeAlwaysAllow(t *testing.T) {
|
||||
APIPrefix: "/api",
|
||||
Authorizer: apiserver.NewAlwaysAllowAuthorizer(),
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -537,6 +538,7 @@ func TestAuthModeAlwaysDeny(t *testing.T) {
|
||||
APIPrefix: "/api",
|
||||
Authorizer: apiserver.NewAlwaysDenyAuthorizer(),
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -605,6 +607,7 @@ func TestAliceNotForbiddenOrUnauthorized(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: allowAliceAuthorizer{},
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
previousResourceVersion := make(map[string]float64)
|
||||
@@ -692,6 +695,7 @@ func TestBobIsForbidden(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: allowAliceAuthorizer{},
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -753,6 +757,7 @@ func TestUnknownUserIsUnauthorized(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: allowAliceAuthorizer{},
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
@@ -833,6 +838,7 @@ func TestNamespaceAuthorization(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: a,
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
previousResourceVersion := make(map[string]float64)
|
||||
@@ -948,6 +954,7 @@ func TestKindAuthorization(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: a,
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
previousResourceVersion := make(map[string]float64)
|
||||
@@ -1050,6 +1057,7 @@ func TestReadOnlyAuthorization(t *testing.T) {
|
||||
Authenticator: getTestTokenAuth(),
|
||||
Authorizer: a,
|
||||
AdmissionControl: admit.NewAlwaysAdmit(),
|
||||
EnableV1: true,
|
||||
})
|
||||
|
||||
transport := http.DefaultTransport
|
||||
|
Reference in New Issue
Block a user