Skip to content

[BLOCKED] PHPLIB-1033 and PHPLIB-1042: Sync spec tests for retryable handshake errors #1011

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,16 @@ tasks:
- func: "start kms servers"
- func: "run tests"

- name: "test-replica_set-auth"
tags: ["replicaset"]
commands:
- func: "bootstrap mongo-orchestration"
vars:
TOPOLOGY: "replica_set"
AUTH: "auth"
- func: "start kms servers"
- func: "run tests"

- name: "test-sharded_cluster"
tags: ["sharded_cluster"]
commands:
Expand Down Expand Up @@ -704,15 +714,19 @@ axes:
display_name: Driver Version
values:
- id: "oldest-supported"
display_name: "PHPC 1.15.0"
display_name: "PHPC 1.16-dev"
variables:
EXTENSION_VERSION: "1.15.0"
# TODO: Replace once 1.16.0 is released
# EXTENSION_VERSION: "1.16.0"
EXTENSION_BRANCH: "master"
- id: "latest-stable"
display_name: "PHPC (1.15.x)"
display_name: "PHPC 1.16-dev"
variables:
EXTENSION_VERSION: "stable"
# TODO: Replace once 1.16.0 is released
# EXTENSION_VERSION: "1.16.0"
EXTENSION_BRANCH: "master"
- id: "latest-dev"
display_name: "PHPC (1.16-dev)"
display_name: "PHPC 1.16-dev"
variables:
EXTENSION_BRANCH: "master"

Expand Down Expand Up @@ -829,6 +843,7 @@ buildvariants:
tasks:
- name: "test-standalone"
- name: "test-replica_set"
- name: "test-replica_set-auth"
- name: "test-sharded_cluster"

# Test oldest-supported PHP, MongoDB, and driver versions with lowest dependencies on Debian
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"php": "^7.2 || ^8.0",
"ext-hash": "*",
"ext-json": "*",
"ext-mongodb": "^1.15.0",
"ext-mongodb": "^1.16.0",
"jean85/pretty-package-versions": "^1.2 || ^2.0.1",
"symfony/polyfill-php80": "^1.19"
},
Expand Down
26 changes: 26 additions & 0 deletions tests/UnifiedSpecTests/UnifiedSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,32 @@ public function provideLoadBalancers()
return $this->provideTests(__DIR__ . '/load-balancers/*.json');
}

/**
* @dataProvider provideRetryableReadsTests
*/
public function testRetryableReads(UnifiedTestCase $test): void
{
self::$runner->run($test);
}

public function provideRetryableReadsTests()
{
return $this->provideTests(__DIR__ . '/retryable-reads/*.json');
}

/**
* @dataProvider provideRetryableWritesTests
*/
public function testRetryableWrites(UnifiedTestCase $test): void
{
self::$runner->run($test);
}

public function provideRetryableWritesTests()
{
return $this->provideTests(__DIR__ . '/retryable-writes/*.json');
}

/**
* @dataProvider provideSessionsTests
*/
Expand Down
Loading