Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
added load_test_exercise.py to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Apr 14, 2017
1 parent 0b7d057 commit 9d42d8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
11 changes: 8 additions & 3 deletions bin/load_test_exercise.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def make_uuid():
return str(uuid.uuid1()).replace("-", "")


def make_random_id():
return make_uuid()[:16]


deviceInfo = make_device_info()
deviceId = make_uuid()
secret = make_uuid()
Expand All @@ -72,7 +76,7 @@ def delete_account():


def create_shot():
shot_id = make_uuid() + "/test.com"
shot_id = make_random_id() + "/test.com"
shot_url = urljoin(backend, shot_id)
shot_data = urljoin(backend, "data/" + shot_id)
resp = session.put(
Expand Down Expand Up @@ -199,8 +203,9 @@ def main():
print "Finished run %i/%i" % (i + 1, args.times)
except KeyboardInterrupt:
print "Early abort"
print "Deleting account"
delete_account()
# uncomment after supporting csrf token
# print "Deleting account"
# delete_account()


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit 9d42d8b

Please sign in to comment.