mirror of https://github.com/containers/podman.git
Three manual fixes
Two for this error:
invalid indirect of pod.Spec.DNSConfig.Options[0]
...and one for a gofmt error (spaces).
Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
b3f38c31b2
commit
a5aea8e503
|
|
@ -777,7 +777,8 @@ var _ = Describe("Podman generate kube", func() {
|
|||
Expect(pod.Spec.DNSConfig.Searches).To(ContainElement("foobar.com"))
|
||||
Expect(len(pod.Spec.DNSConfig.Options)).To(BeNumerically(">", 0))
|
||||
Expect(pod.Spec.DNSConfig.Options[0]).To(HaveField("Name", "color"))
|
||||
Expect(*pod.Spec.DNSConfig.Options[0]).To(HaveField("Value", "blue"))
|
||||
s := "blue"
|
||||
Expect(pod.Spec.DNSConfig.Options[0]).To(HaveField("Value", &s))
|
||||
})
|
||||
|
||||
It("podman generate kube multiple container dns servers and options are cumulative", func() {
|
||||
|
|
@ -820,7 +821,8 @@ var _ = Describe("Podman generate kube", func() {
|
|||
Expect(pod.Spec.DNSConfig.Searches).To(ContainElement("foobar.com"))
|
||||
Expect(len(pod.Spec.DNSConfig.Options)).To(BeNumerically(">", 0))
|
||||
Expect(pod.Spec.DNSConfig.Options[0]).To(HaveField("Name", "color"))
|
||||
Expect(*pod.Spec.DNSConfig.Options[0]).To(HaveField("Value", "blue"))
|
||||
s := "blue"
|
||||
Expect(pod.Spec.DNSConfig.Options[0]).To(HaveField("Value", &s))
|
||||
})
|
||||
|
||||
It("podman generate kube - set entrypoint as command", func() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue