Esempio n. 1
0
def snow_table_delete(url, request):
    ''' Mock POST table delete request response
    '''
    content_json = get_fixture_data('incident_table_delete_record.json')
    return response(200, content_json, HEADERS, None, 5, request)
Esempio n. 2
0
def snow_table_getrecords(url, request):
    ''' Mock GET for table records
    '''
    content_json = get_fixture_data('incident_table_records.json')
    return response(200, content_json, HEADERS, None, 5, request)
Esempio n. 3
0
def snow_table_get(url, request):
    ''' Mock GET request for incident table
    '''
    content_json = get_fixture_data('incident_table_sysid.json')
    return response(200, content_json, HEADERS, None, 5, request)
Esempio n. 4
0
def snow_table_insert_multiple(url, request):
    ''' Mock POST insert multiple request response
    '''
    content_json = get_fixture_data('incident_table_insert_multiple.json')
    return response(200, content_json, HEADERS, None, 5, request)
Esempio n. 5
0
def snow_invalid_insert(url, request):
    ''' Mock table error.
    '''
    content_json = get_fixture_data('incident_table_insert_error.json')
    return response(200, content_json, HEADERS, None, 5, request)
Esempio n. 6
0
def snow_post_json_valid(url, request):
    ''' Mock valid json reply
    '''
    content_json = get_fixture_data('incident_table_insert.json')
    return response(200, content_json, HEADERS, None, 5, request)