Esempio n. 1
0
def create_image_fail():
    api_toolkit_url = '127.0.0.1:5000/test_iaas/'
    start_url = '127.0.0.1:5000/test/start_no_processes'

    payload = {'key1': 'val1'}
    r = requests.post('http://' + start_url, data=payload)

    backend_response = r.text
    return job_manager.start_job(api_toolkit_url, backend_response,
                                 start_url, payload)
Esempio n. 2
0
def create_image_fail():
    api_toolkit_url = '127.0.0.1:5000/test_iaas/'
    start_url = '127.0.0.1:5000/test/start_no_processes'

    payload = {'key1': 'val1'}
    r = requests.post('http://' + start_url, data=payload)

    backend_response = r.text
    return job_manager.start_job(api_toolkit_url, backend_response, start_url,
                                 payload)
Esempio n. 3
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = '127.0.0.1:5000/test_iaas/'
    backend_url = '127.0.0.1:5000/test/start'

    r = requests.post('http://' + backend_url)

    backend_jid = int(r.text)
    return job_manager.start_job(api_toolkit_url, backend_jid)
Esempio n. 4
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = '127.0.0.1:5000/test_iaas/'
    backend_url = '127.0.0.1:5000/test/start'

    r = requests.post('http://' + backend_url)

    backend_jid = int(r.text)
    return job_manager.start_job(api_toolkit_url, backend_jid)
Esempio n. 5
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = '127.0.0.1:5000/iaas/'
    backend_url = '127.0.0.1:5000/test/start'

    payload = {'key1': 'val1'}
    r = requests.post('http://' + backend_url, data=payload)

    backend_jid = int(r.text)
    return job_manager.start_job(api_toolkit_url, backend_jid)
Esempio n. 6
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = HOSTNAME + '/test_iaas/'
    backend_url = HOSTNAME + '/test/start'

    r = requests.post(backend_url)

    backend_response = r.text
    return job_manager.start_job(api_toolkit_url, backend_response,
                                 start_url, payload)
Esempio n. 7
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = HOSTNAME + '/test_iaas/'
    backend_url = HOSTNAME + '/test/start'

    r = requests.post(backend_url)

    backend_response = r.text
    return job_manager.start_job(api_toolkit_url, backend_response, start_url,
                                 payload)
Esempio n. 8
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = '127.0.0.1:5000/iaas/'
    backend_url = '127.0.0.1:5000/test/start'

    payload = {'key1': 'val1'}
    r = requests.post('http://' + backend_url, data=payload)

    backend_jid = int(r.text)
    return job_manager.start_job(api_toolkit_url, backend_jid)
Esempio n. 9
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = '127.0.0.1:5000/test_iaas/'
    start_url = '127.0.0.1:5000/test/start'

    payload = {'key1': 'val1'}
    r = requests.post('http://' + start_url, data=payload)

    backend_response = r.text
    return job_manager.start_job(api_toolkit_url, backend_response,
                                 start_url, payload)
Esempio n. 10
0
def create_image():
    """
    Create an image for IAAS
    """
    api_toolkit_url = '127.0.0.1:5000/test_iaas/'
    start_url = '127.0.0.1:5000/test/start'

    payload = {'key1': 'val1'}
    r = requests.post('http://' + start_url, data=payload)

    backend_response = r.text
    return job_manager.start_job(api_toolkit_url, backend_response, start_url,
                                 payload)