[DRIVERS-2313] Add unified test format valid-fail test for unsupported operation Created: 04/May/22  Updated: 04/Jan/23

Status: Implementing
Project: Drivers
Component/s: Unified Test Runner
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Jeremy Mikola
Resolution: Unresolved Votes: 0
Labels: yaml-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split to CDRIVER-4381 Add unified test format valid-fail te... Backlog
split to CSHARP-4166 Add unified test format valid-fail te... Backlog
split to CXX-2507 Add unified test format valid-fail te... Backlog
split to RUST-1312 Add unified test format valid-fail te... Backlog
split to NODE-4233 Add unified test format valid-fail te... Blocked
split to GODRIVER-2409 Add unified test format valid-fail te... Closed
split to MOTOR-958 Add unified test format valid-fail te... Closed
split to PHPLIB-865 Add unified test format valid-fail te... Closed
split to PYTHON-3255 Add unified test format valid-fail te... Closed
split to RUBY-2988 Add unified test format valid-fail te... Closed
split to JAVA-4603 Add unified test format valid-fail te... Closed
Driver Changes: Needed
Downstream Changes Summary:

A new operation-unsupported test file was added to the valid-fail directory of the unified test format. Drivers should sync with mongodb/specifications@5dbdfdb.

Driver Compliance:
Key Status/Resolution FixVersion
CDRIVER-4381 Backlog
CXX-2507 Backlog
CSHARP-4166 Backlog
GODRIVER-2409 Done
JAVA-4603 Fixed 4.7.0
NODE-4233 Blocked
MOTOR-958 Duplicate
PYTHON-3255 Duplicate
PHPLIB-865 Fixed 1.13.0-beta1, 1.13.0
RUBY-2988 Fixed 2.18.0
RUST-1312 Backlog
SWIFT-1563 Won't Do

 Description   

Summary

Drivers should be able to correctly fail or skip a test when an operation within the test is unsupported. We should add a test similar to operation-failure that tests that an unsupported driver operation (like unsupportedOperation) correctly fails.

Motivation

Who is the affected end user?

Driver devs.

How does this affect the end user?

Does not.

How likely is it that this problem or use case will occur?

This issue came up in a recent PR that tests the modifyCollection operation present in only some drivers.

If the problem does occur, what are the consequences and how severe are they?

Drivers may not be able to even sync tests with unsupported operations because they are not able to decode the file.

Is this issue urgent?

No.

Is this ticket required by a downstream team?

No.

Is this ticket only for tests?

Yes.



 Comments   
Comment by Githook User [ 06/May/22 ]

Author:

{'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}

Message: DRIVERS-2313: valid-fail test for unsupported operation (#1208)
Branch: master
https://github.com/mongodb/specifications/commit/5dbdfdbcbac15dc0b83aed104bc627c011a80adb

Comment by Jeremy Mikola [ 05/May/22 ]

https://github.com/mongodb/specifications/pull/1208

Generated at Thu Feb 08 08:25:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.