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:
@@ -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
|
||||
|
Reference in New Issue
Block a user