From a712193477e37f982363d35b15404aa11755761d Mon Sep 17 00:00:00 2001 From: Asier Isayas Date: Tue, 9 Apr 2024 11:43:24 -0400 Subject: [PATCH] fix pr check tests --- src/Common/MongoProxyClient.ts | 2 +- src/ConfigContext.ts | 1 - src/Explorer/Tables/TableDataClient.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Common/MongoProxyClient.ts b/src/Common/MongoProxyClient.ts index b742a7f79..44400d874 100644 --- a/src/Common/MongoProxyClient.ts +++ b/src/Common/MongoProxyClient.ts @@ -697,7 +697,7 @@ function useMongoProxyEndpoint(api: string): boolean { ]; let canAccessMongoProxy: boolean = userContext.databaseAccount.properties.publicNetworkAccess === "Enabled"; if ( - configContext.MONGO_PROXY_ENDPOINT != MongoProxyEndpoints.Development && + configContext.MONGO_PROXY_ENDPOINT !== MongoProxyEndpoints.Development && userContext.databaseAccount.properties.ipRules?.length > 0 ) { canAccessMongoProxy = canAccessMongoProxy && configContext.MONGO_PROXY_OUTBOUND_IPS_ALLOWLISTED; diff --git a/src/ConfigContext.ts b/src/ConfigContext.ts index a8931ee64..435166b90 100644 --- a/src/ConfigContext.ts +++ b/src/ConfigContext.ts @@ -243,4 +243,3 @@ export async function initializeConfiguration(): Promise { } export { configContext }; - diff --git a/src/Explorer/Tables/TableDataClient.ts b/src/Explorer/Tables/TableDataClient.ts index 91cd233f5..c6882bc33 100644 --- a/src/Explorer/Tables/TableDataClient.ts +++ b/src/Explorer/Tables/TableDataClient.ts @@ -739,7 +739,7 @@ export class CassandraAPIDataClient extends TableDataClient { ]; let canAccessCassandraProxy: boolean = userContext.databaseAccount.properties.publicNetworkAccess === "Enabled"; if ( - configContext.CASSANDRA_PROXY_ENDPOINT != CassandraProxyEndpoints.Development && + configContext.CASSANDRA_PROXY_ENDPOINT !== CassandraProxyEndpoints.Development && userContext.databaseAccount.properties.ipRules?.length > 0 ) { canAccessCassandraProxy = canAccessCassandraProxy && configContext.CASSANDRA_PROXY_OUTBOUND_IPS_ALLOWLISTED;