diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-22 05:40:05 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-22 05:40:05 -0400 |
commit | 7f0871dc5b141ff4bf601b6d96021eba8a3bb0ec (patch) | |
tree | aafd702015714ab95b5eb681d18053fe5b628fd5 /tests/unittests/test_distros | |
parent | 4445b881380a39a56490d8a8f9e07bba4540ec62 (diff) | |
download | vyos-cloud-init-7f0871dc5b141ff4bf601b6d96021eba8a3bb0ec.tar.gz vyos-cloud-init-7f0871dc5b141ff4bf601b6d96021eba8a3bb0ec.zip |
write to 50-cloud-init.cfg and write systemd.link rules.
Diffstat (limited to 'tests/unittests/test_distros')
-rw-r--r-- | tests/unittests/test_distros/test_netconfig.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_distros/test_netconfig.py b/tests/unittests/test_distros/test_netconfig.py index 6d30c5b8..2c2a424d 100644 --- a/tests/unittests/test_distros/test_netconfig.py +++ b/tests/unittests/test_distros/test_netconfig.py @@ -109,8 +109,9 @@ class TestNetCfgDistro(TestCase): ub_distro.apply_network(BASE_NET_CFG, False) self.assertEquals(len(write_bufs), 1) - self.assertIn('/etc/network/interfaces', write_bufs) - write_buf = write_bufs['/etc/network/interfaces'] + eni_name = '/etc/network/interfaces.d/50-cloud-init.cfg' + self.assertIn(eni_name, write_bufs) + write_buf = write_bufs[eni_name] self.assertEquals(str(write_buf).strip(), BASE_NET_CFG.strip()) self.assertEquals(write_buf.mode, 0o644) |