Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 616a233

Browse files
authored
Adapt testcases to Watson translation response changes. (#70)
- Watson translation service response changed to be lower case, now. Adjust expected result of the testcases to be lower case, too.
1 parent 9ddd2dd commit 616a233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/test/scala/runtime/integration/CredentialsIBMSwiftActionWatsonTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ abstract class CredentialsIBMSwiftActionWatsonTests extends TestHelpers with Wsk
6161
withActivation(wsk.activation, wsk.action.invoke("testWatsonAction")) { activation =>
6262
val response = activation.response
6363
response.result.get.fields.get("error") shouldBe empty
64-
response.result.get.fields("translation") shouldBe JsString("Hola")
64+
response.result.get.fields("translation") shouldBe JsString("hola")
6565
}
6666

6767
}
@@ -81,7 +81,7 @@ abstract class CredentialsIBMSwiftActionWatsonTests extends TestHelpers with Wsk
8181
withActivation(wsk.activation, wsk.action.invoke("testWatsonActionCodable")) { activation =>
8282
val response = activation.response
8383
response.result.get.fields.get("error") shouldBe empty
84-
response.result.get.fields("translation") shouldBe JsString("Hola")
84+
response.result.get.fields("translation") shouldBe JsString("hola")
8585
}
8686

8787
}

0 commit comments

Comments
 (0)