Skip to content

Commit ed5eab3

Browse files
committed
Add integration test for registry.cluster.local DNS resolution from pods
Runs nslookup from the busybox pod to verify CoreDNS fallthrough resolves bink-managed DNS names inside the cluster. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Alice Frosi <afrosi@redhat.com>
1 parent 89fdd63 commit ed5eab3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/integration/cluster_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ var _ = Describe("Cluster Lifecycle", func() {
143143
Expect(err).ToNot(HaveOccurred())
144144
Expect(pod.Status.Phase).To(Equal(corev1.PodRunning))
145145

146+
By("Verifying pod can resolve registry.cluster.local via CoreDNS")
147+
nslookupOutput, err := helpers.PodExec(kubeconfigPath, "default", "busybox-test",
148+
[]string{"nslookup", "registry.cluster.local"})
149+
Expect(err).ToNot(HaveOccurred(), "nslookup registry.cluster.local should succeed from pod")
150+
Expect(nslookupOutput).To(ContainSubstring(config.RegistryStaticIP))
151+
146152
By("Cleaning up the busybox pod")
147153
helpers.DeletePod(kubeClient, "default", "busybox-test")
148154

0 commit comments

Comments
 (0)