Skip to content

Commit ad8f7de

Browse files
committed
updated test to reflect new property types
1 parent a7ff74e commit ad8f7de

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/test/java/ai/labs/testing/integration/RestBotEngineTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public void testPropertyExtraction() throws IOException {
442442
body("botVersion", equalTo(botResourceId.getVersion())).
443443
body("conversationSteps", hasSize(2)).
444444
body("conversationSteps[1].conversationStep[6].key", equalTo("properties:someMeaning")).
445-
body("conversationSteps[1].conversationStep[6].value[0].value", equalTo("someValue")).
445+
body("conversationSteps[1].conversationStep[6].value[0].valueString", equalTo("someValue")).
446446
body("environment", equalTo("unrestricted")).
447447
body("conversationState", equalTo(Status.READY.toString())).
448448
body("undoAvailable", equalTo(true)).
@@ -467,7 +467,7 @@ public void testPropertyExtractionWithPropertyInContext() throws IOException {
467467
body("conversationSteps[1].conversationStep[0].value.type", equalTo("expressions")).
468468
body("conversationSteps[1].conversationStep[0].value.value", equalTo("property(someCategory(someValue))")).
469469
body("conversationSteps[1].conversationStep[2].key", equalTo("properties:extracted")).
470-
body("conversationSteps[1].conversationStep[2].value[0].value", equalTo("someValue")).
470+
body("conversationSteps[1].conversationStep[2].value[0].valueString", equalTo("someValue")).
471471
body("environment", equalTo("unrestricted")).
472472
body("conversationState", equalTo(Status.READY.toString())).
473473
body("undoAvailable", equalTo(true)).

src/test/java/ai/labs/testing/integration/RestUseCaseTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ public void weatherBot() {
6767
body("conversationSteps[2].conversationStep[12].key", equalTo("output:text:current_weather_in_city")).
6868
body("conversationSteps[2].conversationStep[12].value.text", containsString("Vienna")).
6969
body("conversationSteps[2].conversationStep[12].value", not(containsString("[["))).
70-
body("conversationProperties.count.value", equalTo(3)).
71-
body("conversationProperties.chosenCity.value", equalTo("Vienna")).
70+
body("conversationProperties.count.valueInt", equalTo(3)).
71+
body("conversationProperties.chosenCity.valueString", equalTo("Vienna")).
7272
body("conversationProperties.chosenCity.scope", equalTo("conversation")).
7373
body("conversationProperties.currentWeatherDescription", nullValue());
7474

7575
response = sendUserInput(resourceId, conversationId, "weather",
7676
false, true);
7777

7878
response.then().assertThat().
79-
body("conversationProperties.count.value", equalTo(4));
79+
body("conversationProperties.count.valueInt", equalTo(4));
8080

8181

8282
//create new conversation, test longTerm memory
@@ -85,7 +85,7 @@ public void weatherBot() {
8585
false, true);
8686

8787
response.then().assertThat().
88-
body("conversationProperties.count.value", equalTo(6));
88+
body("conversationProperties.count.valueInt", equalTo(6));
8989
}
9090

9191
@Test
101 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)