Skip to content

Instantly share code, notes, and snippets.

@Marak
Created April 10, 2010 23:29
Show Gist options
  • Select an option

  • Save Marak/362367 to your computer and use it in GitHub Desktop.

Select an option

Save Marak/362367 to your computer and use it in GitHub Desktop.
tests.createHookWithActions = {"testGroup":{}};
tests.test_create_hook_url_with_http_action_as_id = new hookIO.apiCall({
"method":"createHook",
"params": new Hook( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'path': 'TestCustomURL' + new Date().getTime(),
'actions' : [12,15,16]
}
})
});
tests.test_create_hook_url_with_http_action_as_object = new hookIO.apiCall({
"method":"createHook",
"params": new Hook( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'path': 'TestCustomURL' + new Date().getTime(),
'actions' : [
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
})
]
}
})
});
tests.test_create_hook_url_with_http_actions_as_ids = new hookIO.apiCall({
"method":"createHook",
"params": new Hook( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'path': 'TestCustomURL' + new Date().getTime(),
'actions' : [12,15,16]
}
})
});
tests.test_create_hook_url_with_http_actions_as_objects = new hookIO.apiCall({
"method":"createHook",
"params": new Hook( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'path': 'TestCustomURL' + new Date().getTime(),
'actions' : [
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
}),
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
}),
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
})
]
}
})
});
tests.test_create_hook_url_with_http_actions_as_mix_of_objects_and_ids = new hookIO.apiCall({
"method":"createHook",
"params": new Hook( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'path': 'TestCustomURL' + new Date().getTime(),
'actions' : [
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
}),
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
}),
new Action( {
'id' : new Date().getTime(),
'type': 'http',
'config': {
'url':'http://hook.io/' + new Date().getTime(),
'method': 'GET',
'body' : {}
}
})
]
}
})
});
/* end create action tests */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment