// ensures the hard PodAntiAffinity is denied if it defines TopologyKey other than kubernetes.io/hostname. // TODO: Add test case "invalid topologyKey in requiredDuringSchedulingRequiredDuringExecution then admission fails" // after RequiredDuringSchedulingRequiredDuringExecution is implemented. func TestInterPodAffinityAdmission(t *testing.T) { … } func TestHandles(t *testing.T) { … } // TestOtherResources ensures that this admission controller is a no-op for other resources, // subresources, and non-pods. func TestOtherResources(t *testing.T) { … }