diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-06-02 15:29:32 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-06-09 15:05:04 -0400 |
commit | 67500efdc1c677173c737ecde2b07b42015ae5fd (patch) | |
tree | 4a735cf4c6561e28b76f65117d47231e9a677d04 /jstests/sharding/shard_collection_basic.js | |
parent | f9c36696a25d3837f512421755952736236bbed0 (diff) | |
download | mongo-67500efdc1c677173c737ecde2b07b42015ae5fd.tar.gz |
SERVER-29350 Bump featureCompatibilityVersion to 3.6
Diffstat (limited to 'jstests/sharding/shard_collection_basic.js')
-rw-r--r-- | jstests/sharding/shard_collection_basic.js | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/jstests/sharding/shard_collection_basic.js b/jstests/sharding/shard_collection_basic.js index a17336eb99e..e9786c5bb4e 100644 --- a/jstests/sharding/shard_collection_basic.js +++ b/jstests/sharding/shard_collection_basic.js @@ -233,41 +233,19 @@ assert.commandFailed(mongos.adminCommand( {shardCollection: kDbName + '.foo', key: {a: 1}, collation: {locale: 'simple'}})); - // - // Feature compatibility version collation tests. - // - - // shardCollection should succeed on an empty collection with a non-simple default collation - // if feature compatibility version is 3.4. + // shardCollection should succeed on an empty collection with a non-simple default collation. mongos.getDB(kDbName).foo.drop(); assert.commandWorked( mongos.getDB(kDbName).createCollection('foo', {collation: {locale: 'en_US'}})); assert.commandWorked(mongos.adminCommand( {shardCollection: kDbName + '.foo', key: {a: 1}, collation: {locale: 'simple'}})); - // shardCollection should succeed on an empty collection with no default collation if feature - // compatibility version is 3.4. - mongos.getDB(kDbName).foo.drop(); - assert.commandWorked(mongos.getDB(kDbName).createCollection('foo')); - assert.commandWorked(mongos.adminCommand({shardCollection: kDbName + '.foo', key: {a: 1}})); - - // shardCollection should fail on a collection with a non-simple default collation if feature - // compatibility version is 3.2. - mongos.getDB(kDbName).foo.drop(); - assert.commandWorked( - mongos.getDB(kDbName).createCollection('foo', {collation: {locale: 'en_US'}})); - assert.commandWorked(mongos.adminCommand({setFeatureCompatibilityVersion: "3.2"})); - assert.commandFailed(mongos.adminCommand( - {shardCollection: kDbName + '.foo', key: {a: 1}, collation: {locale: 'simple'}})); - - // shardCollection should succeed on an empty collection with no default collation if feature - // compatibility version is 3.2. + // shardCollection should succeed on an empty collection with no default collation. mongos.getDB(kDbName).foo.drop(); assert.commandWorked(mongos.getDB(kDbName).createCollection('foo')); assert.commandWorked(mongos.adminCommand({shardCollection: kDbName + '.foo', key: {a: 1}})); mongos.getDB(kDbName).dropDatabase(); - assert.commandWorked(mongos.adminCommand({setFeatureCompatibilityVersion: "3.4"})); // // Tests for the shell helper sh.shardCollection(). |