예제 #1
0
def test_docker_args(qemu, cloud_config):
    v = SSH(qemu, ssh_command).check_output('''
ps -ef | grep docker
    '''.strip())

    expected = string.join(cloud_config['rancher']['docker']['args'])

    assert v.find(expected) != -1
예제 #2
0
def test_docker_args(qemu, cloud_config):
    v = SSH(qemu, ssh_command).check_output('''
ps -ef | grep docker
    '''.strip())

    expected = string.join(cloud_config['rancher']['docker']['args'])

    assert v.find(expected) != -1
예제 #3
0
def test_reboot_with_container_running(qemu):
    try:
        SSH(qemu, ssh_command).check_call('''
set -ex
docker run -d --restart=always %(image)s
sudo reboot
    '''.strip() % {'image': nginx[u.arch]})
    except:
        pass

    time.sleep(3)

    v = SSH(qemu, ssh_command).check_output('''
docker ps -f status=running
    '''.strip())

    assert v.find('nginx') != -1
def test_reboot_with_container_running(qemu):
    try:
        SSH(qemu, ssh_command).check_call('''
set -ex
docker run -d --restart=always %(image)s
sudo reboot
    '''.strip() % {'image': nginx[u.arch]})
    except:
        pass

    time.sleep(3)

    v = SSH(qemu, ssh_command).check_output('''
docker ps -f status=running
    '''.strip())

    assert v.find('nginx') != -1
예제 #5
0
def test_dhcpcd(qemu, cloud_config):
    v = SSH(qemu, ssh_command).check_output('''
ps -ef | grep dhcpcd
    '''.strip())

    assert v.find('dhcpcd -M') != -1
예제 #6
0
def test_dhcpcd(qemu, cloud_config):
    v = SSH(qemu, ssh_command).check_output('''
ps -ef | grep dhcpcd
    '''.strip())

    assert v.find('dhcpcd -M') != -1