             res.body[0].completedWErrors.should.equal 0
             done()
 
+    describe '*getLoadTimeMetrics()', ->
+
+      it 'should fetch channel metrics based by ID', (done) ->
+
+        request "http://localhost:8080"
+        .get "/metrics/day/222222222222222222222222?startDate=%222014-07-18T00:00:00.000Z%22&endDate=%222014-07-19T00:00:00.000Z%22"
+        .set("auth-username", testUtils.rootUser.email)
+        .set("auth-ts", authDetails.authTS)
+        .set("auth-salt", authDetails.authSalt)
+        .set("auth-token", authDetails.authToken)
+        .expect(200)
+        .end (err, res) ->
+          if err
+            console.log(err)
+            done err
+          else
+            res.body.should.have.length 1
+            res.body[0].load.should.have.equal 1
+            res.body[0].avgResp.should.have.equal 149
+            res.body[0].timestamp.should.have.equal '2014-07-18T00:00:00+02:00'
+            done()
+
+    describe '*getStatusMetrics()', ->
+
+      it 'should fetch global status metrics based on the currently logged in user permissions', (done) ->
+
+        request "http://localhost:8080"
+        .get "/metrics/status/222222222222222222222222?startDate=%222014-07-18T00:00:00.000Z%22&endDate=%222014-07-19T00:00:00.000Z%22"
+        .set("auth-username", testUtils.rootUser.email)
+        .set("auth-ts", authDetails.authTS)
+        .set("auth-salt", authDetails.authSalt)
+        .set("auth-token", authDetails.authToken)
+        .expect(200)
+        .end (err, res) ->
+          if err
+            console.log(err)
+            done err
+          else
+            res.body[0].should.have.properties 'failed','successful','processing','completed','completedWErrors'
+            res.body[0].failed.should.equal 0
+            res.body[0].successful.should.equal 0
+            res.body[0].processing.should.equal 0
+            res.body[0].completed.should.equal 1
+            res.body[0].completedWErrors.should.equal 0
+            done()
+

            done err
          else
            res.body.should.have.length 2
            res.body[0].should.have.properties 'failed','successful','processing','completed','completedWErrors'
            done()

    describe '*getLoadTimeMetrics()', ->

      it 'should fetch channel metrics based by ID', (done) ->

        request "http://localhost:8080"
        .get "/metrics/day/222222222222222222222222?startDate=%222014-07-18T00:00:00.000Z%22&endDate=%222014-07-19T00:00:00.000Z%22"
        .set("auth-username", testUtils.rootUser.email)
        .set("auth-ts", authDetails.authTS)
        .set("auth-salt", authDetails.authSalt)
        .set("auth-token", authDetails.authToken)
        .expect(200)
        .end (err, res) ->
          if err
            console.log(err)
            done err
          else
            res.body.should.have.length 1
            res.body[0].load.should.have.equal 1
            res.body[0].avgResp.should.have.equal 149
            res.body[0].timestamp.should.have.equal '2014-07-18T00:00:00+02:00'
            done()

    describe '*getStatusMetrics()', ->

      it 'should fetch global status metrics based on the currently logged in user permissions', (done) ->

        request "http://localhost:8080"
        .get "/metrics/status/222222222222222222222222?startDate=%222014-07-18T00:00:00.000Z%22&endDate=%222014-07-19T00:00:00.000Z%22"
        .set("auth-username", testUtils.rootUser.email)
        .set("auth-ts", authDetails.authTS)
        .set("auth-salt", authDetails.authSalt)
        .set("auth-token", authDetails.authToken)
        .expect(200)
        .end (err, res) ->
          if err
            console.log(err)
            done err
          else
            res.body[0].should.have.properties 'failed','successful','processing','completed','completedWErrors'
            res.body[0].failed.should.equal 0
            res.body[0].successful.should.equal 0

            done err
          else
            res.body.should.have.length 2
            res.body[0].load.should.have.equal 1
            res.body[0].avgResp.should.have.equal 149
            res.body[0].timestamp.should.have.equal '2014-07-18T13:00:00+02:00'
            done()

    describe '*getGlobalStatusMetrics()', ->
