Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(NODE-3412): sync spec tests for serverless testing #2911

Merged
merged 7 commits into from
Jul 19, 2021

Conversation

emadum
Copy link
Contributor

@emadum emadum commented Jul 15, 2021

Syncing various spec tests for serverless testing:

  • crud
  • transactions
  • retryable reads
  • unified-test-format

NODE-3412, NODE-3353

@emadum emadum added the wip label Jul 15, 2021
@emadum emadum force-pushed the NODE-3412/4.0/skip-serverless-spec-tests branch from b557e83 to b68e844 Compare July 16, 2021 03:03
@emadum emadum removed the wip label Jul 16, 2021
@emadum emadum marked this pull request as ready for review July 16, 2021 03:41
@emadum emadum force-pushed the NODE-3412/4.0/skip-serverless-spec-tests branch from 3c559ef to 92d09f5 Compare July 16, 2021 04:19
@emadum emadum changed the title chore(NODE-3412): sync crud and unified-test-format spec tests chore(NODE-3412): sync various spec tests Jul 16, 2021
@emadum emadum changed the title chore(NODE-3412): sync various spec tests test(NODE-3412): sync spec tests for serverless testing Jul 16, 2021
@emadum emadum requested a review from durran July 16, 2021 15:32
@emadum emadum added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jul 16, 2021
@emadum emadum requested review from dariakp and removed request for durran July 19, 2021 14:30
@dariakp dariakp self-assigned this Jul 19, 2021
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question on one of these changes

operations.set('findOneAndDelete', async ({ entities, operation }) => {
const collection = entities.getEntity('collection', operation.object);
const { filter, ...opts } = operation.arguments;
return (await collection.findOneAndDelete(filter, opts)).value;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, how did this work before without extracting the value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we just didn't have any unified tests for this operation yet.

@dariakp dariakp added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Jul 19, 2021
@dariakp dariakp requested review from nbbeeken and durran July 19, 2021 15:21
@dariakp dariakp merged commit d270610 into 4.0 Jul 19, 2021
@dariakp dariakp deleted the NODE-3412/4.0/skip-serverless-spec-tests branch July 19, 2021 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
2 participants