def setUpClass(cls): cls.conf = test_utils.get_docker_conf_obj() if 'DCM_DOCKER_IMAGE_LOCATION' not in os.environ: raise unittest.SkipTest('skipping') image_location = os.environ['DCM_DOCKER_IMAGE_LOCATION'] repo = "agenttest" + str(uuid.uuid4()).split("-")[0] arguments = {"src": image_location, "repository": repo, "tag": "1.0"} plugin = import_image.ImportImage(cls.conf, "400", {}, "test", arguments) reply = plugin.run() reply_obj = reply['reply_object'] cls.image_id = reply_obj['status']
def setUpClass(cls): cls.conf = test_utils.get_docker_conf_obj() if 'DCM_DOCKER_IMAGE_LOCATION' not in os.environ: raise unittest.SkipTest('skipping') image_location = os.environ['DCM_DOCKER_IMAGE_LOCATION'] repo = "agenttest" + str(uuid.uuid4()).split("-")[0] arguments = { "src": image_location, "repository": repo, "tag": "1.0" } plugin = import_image.ImportImage( cls.conf, "400", {}, "test", arguments) reply = plugin.run() reply_obj = reply['reply_object'] cls.image_id = reply_obj['status']
def setUp(self): """ :return: a list of the files in src/dcm/agent/plugins/builtin """ self.conf = test_utils.get_docker_conf_obj()