Esempio n. 1
0
def test_mult_slashes_mult_colon_1_dash():
    image_name = "scotstanws.azurecr.io/d83f2142-1c3c-4ae4-84fa-4e9ff3aa5ed9/circle:2:linux-arm32"
    assert docker.get_image_info(image_name, 0).short_name == "circle:2"
Esempio n. 2
0
def test_no_slash_multi_colon_multi_dash():
    image_name = "den1:3:4-linux-v32"
    assert docker.get_image_info(image_name, 0).short_name == "den1:3"
Esempio n. 3
0
def test_mult_slashes_1_colon_mult_dashes():
    image_name = "scotstanws.azurecr.io/d83f2142-1c3c-4ae4-84fa-4e9ff3aa5ed9/m-circle-1:2-linux-arm32v7"
    assert docker.get_image_info(image_name, 0).short_name == "m-circle-1:2"
Esempio n. 4
0
def test_no_slash_mult_colon_no_dash():
    image_name = "den1:3:4"
    assert docker.get_image_info(image_name, 0).short_name == "den1:3"
Esempio n. 5
0
def test_no_slash_1_colon_1_dash():
    image_name = "den1:3-linux"
    assert docker.get_image_info(image_name, 0).short_name == "den1:3"
Esempio n. 6
0
def test_1_slash_multi_colon_multi_dash():
    image_name = "moab/brain:3:3-linux-v32"
    assert docker.get_image_info(image_name, 0).short_name == "brain:3"
Esempio n. 7
0
def test_1_slash_mult_colon_no_dash():
    image_name = "moab/brain:3:3"
    assert docker.get_image_info(image_name, 0).short_name == "brain:3"
Esempio n. 8
0
def test_1_slash_no_colon_1_dash():
    image_name = "moab/brain-linux"
    assert docker.get_image_info(image_name, 0).short_name == "brain-lin"