mirror of https://github.com/k3s-io/k3s
fix e2e service test to not reference ro service
parent
b15efbc2f5
commit
abb00f1cfc
|
@ -67,26 +67,9 @@ var _ = Describe("Services", func() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// TODO: We get coverage of TCP/UDP and multi-port services through the DNS test. We should have a simpler test for multi-port TCP here.
|
// TODO: We get coverage of TCP/UDP and multi-port services through the DNS test. We should have a simpler test for multi-port TCP here.
|
||||||
It("should provide RW and RO services", func() {
|
It("should provide secure master service", func() {
|
||||||
svc := api.ServiceList{}
|
_, err := c.Services(api.NamespaceDefault).Get("kubernetes")
|
||||||
err := c.Get().
|
Expect(err).NotTo(HaveOccurred())
|
||||||
AbsPath("/api/v1beta3/proxy/namespaces/default/services/kubernetes-ro/api/v1beta3/services").
|
|
||||||
Do().
|
|
||||||
Into(&svc)
|
|
||||||
if err != nil {
|
|
||||||
Failf("unexpected error listing services using ro service: %v", err)
|
|
||||||
}
|
|
||||||
var foundRW, foundRO bool
|
|
||||||
for i := range svc.Items {
|
|
||||||
if svc.Items[i].Name == "kubernetes" {
|
|
||||||
foundRW = true
|
|
||||||
}
|
|
||||||
if svc.Items[i].Name == "kubernetes-ro" {
|
|
||||||
foundRO = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Expect(foundRW).To(Equal(true))
|
|
||||||
Expect(foundRO).To(Equal(true))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should serve a basic endpoint from pods", func(done Done) {
|
It("should serve a basic endpoint from pods", func(done Done) {
|
||||||
|
|
Loading…
Reference in New Issue