Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should inherit from GrpcService', function() {
assert(bigtable instanceof GrpcService);
var calledWith = bigtable.calledWith_[0];
assert.strictEqual(calledWith.baseUrl, 'bigtable.googleapis.com');
assert.strictEqual(calledWith.service, 'bigtable');
assert.strictEqual(calledWith.apiVersion, 'v1');
assert.deepEqual(calledWith.protoServices, {
BigtableService: googleProtoFiles.bigtable.v1,
BigtableTableService: {
path: googleProtoFiles.bigtable.admin,
service: 'bigtable.admin.table'
}
});
assert.deepEqual(calledWith.scopes, [
'https://www.googleapis.com/auth/bigtable.admin',
'https://www.googleapis.com/auth/bigtable.data'
]);
});
});
it('should inherit from GrpcService', function() {
assert(bigtable instanceof GrpcService);
var calledWith = bigtable.calledWith_[0];
assert.strictEqual(calledWith.baseUrl, 'bigtable.googleapis.com');
assert.strictEqual(calledWith.service, 'bigtable');
assert.strictEqual(calledWith.apiVersion, 'v1');
assert.deepEqual(calledWith.protoServices, {
BigtableService: googleProtoFiles.bigtable.v1,
BigtableTableService: {
path: googleProtoFiles.bigtable.admin,
service: 'bigtable.admin.table'
}
});
assert.deepEqual(calledWith.scopes, [
'https://www.googleapis.com/auth/bigtable.admin',
'https://www.googleapis.com/auth/bigtable.data'
]);
});
});
options = extend({}, options, {
zone: options.zone.name || options.zone
});
this.clusterName = format(
'projects/{projectId}/zones/{zone}/clusters/{cluster}',
options
);
var config = {
baseUrl: 'bigtable.googleapis.com',
service: 'bigtable',
apiVersion: 'v1',
protoServices: {
BigtableService: googleProtoFiles.bigtable.v1,
BigtableTableService: {
path: googleProtoFiles.bigtable.admin,
service: 'bigtable.admin.table'
}
},
scopes: [
'https://www.googleapis.com/auth/bigtable.admin',
'https://www.googleapis.com/auth/bigtable.data'
],
userAgent: PKG.name + '/' + PKG.version
};
GrpcService.call(this, config, options);
}
zone: options.zone.name || options.zone
});
this.clusterName = format(
'projects/{projectId}/zones/{zone}/clusters/{cluster}',
options
);
var config = {
baseUrl: 'bigtable.googleapis.com',
service: 'bigtable',
apiVersion: 'v1',
protoServices: {
BigtableService: googleProtoFiles.bigtable.v1,
BigtableTableService: {
path: googleProtoFiles.bigtable.admin,
service: 'bigtable.admin.table'
}
},
scopes: [
'https://www.googleapis.com/auth/bigtable.admin',
'https://www.googleapis.com/auth/bigtable.data'
],
userAgent: PKG.name + '/' + PKG.version
};
GrpcService.call(this, config, options);
}