Skip to content

Commit df4e32c

Browse files
authored
Run versioned API tests with acceptApiVersion2 (#824)
1 parent 9ddc272 commit df4e32c

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.evergreen/config.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ tasks:
356356
- func: "run atlas data lake test"
357357

358358
- name: "test-requireApiVersion"
359-
tags: ["versioned_api"]
359+
tags: ["versioned-api"]
360360
commands:
361361
- func: "bootstrap mongo-orchestration"
362362
vars:
@@ -367,6 +367,16 @@ tasks:
367367
vars:
368368
API_VERSION: "1"
369369

370+
- name: "test-acceptApiVersion2"
371+
tags: ["versioned-api"]
372+
commands:
373+
- func: "bootstrap mongo-orchestration"
374+
vars:
375+
TOPOLOGY: "server"
376+
ORCHESTRATION_FILE: "versioned-api-testing.json"
377+
- func: "run tests"
378+
vars:
379+
TESTS: "versioned-api"
370380
# }}}
371381

372382

@@ -619,9 +629,9 @@ buildvariants:
619629
tasks:
620630
- name: "test-atlas-data-lake"
621631

622-
- matrix_name: "test-requireApiVersion"
632+
- matrix_name: "test-versioned-api"
623633
matrix_spec: { "php-edge-versions": "latest-stable", "versions": "latest", "driver-versions": "latest" }
624634
display_name: "Versioned API - ${versions}"
625635
run_on: rhel70
626636
tasks:
627-
- name: "test-requireApiVersion"
637+
- .versioned-api

.evergreen/run-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ case "$TESTS" in
5959
php vendor/bin/simple-phpunit --configuration phpunit.evergreen.xml --testsuite "Atlas Data Lake Test Suite" $PHPUNIT_OPTS
6060
;;
6161

62+
versioned-api)
63+
php vendor/bin/simple-phpunit --configuration phpunit.evergreen.xml --group versioned-api $PHPUNIT_OPTS
64+
;;
65+
6266
*)
6367
php vendor/bin/simple-phpunit --configuration phpunit.evergreen.xml $PHPUNIT_OPTS
6468
;;

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function provideTransactionsTests()
8585

8686
/**
8787
* @dataProvider provideVersionedApiTests
88+
* @group versioned-api
8889
*/
8990
public function testVersionedApi(UnifiedTestCase $test)
9091
{

0 commit comments

Comments
 (0)