Skip to content

Commit

Permalink
enable cassandra in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed May 3, 2016
1 parent 71b16c1 commit b38dbc4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: node_js
services:
- docker
- redis-server
- cassandra
node_js:
- 'node'
before_install:
Expand Down
16 changes: 16 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ 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";
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');
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b38dbc4

Please sign in to comment.