Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)