Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/core/azure-core-test/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/core/azure-core-test",
"Tag": "java/core/azure-core-test_7e6e34fcb0"
"Tag": "java/core/azure-core-test_60793a10db"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class TestProxyTestServer implements Closeable {

private static final String TEST_JSON_RESPONSE_BODY = "{\"modelId\":\"0cd2728b-210e-4c05-b706-f70554276bcc\","
+ "\"createdDateTime\":\"2022-08-31T00:00:00Z\",\"apiVersion\":\"2022-08-31\","
+ " \"accountKey\" : \"secret_account_key\"}";
+ " \"accountKey\" : \"secret_account_key\"," + " \"client_secret\" : \"secret_client_secret\"}";
private static final String TEST_XML_RESPONSE_BODY = "{\"Body\":\"<UserDelegationKey>"
+ "<SignedTid>sensitiveInformation=</SignedTid></UserDelegationKey>\",\"primaryKey\":"
+ "\"<PrimaryKey>fakePrimaryKey</PrimaryKey>\", \"TableName\":\"listtable09bf2a3d\"}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class TestProxyUtils {

private static final List<String> JSON_PROPERTIES_TO_REDACT
= new ArrayList<>(Arrays.asList("authHeader", "accountKey", "accessToken", "accountName", "applicationId",
"apiKey", "connectionString", "url", "host", "password", "userName"));
"apiKey", "client_secret", "connectionString", "url", "host", "password", "userName"));

private static final Map<String, String> HEADER_KEY_REGEX_TO_REDACT = new HashMap<String, String>() {
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ public void testRecordWithRedaction() {
.startsWith("https://REDACTED/fr/models//905a58f9-131e-42b8-8410-493ab1517d62"));
// custom sanitizers
assertEquals(REDACTED, record.getResponse().get("modelId"));
assertEquals(REDACTED, record.getResponse().get("client_secret"));
}
}

Expand Down