Navigation Menu

Skip to content

Commit

Permalink
Test index fields for gcs-describe-domain
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 15, 2012
1 parent b194840 commit 42911a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/gcs-commands.test.js
Expand Up @@ -170,8 +170,10 @@ suite('gcs-describe-domain', function() {
var hostPort = '127.0.0.1.xip.io:7575';

test('describe one', function(done) {
new Domain('domain2', context).createSync();
new Domain('domain1', context).createSync();
var domain2 = new Domain('domain2', context).createSync();
var domain1 = new Domain('domain1', context).createSync();
var nameField = domain1.getIndexField('name').setType('text').createSync();
var ageField = domain1.getIndexField('age').setType('uint').createSync();
utils
.run('gcs-describe-domain',
'--domain-name', 'domain1',
Expand All @@ -198,6 +200,10 @@ suite('gcs-describe-domain', function() {
'\n' +
'Fields:\n' +
'=======\n' +
ageField.name + ' ' + ageField.state + ' ' +
ageField.type + ' (' + ageField.options + ')\n' +
nameField.name + ' ' + nameField.state + ' ' +
nameField.type + ' (' + nameField.options + ')\n' +
'======================\n' });

done();
Expand Down

0 comments on commit 42911a1

Please sign in to comment.