Skip to content
Snippets Groups Projects
Unverified Commit 1d922816 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Error log sharing: Endpoint for OTP changed. (DEV) #2559

parent 87b7856f
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ interface LogUploadAuthApiV1 { ...@@ -15,7 +15,7 @@ interface LogUploadAuthApiV1 {
@SerializedName("errorCode") val errorCode: String? @SerializedName("errorCode") val errorCode: String?
) )
@POST("version/v1/android/log") @POST("version/v1/android/els")
suspend fun authOTP( suspend fun authOTP(
@Body requestBody: ElsOtpRequestAndroid.ELSOneTimePasswordRequestAndroid @Body requestBody: ElsOtpRequestAndroid.ELSOneTimePasswordRequestAndroid
): AuthResponse ): AuthResponse
......
...@@ -77,7 +77,7 @@ class LogUploadAuthApiTest : BaseTest() { ...@@ -77,7 +77,7 @@ class LogUploadAuthApiTest : BaseTest() {
api.authOTP(requestBody = elsPayload) api.authOTP(requestBody = elsPayload)
webServer.takeRequest(5, TimeUnit.SECONDS)!!.apply { webServer.takeRequest(5, TimeUnit.SECONDS)!!.apply {
path shouldBe "/version/v1/android/log" path shouldBe "/version/v1/android/els"
body.readByteArray() shouldBe elsPayload.toByteArray() body.readByteArray() shouldBe elsPayload.toByteArray()
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment