diff options
Diffstat (limited to 'jstests/aggregation')
-rw-r--r-- | jstests/aggregation/bugs/server6179.js | 1 | ||||
-rw-r--r-- | jstests/aggregation/bugs/server7781.js | 1 | ||||
-rw-r--r-- | jstests/aggregation/mongos_merge.js | 2 | ||||
-rw-r--r-- | jstests/aggregation/mongos_slaveok.js | 1 | ||||
-rw-r--r-- | jstests/aggregation/shard_targeting.js | 2 | ||||
-rw-r--r-- | jstests/aggregation/sources/addFields/use_cases.js | 3 | ||||
-rw-r--r-- | jstests/aggregation/sources/collStats/shard_host_info.js | 1 | ||||
-rw-r--r-- | jstests/aggregation/sources/facet/use_cases.js | 1 | ||||
-rw-r--r-- | jstests/aggregation/testSlave.js | 1 | ||||
-rw-r--r-- | jstests/aggregation/testshard1.js | 1 |
10 files changed, 11 insertions, 3 deletions
diff --git a/jstests/aggregation/bugs/server6179.js b/jstests/aggregation/bugs/server6179.js index 4e98ee17eb5..d04e9a590c2 100644 --- a/jstests/aggregation/bugs/server6179.js +++ b/jstests/aggregation/bugs/server6179.js @@ -1,4 +1,5 @@ // SERVER-6179: support for two $groups in sharded agg +// @tags: [requires_sharding] (function() { 'use strict'; diff --git a/jstests/aggregation/bugs/server7781.js b/jstests/aggregation/bugs/server7781.js index cfa10c699ed..4394fc4f3bb 100644 --- a/jstests/aggregation/bugs/server7781.js +++ b/jstests/aggregation/bugs/server7781.js @@ -1,4 +1,5 @@ // SERVER-7781 $geoNear pipeline stage +// @tags: [requires_sharding] (function() { 'use strict'; diff --git a/jstests/aggregation/mongos_merge.js b/jstests/aggregation/mongos_merge.js index 76108fdf602..6229f4c6e74 100644 --- a/jstests/aggregation/mongos_merge.js +++ b/jstests/aggregation/mongos_merge.js @@ -10,7 +10,7 @@ * and will therefore invalidate the results of the test cases below, we tag this test to prevent it * running under the 'aggregation_facet_unwind' passthrough. * - * @tags: [do_not_wrap_aggregations_in_facets] + * @tags: [do_not_wrap_aggregations_in_facets, requires_sharding] */ (function() { diff --git a/jstests/aggregation/mongos_slaveok.js b/jstests/aggregation/mongos_slaveok.js index 58440deed14..62a467e9c35 100644 --- a/jstests/aggregation/mongos_slaveok.js +++ b/jstests/aggregation/mongos_slaveok.js @@ -1,6 +1,7 @@ /** * Tests aggregate command against mongos with slaveOk. For more tests on read preference, * please refer to jstests/sharding/read_pref_cmd.js. + * @tags: [requires_sharding] */ (function() { load('jstests/replsets/rslib.js'); diff --git a/jstests/aggregation/shard_targeting.js b/jstests/aggregation/shard_targeting.js index c78bb93a29a..c33b0ab5d1c 100644 --- a/jstests/aggregation/shard_targeting.js +++ b/jstests/aggregation/shard_targeting.js @@ -20,7 +20,7 @@ * and will therefore invalidate the results of the test cases below, we tag this test to prevent it * running under the 'aggregation_facet_unwind' passthrough. * - * @tags: [do_not_wrap_aggregations_in_facets] + * @tags: [do_not_wrap_aggregations_in_facets, requires_sharding] */ (function() { load("jstests/libs/profiler.js"); // For profilerHas*OrThrow helper functions. diff --git a/jstests/aggregation/sources/addFields/use_cases.js b/jstests/aggregation/sources/addFields/use_cases.js index 725408fb40d..8857c3b9e66 100644 --- a/jstests/aggregation/sources/addFields/use_cases.js +++ b/jstests/aggregation/sources/addFields/use_cases.js @@ -2,6 +2,7 @@ * $addFields can be used to add fixed and computed fields to documents while preserving the * original document. Verify that using $addFields and adding computed fields in a $project yield * the same result. + * @tags: [requires_sharding] */ (function() { @@ -61,4 +62,4 @@ st.stop(); print("Success! Sharding use case test for $addFields passed."); -}());
\ No newline at end of file +}()); diff --git a/jstests/aggregation/sources/collStats/shard_host_info.js b/jstests/aggregation/sources/collStats/shard_host_info.js index 0c78137930f..2d504d6a9b5 100644 --- a/jstests/aggregation/sources/collStats/shard_host_info.js +++ b/jstests/aggregation/sources/collStats/shard_host_info.js @@ -1,6 +1,7 @@ /** * Verifies that the $collStats aggregation stage includes the shard and hostname for each output * document when run via mongoS, and that the former is absent when run on a non-shard mongoD. + * @tags: [requires_sharding] */ (function() { "use strict"; diff --git a/jstests/aggregation/sources/facet/use_cases.js b/jstests/aggregation/sources/facet/use_cases.js index fed4c0b0c5c..29db4222386 100644 --- a/jstests/aggregation/sources/facet/use_cases.js +++ b/jstests/aggregation/sources/facet/use_cases.js @@ -1,5 +1,6 @@ /** * Tests some practical use cases of the $facet stage. + * @tags: [requires_sharding] */ (function() { "use strict"; diff --git a/jstests/aggregation/testSlave.js b/jstests/aggregation/testSlave.js index 0a03d68a49b..ce6ee597218 100644 --- a/jstests/aggregation/testSlave.js +++ b/jstests/aggregation/testSlave.js @@ -1,4 +1,5 @@ // This test just make sure that aggregation is possible on a secondary node. +// @tags: [requires_replication] var replTest = new ReplSetTest({name: 'aggTestSlave', nodes: 2}); var nodes = replTest.startSet(); replTest.initiate(); diff --git a/jstests/aggregation/testshard1.js b/jstests/aggregation/testshard1.js index 9062bc63521..7ae739f2b4b 100644 --- a/jstests/aggregation/testshard1.js +++ b/jstests/aggregation/testshard1.js @@ -1,3 +1,4 @@ +// @tags: [requires_sharding] load('jstests/aggregation/extras/utils.js'); load('jstests/libs/analyze_plan.js'); // For planHasStage. |