Commit 1c688dc9 authored by Sheng Wang's avatar Sheng Wang
Browse files

rollback getCosmosConnectionConfig test

parent 0c838e65
Pipeline #24687 failed with stages
in 7 minutes and 53 seconds
......@@ -84,12 +84,6 @@ public class PartitionAndCacheService implements IMongodbConnection {
}
private String getReCosmosConnection(PartitionInfoAzure infoAzure) {
String connection1 = String.valueOf(infoAzure.getCosmosConnectionConfig().getValue());
String value = keyvaultClient.getSecretValue(connection1);
if (value != null) {
throw new AppException(HttpStatus.SC_INTERNAL_SERVER_ERROR, "Internal Server Error", "The value of cosmos-connection in Partition Service:" + value.substring(1, 5));
}
if (infoAzure.getReCosmosConnectionConfig() == null) {
throw new AppException(HttpStatus.SC_INTERNAL_SERVER_ERROR, "Internal Server Error", "The value of re-cosmos-connection in Partition Service is null");
}
......
......@@ -37,9 +37,6 @@ public class PartitionInfoAzure {
@SerializedName("name")
private Property nameConfig;
@SerializedName("cosmos-connection")
private Property cosmosConnectionConfig;
@SerializedName("re-cosmos-connection")
private Property reCosmosConnectionConfig;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment