summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-25 17:35:52 +0100
committerGitHub <noreply@github.com>2021-01-25 17:35:52 +0100
commitcd62d372e5195e553abb8d0e4b05c726cb488b02 (patch)
tree757af6be01afe55b05399f520b8a71294be162b7 /test
parentb4b78382cd813449497157550a7b0f66adecef91 (diff)
parent393a8f02612518e9715669d1cf2d7ceb101f5079 (diff)
downloadpodman-cd62d372e5195e553abb8d0e4b05c726cb488b02.tar.gz
podman-cd62d372e5195e553abb8d0e4b05c726cb488b02.tar.bz2
podman-cd62d372e5195e553abb8d0e4b05c726cb488b02.zip
Merge pull request #9057 from baude/dnsnameinternal
disable dnsname when --internal
Diffstat (limited to 'test')
-rw-r--r--test/e2e/network_create_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/e2e/network_create_test.go b/test/e2e/network_create_test.go
index 73e18cbce..1bf2a2691 100644
--- a/test/e2e/network_create_test.go
+++ b/test/e2e/network_create_test.go
@@ -375,4 +375,21 @@ var _ = Describe("Podman network create", func() {
Expect(nc).To(ExitWithError())
})
+ It("podman network create with internal should not have dnsname", func() {
+ net := "internal-test" + stringid.GenerateNonCryptoID()
+ nc := podmanTest.Podman([]string{"network", "create", "--internal", net})
+ nc.WaitWithDefaultTimeout()
+ defer podmanTest.removeCNINetwork(net)
+ Expect(nc.ExitCode()).To(BeZero())
+ // Not performing this check on remote tests because it is a logrus error which does
+ // not come back via stderr on the remote client.
+ if !IsRemote() {
+ Expect(nc.ErrorToString()).To(ContainSubstring("dnsname and --internal networks are incompatible"))
+ }
+ nc = podmanTest.Podman([]string{"network", "inspect", net})
+ nc.WaitWithDefaultTimeout()
+ Expect(nc.ExitCode()).To(BeZero())
+ Expect(nc.OutputToString()).ToNot(ContainSubstring("dnsname"))
+ })
+
})