@@ -105,16 +105,14 @@ artifacts {
105105
106106test {
107107 useJUnitPlatform {
108- if (project. hasProperty(' runRemoteIntegrationTests' ) && project. property(' runRemoteIntegrationTests' ) == ' false' ) {
109- environment " connectionString" , project. CONNECTION_STRING_LOCAL
110- // Ensure to match the enumeration name exactly from DocumentDbTestEnvironmentType.
111- environment " CONFIGURED_ENVIRONMENTS" , " MONGODB40_FLAPDOODLE"
112- excludeTags ' remote-integration'
113- } else {
114- environment " connectionString" , project. CONNECTION_STRING_REMOTE
108+ if (project. hasProperty(' runRemoteIntegrationTests' ) && project. property(' runRemoteIntegrationTests' ) == ' true' ) {
115109 // Ensure to match the enumeration name exactly from DocumentDbTestEnvironmentType.
116110 environment " CONFIGURED_ENVIRONMENTS" , " MONGODB40_FLAPDOODLE,DOCUMENTDB40_SSH_TUNNEL"
117111 excludeTags ' local-integration'
112+ } else {
113+ // Ensure to match the enumeration name exactly from DocumentDbTestEnvironmentType.
114+ environment " CONFIGURED_ENVIRONMENTS" , " MONGODB40_FLAPDOODLE"
115+ excludeTags ' remote-integration'
118116 }
119117 }
120118}
@@ -401,16 +399,3 @@ signing {
401399 sign publishing. publications. mavenJava
402400}
403401
404- test {
405- useJUnitPlatform {
406- if (project. hasProperty(' runRemoteIntegrationTests' ) && project. property(' runRemoteIntegrationTests' ) == ' false' ) {
407- // Ensure to match the enumeration name exactly from DocumentDbTestEnvironmentType.
408- environment " CONFIGURED_ENVIRONMENTS" , " MONGODB40_FLAPDOODLE"
409- excludeTags ' remote-integration'
410- } else {
411- // Ensure to match the enumeration name exactly from DocumentDbTestEnvironmentType.
412- environment " CONFIGURED_ENVIRONMENTS" , " MONGODB40_FLAPDOODLE,DOCUMENTDB40_SSH_TUNNEL"
413- excludeTags ' local-integration'
414- }
415- }
416- }
0 commit comments