const defConfigMapName … const defConfigMapNamespace … const defUsernameHeadersKey … const defUIDHeadersKey … const defGroupHeadersKey … const defExtraHeaderPrefixesKey … const defAllowedClientNamesKey … type expectedHeadersHolder … func TestRequestHeaderAuthRequestController(t *testing.T) { … } func TestRequestHeaderAuthRequestControllerPreserveState(t *testing.T) { … } func TestRequestHeaderAuthRequestControllerSyncOnce(t *testing.T) { … } func defaultConfigMap(t *testing.T, usernameHeaderVal, uidHeaderVal, groupHeadersVal, extraHeaderPrefixesVal, allowedClientNamesVal []string) *corev1.ConfigMap { … } func newDefaultTarget() *RequestHeaderAuthRequestController { … } func validateExpectedHeaders(t *testing.T, target *RequestHeaderAuthRequestController, expected expectedHeadersHolder) { … }