Пример #1
0
def test_create_container_with_volumes():
    container = ctn.create("bioboxes/velvet", "default", ["/host:/cont:ro"])
    attr = ctn.client().inspect_container(container)
    nose.assert_in("/host", attr["Volumes"])
    if not hlpr.is_ci_server():
        attr = ctn.client().remove_container(container)
Пример #2
0
def test_create_container_with_volumes():
    container = ctn.create("bioboxes/velvet", "default", ["/host:/cont:ro"])
    attr = ctn.client().inspect_container(container)
    nose.assert_in("/host", attr["Volumes"])
    if not hlpr.is_ci_server():
        attr = ctn.client().remove_container(container)
Пример #3
0
def test_create_container_with_no_volumes():
    container = ctn.create("bioboxes/velvet", "default")
    attr = ctn.client().inspect_container(container)
    nose.assert_equal(attr["Volumes"], {})
    if not hlpr.is_ci_server():
        attr = ctn.client().remove_container(container)
Пример #4
0
def test_create_container_with_no_volumes():
    container = ctn.create("bioboxes/velvet", "default")
    attr = ctn.client().inspect_container(container)
    nose.assert_equal(attr["Volumes"], {})
    if not hlpr.is_ci_server():
        attr = ctn.client().remove_container(container)