Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jul 3, 2013
1 parent 2809d55 commit d0a5317
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test_buildrequests.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Create a request.
request = {
"architecture": "slc5_amd64_gcc472",
"release_name": "CMSSW_6_2_X_2013-04-08-0200",
"release": "CMSSW_6_2_X_2013-04-08-0200",
"repository": "cms",
"PKGTOOLS": "ktf:my-branch",
"CMSDIST": "ktf:another-branch",
Expand All @@ -21,9 +21,9 @@
"debug": False,
"hostnameFilter": ".*",
}
result = json.loads(urlopen(TEST_SERVER_URL, json.dumps(request)).read())
result = urlopen(TEST_SERVER_URL, json.dumps(request)).read()
print result
print result["id"]
result = json.loads(result)
assert(result["hostnameFilter"] == ".*")
# Update the lastModiied timestamp.
update = {
Expand All @@ -40,6 +40,7 @@
assert(result["state"] == "Stopped")
assert(result["url"] == "http://www.foo.bar")
# Delete the request just created.
exit(0)
print "delete"
req = Request(url=TEST_SERVER_URL + "/" + str(int(result["id"])-1) + "," + result["id"])
req.get_method = lambda : "DELETE"
Expand Down

0 comments on commit d0a5317

Please sign in to comment.