kubernetes/test/integration/auth/svcaccttoken_test.go

const ecdsaPrivateKey

const tokenExpirationSeconds

func TestServiceAccountTokenCreate(t *testing.T) {}

func doTokenReview(t *testing.T, cs clientset.Interface, treq *authenticationv1.TokenRequest, expectErr bool) authenticationv1.UserInfo {}

func checkPayload(t *testing.T, tok string, want string, parts ...string) {}

func checkExpiration(t *testing.T, treq *authenticationv1.TokenRequest, expectedExpiration int64) {}

func getSubObject(t *testing.T, b string, parts ...string) string {}

func getPayload(t *testing.T, b string) string {}

func createDeleteSvcAcct(t *testing.T, cs clientset.Interface, sa *v1.ServiceAccount) (*v1.ServiceAccount, func()) {}

func createDeletePod(t *testing.T, cs clientset.Interface, pod *v1.Pod) (*v1.Pod, func()) {}

func createDeleteSecret(t *testing.T, cs clientset.Interface, sec *v1.Secret) (*v1.Secret, func()) {}

func createDeleteNode(t *testing.T, cs clientset.Interface, node *v1.Node) (*v1.Node, func()) {}

type recordingWarningHandler

func (r *recordingWarningHandler) HandleWarningHeader(code int, agent string, message string) {}

func (r *recordingWarningHandler) clear() {}

func (r *recordingWarningHandler) assertEqual(t *testing.T, expected []string) {}