Skip to content

Commit

Permalink
More specific request regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jun 24, 2024
1 parent 526b186 commit f340925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/kotlin/com/vonage/client/kt/AbstractTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ abstract class AbstractTest {
expectedBodyParams: Map<String, Any>? = null) =
wiremock.requestServerBuilderStep({
url equalTo expectedUrl
headers contains "User-Agent" like "vonage-java-sdk.*"
headers contains "User-Agent" like "vonage-java-sdk\\/.+ java\\/.+"
if (authType != null) {
headers contains "Authorization" like when (authType) {
AuthType.JWT -> "Bearer eyJ.+"
AuthType.JWT -> "Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiUlMyNTYifQ(\\..+){2}"
AuthType.API_KEY_SECRET -> "Basic $apiKeySecretEncoded"
}
}
Expand Down

0 comments on commit f340925

Please sign in to comment.