aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/tests/test_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/tests/test_cli.py')
-rw-r--r--os_net_config/tests/test_cli.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/os_net_config/tests/test_cli.py b/os_net_config/tests/test_cli.py
index d3de720..310a527 100644
--- a/os_net_config/tests/test_cli.py
+++ b/os_net_config/tests/test_cli.py
@@ -112,3 +112,12 @@ class TestCli(base.TestCase):
for dev in sanity_devices:
self.assertIn(dev, stdout_yaml)
self.assertEqual(stdout_yaml, stdout_json)
+
+ def test_bridge_noop_rootfs(self):
+ for provider in ('ifcfg', 'eni'):
+ bond_yaml = os.path.join(SAMPLE_BASE, 'bridge_dhcp.yaml')
+ stdout_yaml, stderr = self.run_cli('ARG0 --provider=%s --noop '
+ '--root-dir=/rootfs '
+ '-c %s' % (provider, bond_yaml))
+ self.assertEqual('', stderr)
+ self.assertIn('File: /rootfs/', stdout_yaml)