Skip to content

Instantly share code, notes, and snippets.

@turnersr
turnersr / submit.py
Created August 1, 2013 21:39
Code used to submit jobs to Cuckoobox via the REST API
import pycurl
import cStringIO
import json
import urllib
from collections import defaultdict
from time import sleep
import glob as g
base_api_url = "http://localhost:8090/"
from __future__ import absolute_import
"""
This will configure and run the nosetests for graph against remove ec2 servers.
Running this makes a few assumptions.
1) You must have access to graph on github. This will checkout the repo to run the tests
2) You must have an account on EC2 and be able to create instances.
In order to configure, you need to create a file in your home called ~/.boto that looks like: