Skip to content

bigtable: system tests #1461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions packages/bigtable/system-test/bigtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

var assert = require('assert');
var async = require('async');
var uuid = require('node-uuid');
var exec = require('methmeth');
var extend = require('extend');
var uuid = require('node-uuid');

var Table = require('../src/table.js');
var Family = require('../src/family.js');
Expand All @@ -39,15 +39,19 @@ function generateTableName() {
}

(isTestable ? describe : describe.skip)('Bigtable', function() {
var bigtable = new Bigtable(extend({}, env, {
cluster: clusterName,
zone: zoneName
}));
var bigtable;

var TABLE_NAME = generateTableName();
var TABLE = bigtable.table(TABLE_NAME);
var TABLE;

before(function(done) {
bigtable = new Bigtable(extend({
cluster: clusterName,
zone: zoneName
}, env));

TABLE = bigtable.table(TABLE_NAME);

bigtable.getTables(function(err, tables) {
if (err) {
done(err);
Expand Down Expand Up @@ -127,9 +131,10 @@ function generateTableName() {

describe('column families', function() {
var FAMILY_NAME = 'presidents';
var FAMILY = TABLE.family(FAMILY_NAME);
var FAMILY;

before(function(done) {
FAMILY = TABLE.family(FAMILY_NAME);
FAMILY.create(done);
});

Expand Down