summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-04-27 15:12:57 -0600
committerMatthew Heon <matthew.heon@pm.me>2022-05-03 13:38:26 -0400
commit9f6131e9c014cebac422c9f1e8def3bfe4ad8330 (patch)
tree3545a1adaf306459113ba1b5d0f647102185fe31 /test
parentecc39b5958d4a51fa701932b98fab0a45f4c1893 (diff)
downloadpodman-9f6131e9c014cebac422c9f1e8def3bfe4ad8330.tar.gz
podman-9f6131e9c014cebac422c9f1e8def3bfe4ad8330.tar.bz2
podman-9f6131e9c014cebac422c9f1e8def3bfe4ad8330.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/create_test.go2
-rw-r--r--test/e2e/generate_kube_test.go6
2 files changed, 5 insertions, 3 deletions
diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go
index 9b1340a2c..d0813459d 100644
--- a/test/e2e/create_test.go
+++ b/test/e2e/create_test.go
@@ -448,7 +448,7 @@ var _ = Describe("Podman create", func() {
inspect.WaitWithDefaultTimeout()
data := inspect.InspectContainerToJSON()
Expect(data).To(HaveLen(1))
- Expect(data[0].HostConfig).To(HaveField("MemorySwap", int64(2 * numMem)))
+ Expect(data[0].HostConfig).To(HaveField("MemorySwap", int64(2*numMem)))
})
It("podman create --cpus 5 sets nanocpus", func() {
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go
index cddf87b74..c92c1519f 100644
--- a/test/e2e/generate_kube_test.go
+++ b/test/e2e/generate_kube_test.go
@@ -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() {