diff --git a/src/test/kotlin/com/vonage/client/kt/AbstractTest.kt b/src/test/kotlin/com/vonage/client/kt/AbstractTest.kt index 324c4a9..3d28429 100644 --- a/src/test/kotlin/com/vonage/client/kt/AbstractTest.kt +++ b/src/test/kotlin/com/vonage/client/kt/AbstractTest.kt @@ -63,10 +63,10 @@ abstract class AbstractTest { expectedBodyParams: Map? = 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" } }