1
0
mirror of https://github.com/rancher/os.git synced 2025-09-09 02:31:36 +00:00

Integration tests for DNS configuration in cloud config

This commit is contained in:
Josh Curl
2016-04-10 16:38:07 -07:00
parent 2a99724fbf
commit 3c78335edf
3 changed files with 36 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ def qemu(request):
return q
def test_network_conf(qemu):
def test_network_interfaces_conf(qemu):
SSH(qemu).check_call('''cat > test-merge << "SCRIPT"
set -x -e
@@ -37,6 +37,19 @@ sudo bash test-merge
'''.strip())
def test_network_dns_conf(qemu):
SSH(qemu).check_call('''cat > test-merge << "SCRIPT"
set -x -e
cat /etc/resolv.conf | grep "search mydomain.com example.com"
cat /etc/resolv.conf | grep "nameserver 208.67.222.123"
cat /etc/resolv.conf | grep "nameserver 208.67.220.123"
SCRIPT
sudo bash test-merge
'''.strip())
def test_network_dns_ros_set(qemu):
SSH(qemu).check_call('''
set -x -e