Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 578a532

Browse files
PYTHON-5491 Skip non-idempotent dropIndex tests (#2467)
1 parent 4e9b52b commit 578a532

File tree

6 files changed

+29
-1
lines changed

6 files changed

+29
-1
lines changed

‎.evergreen/generated_configs/variants.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,55 +535,71 @@ buildvariants:
535535
display_name: "* MongoDB v4.2"
536536
run_on:
537537
- rhel87-small
538+
expansions:
539+
VERSION: "4.2"
538540
tags: [coverage_tag]
539541
- name: mongodb-v4.4
540542
tasks:
541543
- name: .server-version
542544
display_name: "* MongoDB v4.4"
543545
run_on:
544546
- rhel87-small
547+
expansions:
548+
VERSION: "4.4"
545549
tags: [coverage_tag]
546550
- name: mongodb-v5.0
547551
tasks:
548552
- name: .server-version
549553
display_name: "* MongoDB v5.0"
550554
run_on:
551555
- rhel87-small
556+
expansions:
557+
VERSION: "5.0"
552558
tags: [coverage_tag]
553559
- name: mongodb-v6.0
554560
tasks:
555561
- name: .server-version
556562
display_name: "* MongoDB v6.0"
557563
run_on:
558564
- rhel87-small
565+
expansions:
566+
VERSION: "6.0"
559567
tags: [coverage_tag]
560568
- name: mongodb-v7.0
561569
tasks:
562570
- name: .server-version
563571
display_name: "* MongoDB v7.0"
564572
run_on:
565573
- rhel87-small
574+
expansions:
575+
VERSION: "7.0"
566576
tags: [coverage_tag]
567577
- name: mongodb-v8.0
568578
tasks:
569579
- name: .server-version
570580
display_name: "* MongoDB v8.0"
571581
run_on:
572582
- rhel87-small
583+
expansions:
584+
VERSION: "8.0"
573585
tags: [coverage_tag]
574586
- name: mongodb-rapid
575587
tasks:
576588
- name: .server-version
577589
display_name: "* MongoDB rapid"
578590
run_on:
579591
- rhel87-small
592+
expansions:
593+
VERSION: rapid
580594
tags: [coverage_tag]
581595
- name: mongodb-latest
582596
tasks:
583597
- name: .server-version
584598
display_name: "* MongoDB latest"
585599
run_on:
586600
- rhel87-small
601+
expansions:
602+
VERSION: latest
587603
tags: [coverage_tag]
588604

589605
# Stable api tests

‎.evergreen/scripts/generate_config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ def create_server_version_variants() -> list[BuildVariant]:
7474
for version in ALL_VERSIONS:
7575
display_name = get_variant_name("* MongoDB", version=version)
7676
variant = create_variant(
77-
[".server-version"], display_name, host=DEFAULT_HOST, tags=["coverage_tag"]
77+
[".server-version"],
78+
display_name,
79+
version=version,
80+
host=DEFAULT_HOST,
81+
tags=["coverage_tag"],
7882
)
7983
variants.append(variant)
8084
return variants

‎test/asynchronous/test_collection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ async def test_create_index(self):
335335
await db.test.create_index(["hello", ("world", DESCENDING)])
336336
await db.test.create_index({"hello": 1}.items()) # type:ignore[arg-type]
337337

338+
# TODO: PYTHON-5491 - remove version max
339+
@async_client_context.require_version_max(8, 0, -1)
338340
async def test_drop_index(self):
339341
db = self.db
340342
await db.test.drop_indexes()

‎test/asynchronous/unified_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,8 @@ def maybe_skip_test(self, spec):
564564
self.skipTest("CSOT not implemented for watch()")
565565
if "cursors" in class_name:
566566
self.skipTest("CSOT not implemented for cursors")
567+
if "dropindex on collection" in description:
568+
self.skipTest("PYTHON-5491")
567569
if (
568570
"tailable" in class_name
569571
or "tailable" in description

‎test/test_collection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ def test_create_index(self):
333333
db.test.create_index(["hello", ("world", DESCENDING)])
334334
db.test.create_index({"hello": 1}.items()) # type:ignore[arg-type]
335335

336+
# TODO: PYTHON-5491 - remove version max
337+
@client_context.require_version_max(8, 0, -1)
336338
def test_drop_index(self):
337339
db = self.db
338340
db.test.drop_indexes()

‎test/unified_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ def maybe_skip_test(self, spec):
563563
self.skipTest("CSOT not implemented for watch()")
564564
if "cursors" in class_name:
565565
self.skipTest("CSOT not implemented for cursors")
566+
if "dropindex on collection" in description:
567+
self.skipTest("PYTHON-5491")
566568
if (
567569
"tailable" in class_name
568570
or "tailable" in description

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /