def test_resolv_name(image_name: ImageName): """Test name resolution.""" assert image_name.resolve_name() == "{0}/{1}:{2}".format( image_name.resolve_endpoint(), image_name.resolve_image(), image_name.resolve_tag(), )
def test_resolv_endpoint(image_name: ImageName): """Test endpoint resolution.""" assert image_name.resolve_endpoint() == "endpoint:port" image_name = ImageName(None, image_name.image, image_name.tag) assert image_name.resolve_endpoint() == ImageName.DEFAULT_REGISTRY_ENDPOINT