@@ -87,7 +87,7 @@ public function __construct(private string $internalClientUri)
8787 *
8888 * Atlas Data Lake also does not support killAllSessions.
8989 */
90- if ($ this -> isServerless () || FunctionalTestCase::isAtlas ($ internalClientUri ) || $ this ->isAtlasDataLake ()) {
90+ if (FunctionalTestCase::isAtlas ($ internalClientUri ) || $ this ->isAtlasDataLake ()) {
9191 $ this ->allowKillAllSessions = false ;
9292 }
9393
@@ -247,7 +247,6 @@ private function checkRunOnRequirements(array $runOnRequirements): void
247247 $ this ->getTopology (),
248248 $ this ->serverParameterHelper ,
249249 $ this ->isAuthenticated (),
250- $ this ->isServerless (),
251250 $ this ->isClientSideEncryptionSupported (),
252251 ];
253252 }
@@ -316,10 +315,6 @@ private function isAtlasDataLake(): bool
316315
317316 /**
318317 * Return whether the connection is authenticated.
319- *
320- * Note: if the connectionStatus command is not portable for serverless, it
321- * may be necessary to rewrite this to instead inspect the connection string
322- * or consult an environment variable, as is done in libmongoc.
323318 */
324319 private function isAuthenticated (): bool
325320 {
@@ -353,16 +348,6 @@ private function isClientSideEncryptionSupported(): bool
353348 return FunctionalTestCase::isCryptSharedLibAvailable () || FunctionalTestCase::isMongocryptdAvailable ();
354349 }
355350
356- /**
357- * Return whether serverless (i.e. proxy as mongos) is being utilized.
358- */
359- private function isServerless (): bool
360- {
361- $ isServerless = getenv ('MONGODB_IS_SERVERLESS ' );
362-
363- return $ isServerless !== false ? filter_var ($ isServerless , FILTER_VALIDATE_BOOLEAN ) : false ;
364- }
365-
366351 /**
367352 * Checks is a test format schema version is supported.
368353 */
@@ -530,7 +515,7 @@ private function createContext(): Context
530515 $ context ->setUrisForUseMultipleMongoses ($ singleMongosUri , $ multiMongosUri );
531516 }
532517
533- if ($ this ->getPrimaryServer ()->getType () === Server::TYPE_LOAD_BALANCER && ! $ this -> isServerless () ) {
518+ if ($ this ->getPrimaryServer ()->getType () === Server::TYPE_LOAD_BALANCER ) {
534519 $ singleMongosUri = getenv ('MONGODB_SINGLE_MONGOS_LB_URI ' );
535520 $ multiMongosUri = getenv ('MONGODB_MULTI_MONGOS_LB_URI ' );
536521
0 commit comments