diff options
author | Jan Lehnardt <jan@apache.org> | 2009-02-27 16:44:53 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-02-27 16:44:53 +0000 |
commit | 894b8a95e88c786f2c03eb6db4d44b9212646113 (patch) | |
tree | 69003f75d527be55d0cf6e385626d1eed9cdb734 /share/www/script/test | |
parent | 7c4f823f77d129d6fa3de038e17ec119734c0ed0 (diff) |
- group HTTP method stats into httpd_requests_methods as per Christopher Lenz's suggestion
- renamed http_status_codes to httpd_status_codes
- better internal variable naming
- remove comments that were leftovers from earlier refactoring
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748582 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r-- | share/www/script/test/stats.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js index b1c7bc02..90d8f462 100644 --- a/share/www/script/test/stats.js +++ b/share/www/script/test/stats.js @@ -187,22 +187,22 @@ couchTests.stats = function(debug) { var http_requests_by_method_tests = { 'should count GET requests': function(name) { - var requests = requestStatsTest("httpd", "get_requests").current; - var new_requests = requestStatsTest("httpd", "get_requests").current; + var requests = requestStatsTest("httpd_request_methods", "GET").current; + var new_requests = requestStatsTest("httpd_request_methods", "GET").current; TEquals(requests + 1, new_requests, name); }, 'should not count GET requests for POST request': function(name) { - var requests = requestStatsTest("httpd", "get_requests").current; + var requests = requestStatsTest("httpd_request_methods", "GET").current; CouchDB.request("POST", "/"); - var new_requests = requestStatsTest("httpd", "get_requests").current; + var new_requests = requestStatsTest("httpd_request_methods", "GET").current; TEquals(requests + 1, new_requests, name); }, 'should count POST requests': function(name) { - var requests = requestStatsTest("httpd", "post_requests").current; + var requests = requestStatsTest("httpd_request_methods", "POST").current; CouchDB.request("POST", "/"); - var new_requests = requestStatsTest("httpd", "post_requests").current; + var new_requests = requestStatsTest("httpd_request_methods", "POST").current; TEquals(requests + 1, new_requests, name); } @@ -341,9 +341,9 @@ couchTests.stats = function(debug) { var db = new CouchDB("nonexistant_db"); db.deleteDb(); - var not_founds = requestStatsTest("http_status_codes", "404").current; + var not_founds = requestStatsTest("httpd_status_codes", "404").current; CouchDB.request("GET", "/nonexistant_db"); - var new_not_founds = requestStatsTest("http_status_codes", "404").current; + var new_not_founds = requestStatsTest("httpd_status_codes", "404").current; TEquals(not_founds + 1, new_not_founds, name); }, |