From 52b1fa231b7c368d96d1f7218b4ca2a206f07d67 Mon Sep 17 00:00:00 2001 From: Falk Zoll Date: Mon, 15 Jun 2020 16:52:27 +0200 Subject: [PATCH] Adapt testcases to Watson translation response changes. - Watson translation service response changed to be lower case, now. Adjust expected result of the testcases to be lower case, too. --- .../integration/CredentialsIBMSwiftActionWatsonTests.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/test/scala/runtime/integration/CredentialsIBMSwiftActionWatsonTests.scala b/tests/src/test/scala/runtime/integration/CredentialsIBMSwiftActionWatsonTests.scala index bd505f3..5811cdf 100644 --- a/tests/src/test/scala/runtime/integration/CredentialsIBMSwiftActionWatsonTests.scala +++ b/tests/src/test/scala/runtime/integration/CredentialsIBMSwiftActionWatsonTests.scala @@ -61,7 +61,7 @@ abstract class CredentialsIBMSwiftActionWatsonTests extends TestHelpers with Wsk withActivation(wsk.activation, wsk.action.invoke("testWatsonAction")) { activation => val response = activation.response response.result.get.fields.get("error") shouldBe empty - response.result.get.fields("translation") shouldBe JsString("Hola") + response.result.get.fields("translation") shouldBe JsString("hola") } } @@ -81,7 +81,7 @@ abstract class CredentialsIBMSwiftActionWatsonTests extends TestHelpers with Wsk withActivation(wsk.activation, wsk.action.invoke("testWatsonActionCodable")) { activation => val response = activation.response response.result.get.fields.get("error") shouldBe empty - response.result.get.fields("translation") shouldBe JsString("Hola") + response.result.get.fields("translation") shouldBe JsString("hola") } }