Update tests for new CSR duration code
Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
parent
a027f1ae2c
commit
724acdca1d
@ -965,6 +965,7 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl
|
|||||||
csrPEM,
|
csrPEM,
|
||||||
"",
|
"",
|
||||||
certificatesv1.KubeAPIServerClientSignerName,
|
certificatesv1.KubeAPIServerClientSignerName,
|
||||||
|
nil,
|
||||||
[]certificatesv1.KeyUsage{certificatesv1.UsageClientAuth},
|
[]certificatesv1.KeyUsage{certificatesv1.UsageClientAuth},
|
||||||
privateKey,
|
privateKey,
|
||||||
)
|
)
|
||||||
@ -2319,6 +2320,7 @@ func getUIDAndExtraViaCSR(ctx context.Context, t *testing.T, uid string, client
|
|||||||
csrPEM,
|
csrPEM,
|
||||||
"",
|
"",
|
||||||
certificatesv1.KubeAPIServerClientSignerName,
|
certificatesv1.KubeAPIServerClientSignerName,
|
||||||
|
nil,
|
||||||
[]certificatesv1.KeyUsage{certificatesv1.UsageClientAuth},
|
[]certificatesv1.KeyUsage{certificatesv1.UsageClientAuth},
|
||||||
privateKey,
|
privateKey,
|
||||||
)
|
)
|
||||||
|
@ -274,6 +274,7 @@ func TestWhoAmI_CSR(t *testing.T) {
|
|||||||
csrPEM,
|
csrPEM,
|
||||||
"",
|
"",
|
||||||
certificatesv1.KubeAPIServerClientSignerName,
|
certificatesv1.KubeAPIServerClientSignerName,
|
||||||
|
nil,
|
||||||
[]certificatesv1.KeyUsage{certificatesv1.UsageClientAuth},
|
[]certificatesv1.KeyUsage{certificatesv1.UsageClientAuth},
|
||||||
privateKey,
|
privateKey,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user