// Integration tests that verify the behaviour of the CSR auto-approving controller. func TestController_AutoApproval(t *testing.T) { … } const interval … const timeout … func waitForCertificateRequestApproved(client clientset.Interface, name string) error { … } func ensureCertificateRequestNotApproved(client clientset.Interface, name string) error { … } func grantUserNodeClientPermissions(t *testing.T, client clientset.Interface, username string, selfNodeClient bool) { … } func buildNodeClientRoleForUser(name string, resourceType string) *rbacv1.ClusterRole { … }