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 <github@gone.nl>
(cherry picked from commit c91c3776eab95ad2784ec8ac532be17e33c94c9f)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -50,6 +50,10 @@ func TestKernelTCPMemory(t *testing.T) {
|
| 50 | 50 |
} |
| 51 | 51 |
|
| 52 | 52 |
func TestNISDomainname(t *testing.T) {
|
| 53 |
+ // Older versions of the daemon would concatenate hostname and domainname, |
|
| 54 |
+ // so hostname "foobar" and domainname "baz.cyphar.com" would produce |
|
| 55 |
+ // `foobar.baz.cyphar.com` as hostname. |
|
| 56 |
+ skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "skip test from new feature") |
|
| 53 | 57 |
skip.If(t, testEnv.DaemonInfo.OSType != "linux") |
| 54 | 58 |
|
| 55 | 59 |
defer setupTest(t)() |