suite_scheduler: count the past jobs from frontdoor instead of swarming

BUG=1006426
TEST=runner.py --test_type integration

Change-Id: I35c2e937f1d814996cbc7fe18735ca4a453b42be
diff --git a/local_integration_test.py b/local_integration_test.py
index 3f1e05e..663026e 100644
--- a/local_integration_test.py
+++ b/local_integration_test.py
@@ -130,6 +130,13 @@
         ['curl', '%s/test_push/bq_get_relaxed_passed' % DEV_APPSERVER_URL])
     self.assertIn('release', output)
 
+  def testBigqueryGetJobsLastHours(self):
+    """Test get_past_buildbucket_job_nums from cros_test_platform BQ database"""
+    output = _subprocess_wrapper(
+        subprocess.check_output,
+        ['curl', '%s/test_push/bq_get_last_hours' % DEV_APPSERVER_URL])
+    self.assertIn('ok', output)
+
   def testBuildbucketClient(self):
     """Test buildbucket client by calling test-platform's dev builder."""
     output = _subprocess_wrapper(