From c91c3776eab95ad2784ec8ac532be17e33c94c9f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 19 Apr 2019 18:51:33 +0200 Subject: [PATCH] Skip TestNISDomainname on API < 1.40 Older versions of the daemon would concatenate hostname and domainname, so hostname "foobar" and domainname "baz.cyphar.com" would produce `foobar.baz.cyphar.com` as hostname. Signed-off-by: Sebastiaan van Stijn --- integration/container/run_linux_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/container/run_linux_test.go b/integration/container/run_linux_test.go index dfdde57ca0..ec088ecad7 100644 --- a/integration/container/run_linux_test.go +++ b/integration/container/run_linux_test.go @@ -50,6 +50,10 @@ func TestKernelTCPMemory(t *testing.T) { } func TestNISDomainname(t *testing.T) { + // Older versions of the daemon would concatenate hostname and domainname, + // so hostname "foobar" and domainname "baz.cyphar.com" would produce + // `foobar.baz.cyphar.com` as hostname. + skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "skip test from new feature") skip.If(t, testEnv.DaemonInfo.OSType != "linux") defer setupTest(t)()