Skip to content

Commit

Permalink
[Inference API] Use randomSecureStringOfLength instead of manually co…
Browse files Browse the repository at this point in the history
…nstructing a random SecureString (#108904)
  • Loading branch information
timgrein committed May 22, 2024
1 parent b591afc commit c775230
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
public class AzureOpenAiSecretSettingsTests extends AbstractWireSerializingTestCase<AzureOpenAiSecretSettings> {

public static AzureOpenAiSecretSettings createRandom() {
return new AzureOpenAiSecretSettings(
new SecureString(randomAlphaOfLength(15).toCharArray()),
new SecureString(randomAlphaOfLength(15).toCharArray())
);
return new AzureOpenAiSecretSettings(randomSecureStringOfLength(15), randomSecureStringOfLength(15));
}

public void testFromMap_ApiKey_Only() {
Expand Down

0 comments on commit c775230

Please sign in to comment.