Moved the ROService test into the services suite #4162

This commit is contained in:
Robert Rati
2015-02-05 09:05:45 -05:00
parent eefd7ace56
commit d3e04cd246
2 changed files with 23 additions and 58 deletions

View File

@@ -154,4 +154,27 @@ var _ = Describe("Services", func() {
fmt.Printf("DNS probes using %s succeeded\n", pod.Name)
}
})
It("should provide RW and RO services", func() {
svc := api.ServiceList{}
err := c.Get().
Namespace("default").
AbsPath("/api/v1beta1/proxy/services/kubernetes-ro/api/v1beta1/services").
Do().
Into(&svc)
if err != nil {
Fail(fmt.Sprintf("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))
})
})