From b38dbc47aaf903b67c05da37b2ee228e6e0846ab Mon Sep 17 00:00:00 2001 From: Bitnami Date: Mon, 2 May 2016 23:30:05 -0400 Subject: [PATCH] enable cassandra in travis --- .travis.yml | 1 + test/test.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8a52c9605..eba3ccafd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: node_js services: - docker - redis-server +- cassandra node_js: - 'node' before_install: diff --git a/test/test.js b/test/test.js index f262692cc..01effade7 100644 --- a/test/test.js +++ b/test/test.js @@ -5,6 +5,7 @@ var config = require('../config'); var constants = require('../constants.js'); var redis = require('../store/redis'); var queue = require('../store/queue'); +//var cassandra = require('../store/cassandra'); var queries = require('../store/queries'); config.PORT = ""; //use service defaults config.POSTGRES_URL = "postgres://postgres:postgres@localhost/yasp_test"; @@ -12,6 +13,7 @@ config.REDIS_URL = "redis://localhost:6379/1"; config.SESSION_SECRET = "testsecretvalue"; config.NODE_ENV = "test"; config.ENABLE_MATCH_CACHE = 1; +//config.ENABLE_PLAYER_CACHE = 1; config.FRONTEND_PORT = 5001; config.PARSER_PORT = 5201; var async = require('async'); @@ -240,6 +242,20 @@ describe("web", function() }); }); }); + describe("player page tests with filter", function() + { + var tests = Object.keys(constants.player_pages); + tests.forEach(function(t) + { + it('/players/:valid/' + t, function(done) + { + supertest(app).get('/players/120269134/' + t + "?hero_id=1").expect(200).end(function(err, res) + { + done(err); + }); + }); + }); + }); describe("basic match page tests", function() { it('/matches/:invalid', function(done)