diff options
Diffstat (limited to 'jstests/aggregation/sources')
16 files changed, 57 insertions, 0 deletions
diff --git a/jstests/aggregation/sources/bucket/collation_bucket.js b/jstests/aggregation/sources/bucket/collation_bucket.js index b21ae778569..45f15402499 100644 --- a/jstests/aggregation/sources/bucket/collation_bucket.js +++ b/jstests/aggregation/sources/bucket/collation_bucket.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + // Test that the $bucket stage defines and sorts buckets according to the collation. (function() { "use strict"; diff --git a/jstests/aggregation/sources/bucketauto/collation_bucketauto.js b/jstests/aggregation/sources/bucketauto/collation_bucketauto.js index ded4ee1316d..4aafa6ea511 100644 --- a/jstests/aggregation/sources/bucketauto/collation_bucketauto.js +++ b/jstests/aggregation/sources/bucketauto/collation_bucketauto.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + // Test that the $bucketAuto stage defines and sorts buckets according to the collation. (function() { "use strict"; diff --git a/jstests/aggregation/sources/facet/inner_graphlookup.js b/jstests/aggregation/sources/facet/inner_graphlookup.js index 42d10149240..870bb975a8a 100644 --- a/jstests/aggregation/sources/facet/inner_graphlookup.js +++ b/jstests/aggregation/sources/facet/inner_graphlookup.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + /** * Tests that using a $graphLookup stage inside of a $facet stage will yield the same results as * using the $graphLookup stage outside of the $facet stage. diff --git a/jstests/aggregation/sources/facet/inner_lookup.js b/jstests/aggregation/sources/facet/inner_lookup.js index f4890324b65..c53bfa2b48e 100644 --- a/jstests/aggregation/sources/facet/inner_lookup.js +++ b/jstests/aggregation/sources/facet/inner_lookup.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + /** * Tests that using a $lookup stage inside of a $facet stage will yield the same results as using * the $lookup stage outside of the $facet stage. diff --git a/jstests/aggregation/sources/geonear/collation_geonear.js b/jstests/aggregation/sources/geonear/collation_geonear.js index 38a20d847b7..076e0a8bea8 100644 --- a/jstests/aggregation/sources/geonear/collation_geonear.js +++ b/jstests/aggregation/sources/geonear/collation_geonear.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + // Test that the $geoNear stage's query predicate respects the collation. (function() { "use strict"; diff --git a/jstests/aggregation/sources/graphLookup/airports.js b/jstests/aggregation/sources/graphLookup/airports.js index 71a38e268b8..9254fd992fa 100644 --- a/jstests/aggregation/sources/graphLookup/airports.js +++ b/jstests/aggregation/sources/graphLookup/airports.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + // In MongoDB 3.4, $graphLookup was introduced. In this file, we test some complex graphs. (function() { diff --git a/jstests/aggregation/sources/graphLookup/basic.js b/jstests/aggregation/sources/graphLookup/basic.js index 63b2a63f95a..c0bcb1a8a53 100644 --- a/jstests/aggregation/sources/graphLookup/basic.js +++ b/jstests/aggregation/sources/graphLookup/basic.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + // In MongoDB 3.4, $graphLookup was introduced. In this file, we test basic behavior and correctness // of the stage. diff --git a/jstests/aggregation/sources/graphLookup/collation_graphlookup.js b/jstests/aggregation/sources/graphLookup/collation_graphlookup.js index 833b2f2d771..7b457289cc6 100644 --- a/jstests/aggregation/sources/graphLookup/collation_graphlookup.js +++ b/jstests/aggregation/sources/graphLookup/collation_graphlookup.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + /** * Tests that the $graphLookup stage respects the collation when matching between the * 'connectFromField' and the 'connectToField'. $graphLookup should use the collation diff --git a/jstests/aggregation/sources/graphLookup/error.js b/jstests/aggregation/sources/graphLookup/error.js index a686fb30945..6e050105782 100644 --- a/jstests/aggregation/sources/graphLookup/error.js +++ b/jstests/aggregation/sources/graphLookup/error.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + // In MongoDB 3.4, $graphLookup was introduced. In this file, we test the error cases. load("jstests/aggregation/extras/utils.js"); // For "assertErrorCode". diff --git a/jstests/aggregation/sources/graphLookup/filter.js b/jstests/aggregation/sources/graphLookup/filter.js index edf1deda331..15ff6d4a4ae 100644 --- a/jstests/aggregation/sources/graphLookup/filter.js +++ b/jstests/aggregation/sources/graphLookup/filter.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + // In SERVER-24714, the 'restrictSearchWithMatch' option was added to $graphLookup. In this file, // we test the functionality and correctness of the option. diff --git a/jstests/aggregation/sources/graphLookup/nested_objects.js b/jstests/aggregation/sources/graphLookup/nested_objects.js index b2e3f5ac59a..d40cced2ac4 100644 --- a/jstests/aggregation/sources/graphLookup/nested_objects.js +++ b/jstests/aggregation/sources/graphLookup/nested_objects.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + // In MongoDB 3.4, $graphLookup was introduced. In this file, we test the behavior of graphLookup // when the 'connectToField' is a nested array, or when the 'connectFromField' is a nested array. diff --git a/jstests/aggregation/sources/graphLookup/socialite.js b/jstests/aggregation/sources/graphLookup/socialite.js index 6efe2672540..228c0f56c0e 100644 --- a/jstests/aggregation/sources/graphLookup/socialite.js +++ b/jstests/aggregation/sources/graphLookup/socialite.js @@ -1,3 +1,7 @@ +// Cannot implicitly shard accessed collections because unsupported use of sharded collection +// for target collection of $lookup and $graphLookup. +// @tags: [assumes_unsharded_collection] + // In MongoDB 3.4, $graphLookup was introduced. In this file, we test $graphLookup as applied to the // Socialite schema example available here: https://github.com/mongodb-labs/socialite diff --git a/jstests/aggregation/sources/group/collation_group.js b/jstests/aggregation/sources/group/collation_group.js index 4bf02ee5c97..c4977900078 100644 --- a/jstests/aggregation/sources/group/collation_group.js +++ b/jstests/aggregation/sources/group/collation_group.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + // Test that the $group stage and all accumulators respect the collation. (function() { "use strict"; diff --git a/jstests/aggregation/sources/lookup/collation_lookup.js b/jstests/aggregation/sources/lookup/collation_lookup.js index cf1b742c367..89a0b21c038 100644 --- a/jstests/aggregation/sources/lookup/collation_lookup.js +++ b/jstests/aggregation/sources/lookup/collation_lookup.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + /** * Tests that the $lookup stage respects the collation. * diff --git a/jstests/aggregation/sources/match/collation_match.js b/jstests/aggregation/sources/match/collation_match.js index 7136e03f9da..bc9456898f9 100644 --- a/jstests/aggregation/sources/match/collation_match.js +++ b/jstests/aggregation/sources/match/collation_match.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + // Test that the $match stage respects the collation. (function() { "use strict"; diff --git a/jstests/aggregation/sources/redact/collation_redact.js b/jstests/aggregation/sources/redact/collation_redact.js index d990c78959a..36304e9a7f2 100644 --- a/jstests/aggregation/sources/redact/collation_redact.js +++ b/jstests/aggregation/sources/redact/collation_redact.js @@ -1,3 +1,6 @@ +// Cannot implicitly shard accessed collections because of collection existing when none expected. +// @tags: [assumes_no_implicit_collection_creation_after_drop] + // Test that the $redact stage respects the collation. (function() { "use strict"; |