Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)