1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 15:09:27 +00:00

test_rancher_network - wip

This commit is contained in:
Ivan Mikushin
2015-05-08 19:39:09 +05:00
parent 3eefe3785b
commit 4d594b768f
2 changed files with 18 additions and 1 deletions

View File

@@ -36,3 +36,15 @@ def test_rancher_environment(qemu, cloud_config_01):
stderr=subprocess.STDOUT, universal_newlines=True)
assert v.strip() == cloud_config_01['rancher']['environment']['FLANNEL_NETWORK']
@pytest.mark.timeout(40)
def test_rancher_network(qemu, cloud_config_01):
assert qemu is not None
u.wait_for_ssh(ssh_command)
v = subprocess.check_output(
ssh_command + ['ip', 'route', 'get', 'to', '10.10.10.10'],
stderr=subprocess.STDOUT, universal_newlines=True)
assert v.split(' ')[2] == cloud_config_01['rancher']['network']['interfaces']['eth0']['gateway']