def METHOD_NAME(self):
    image_fname = "image1"
    tempDir = tempfile.mkdtemp()
    os.chmod(tempDir, 0o777)
    image_fpath = '/'.join([tempDir, image_fname])
    url = "file://" + image_fpath
    image_meta = '''{"os_version": "rhel8.2"}'''
    body = """{"image": {"image_name": "%s",
                         "url": "%s",
                         "image_meta": %s}}""" % (image_fname, url,
                                                  image_meta)
    resp = self.client.api_request(url='/images', method='POST',
                                   body=body)
    self.assertEqual(400, resp.status_code)
    shutil.rmtree(tempDir)