Commits

Ronny Pfannschmidt committed 4c224a7

turn /listjobs to GET on /

  • Participants
  • Parent commits 5384837

Comments (0)

Files changed (3)

tests/test_server.py

 
 def test_listxjobs(app):
     xjob = XJobSpec(args=["hello"])
-    rv = app.get("/listxjobs", data=json_encode(xjob))
+    rv = app.get("/", data=json_encode(xjob))
     data = json.loads(rv.data)
     assert 'queued' in data
     assert 'pulled' in data
         response = "job with id %s already registered" % jobinfo.xjobid
         return text_response(app, response)
 
-@app.route("/listxjobs", methods=["GET"])
+@app.route("/", methods=["GET"])
 def listxjobs():
     xjobs = {
         'queued': app.xjobstorage.queued,
 import py
 
 def listxjobs(conn):
-    response = conn.GET("/listxjobs")
+    response = conn.GET("/")
     content = response.read()
     xjoblist = json.loads(content)
     return xjoblist