cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cassandra-node.apache-extras....@codespot.com
Subject [cassandra-node] 4 new revisions pushed by tomaz.muraus on 2012-05-13 01:23 GMT
Date Sun, 13 May 2012 01:23:12 GMT
4 new revisions:

Revision: 2a3084c03949
Author:   Tomaz Muraus <tomaz@tomaz.me>
Date:     Sat May 12 18:15:18 2012
Log:      Add a new test script which only starts Cassandra if the TRAVIS  
enviro...
http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=2a3084c03949

Revision: 87538c3980f7
Author:   Tomaz Muraus <tomaz@tomaz.me>
Date:     Sat May 12 18:16:13 2012
Log:      Add travis config.
http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=87538c3980f7

Revision: 0a391c90bcec
Author:   Tomaz Muraus <tomaz@tomaz.me>
Date:     Sat May 12 18:19:06 2012
Log:      Make cassandra lsiten on 9160 and update the affected tests.
http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=0a391c90bcec

Revision: c2f6aa5631b0
Author:   Tomaz Muraus <kami@k5-storitve.net>
Date:     Sat May 12 18:22:25 2012
Log:      Add build status image to the readme.
http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=c2f6aa5631b0

==============================================================================
Revision: 2a3084c03949
Author:   Tomaz Muraus <tomaz@tomaz.me>
Date:     Sat May 12 18:15:18 2012
Log:      Add a new test script which only starts Cassandra if the TRAVIS  
environment
variable is not set.

http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=2a3084c03949

Added:
  /scripts/test.sh
Modified:
  /package.json

=======================================
--- /dev/null
+++ /scripts/test.sh	Sat May 12 18:15:18 2012
@@ -0,0 +1,13 @@
+if [ $TRAVIS ]; then
+  dependencies=""
+else
+  dependencies="tests/dependencies.json"
+fi
+
+if [ ! $TEST_FILES ]; then
+  TEST_FILES=$(find test/ -type f -name "test_*.js" -print0 | tr "\0" " "  
| sed '$s/.$//')
+fi
+
+NODE_PATH=lib node_modules/whiskey/bin/whiskey \
+  --tests "${TEST_FILES}" \
+  ${dependencies} --real-time --scope-leaks --timeout 30000
=======================================
--- /package.json	Mon Apr 30 15:46:47 2012
+++ /package.json	Sat May 12 18:15:18 2012
@@ -20,7 +20,7 @@
      "lib": "lib"
    },
    "scripts": {
-    "test": "whiskey --tests \"test/test_driver.js test/test_decoder.js  
test/test_uuid.js\" --dependencies test/dependencies.json --scope-leaks  
--timeout 30000"
+    "test": "./scripts/test.sh"
    },
    "engines": {
      "node": ">= 0.6.7"

==============================================================================
Revision: 87538c3980f7
Author:   Tomaz Muraus <tomaz@tomaz.me>
Date:     Sat May 12 18:16:13 2012
Log:      Add travis config.

http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=87538c3980f7

Added:
  /.travis.yml

=======================================
--- /dev/null
+++ /.travis.yml	Sat May 12 18:16:13 2012
@@ -0,0 +1,14 @@
+language: node_js
+
+node_js:
+  - 0.6
+
+before_install:
+  - sudo service cassandra start
+  - sleep 5
+
+script: npm run-script test
+
+notifications:
+  email:
+    - tomaz+travisci@tomaz.me

==============================================================================
Revision: 0a391c90bcec
Author:   Tomaz Muraus <tomaz@tomaz.me>
Date:     Sat May 12 18:19:06 2012
Log:      Make cassandra lsiten on 9160 and update the affected tests.

http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=0a391c90bcec

Modified:
  /test/conf/cassandra.yaml
  /test/dependencies.json
  /test/test_driver.js

=======================================
--- /test/conf/cassandra.yaml	Tue Nov 29 03:18:53 2011
+++ /test/conf/cassandra.yaml	Sat May 12 18:19:06 2012
@@ -33,7 +33,7 @@
  request_scheduler: org.apache.cassandra.scheduler.NoScheduler
  rpc_address: 127.0.0.1
  rpc_keepalive: true
-rpc_port: 19170
+rpc_port: 9160
  rpc_timeout_in_ms: 10000
  saved_caches_directory: [/tmp/cass/savedcaches]
  seed_provider:
=======================================
--- /test/dependencies.json	Tue Nov 29 03:19:18 2011
+++ /test/dependencies.json	Sat May 12 18:19:06 2012
@@ -6,7 +6,7 @@
      "wait_for": "socket",
      "wait_for_options": {
        "host": "127.0.0.1",
-      "port": 19170
+      "port": 9160
      },
      "timeout": 10000
    }
=======================================
--- /test/test_driver.js	Mon Feb 13 12:54:50 2012
+++ /test/test_driver.js	Sat May 12 18:19:06 2012
@@ -37,7 +37,7 @@
  var util = require('./util');
  var decoder = require('../lib/decoder');

-var CASSANDRA_PORT = 19170;
+var CASSANDRA_PORT = 9160;

  function merge(a, b) {
    var c = {}, attrname;
@@ -278,7 +278,7 @@
  };

  exports.testPooledConnectionKeyspaceDoesNotExistConnect = function(test,  
assert) {
-  var con = new PooledConnection({hosts: ['127.0.0.1:19170'],
+  var con = new PooledConnection({hosts: ['127.0.0.1:9160'],
                                    keyspace: 'doesNotExist.',
                                    use_bigints: false});
    con.execute('SELECT * FROM foo', [], function(err) {
@@ -808,7 +808,7 @@
  //      ev.on('cfready', function() {
  //
  //        // insert 100 rows.
-//        var con = new Connection('127.0.0.1', 19170, 'ints', null, null,  
{use_bigints: true});
+//        var con = new Connection('127.0.0.1', 9160, 'ints', null, null,  
{use_bigints: true});
  //        var count = 100;
  //        var num = 0;
  //        for (var i = 0; i < count; i++) {
@@ -850,7 +850,7 @@


  exports.testPooledConnectionFailover = function(test, assert) {
-  var hosts =  
['google.com:8000', '127.0.0.1:6567', '127.0.0.1:19170', '127.0.0.2'];
+  var hosts =  
['google.com:8000', '127.0.0.1:6567', '127.0.0.1:9160', '127.0.0.2'];
    var conn = new PooledConnection({'hosts':  
hosts, 'keyspace': 'Keyspace1', use_bigints: true, 'timeout': 5000});

    async.series([
@@ -870,7 +870,7 @@

  exports.testLearnStepTimeout = function(test, assert) {
    var server = null;
-  var hosts = ['127.0.0.1:8688', '127.0.0.1:19170'];
+  var hosts = ['127.0.0.1:8688', '127.0.0.1:9160'];
    var conn = new PooledConnection({'hosts':  
hosts, 'keyspace': 'Keyspace1', use_bigints: true, 'timeout': 5000});

    async.series([
@@ -907,7 +907,7 @@
    }

    //var hosts = ["127.0.0.2:9170", "127.0.0.1:9170"];
-  var hosts = ["127.0.0.1:19170"];
+  var hosts = ["127.0.0.1:9160"];
    var conn = new PooledConnection({'hosts':  
hosts, 'keyspace': 'Keyspace1', use_bigints: true});

    var range = new Array(100).join(' ').split(' ');
@@ -934,7 +934,7 @@
  };

  exports.testTimeLogging = function(test, assert) {
-  var hosts = ["127.0.0.1:19170"];
+  var hosts = ["127.0.0.1:9160"];
    var baseOptions = {'hosts': hosts, 'keyspace': 'Keyspace1', use_bigints:  
true};
    var options1 = merge(baseOptions, {});
    var options2 = merge(baseOptions, {'log_time': true});
@@ -993,7 +993,7 @@
  exports.testConnectionInPool = function(test, assert) {
    var con = new ConnectionInPool({
      host: '127.0.0.1',
-    port: 19170,
+    port: 9160,
      keyspace: 'Keyspace1',
      use_bigints: true
    });
@@ -1009,7 +1009,7 @@


  exports.testPooledConnectionLoad = function(test, assert) {
-  var hosts = ['127.0.0.1:19170'];
+  var hosts = ['127.0.0.1:9160'];
    var conn = new PooledConnection({'hosts':  
hosts, 'keyspace': 'Keyspace1', 'timeout': 10000});

    var count = 3000;
@@ -1062,7 +1062,7 @@
  // We want to test if all executes of a pooled connection are finished  
before
  // the shutdown callback is called.
  exports.testPooledConnectionShutdown = function(test, assert) {
-  var hosts = ['127.0.0.1:19170'];
+  var hosts = ['127.0.0.1:9160'];
    var conn = new PooledConnection({'hosts':  
hosts, 'keyspace': 'Keyspace1'});

    var expected = 100;
@@ -1085,7 +1085,7 @@
  };

  exports.testPooledConnectionShutdownTwice = function(test, assert) {
-  var hosts = ['127.0.0.1:19170'];
+  var hosts = ['127.0.0.1:9160'];
    var conn = new PooledConnection({'hosts':  
hosts, 'keyspace': 'Keyspace1'});

    var expected = 100;

==============================================================================
Revision: c2f6aa5631b0
Author:   Tomaz Muraus <kami@k5-storitve.net>
Date:     Sat May 12 18:22:25 2012
Log:      Add build status image to the readme.
http://code.google.com/a/apache-extras.org/p/cassandra-node/source/detail?r=c2f6aa5631b0

Modified:
  /README.md

=======================================
--- /README.md	Wed Feb 22 12:29:28 2012
+++ /README.md	Sat May 12 18:22:25 2012
@@ -6,6 +6,16 @@
  CQL is a query language for Apache Cassandra.  You use it in much the same  
way you would use SQL for a relational database.
  The Cassandra  
[documentation](http://www.datastax.com/docs/1.0/references/cql/index) can  
help you learn the syntax.

+Installation
+====================
+
+    $ npm install cassandra-client
+
+Build status
+====================
+
+[![Build  
Status](https://secure.travis-ci.org/racker/node-cassandra-client.png)](http://travis-ci.org/racker/node-cassandra-client)
+
  License
  ====================

@@ -14,10 +24,6 @@
   
[lib/bigint.js](https://github.com/racker/node-cassandra-client/blob/master/lib/bigint.js)
 
is  
[borrowed](https://github.com/joyent/node/blob/master/deps/v8/benchmarks/crypto.js)
  from the Node.js source (which comes from the  
[V8](http://code.google.com/p/v8/) source).

-Installation
-====================
-
-    $ npm install cassandra-client

  Using It
  ====================

Mime
View raw message