From 788cf976bf4332b4e6aba9a0349dbbd7c3e835eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kope=C4=87?= Date: Mon, 16 Dec 2024 14:21:27 +0100 Subject: [PATCH] Tests fixes --- .../ui/api/DictApiHttpServiceSpec.scala | 21 ++++++++++++++++--- docs/Changelog.md | 1 + 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/designer/server/src/test/scala/pl/touk/nussknacker/ui/api/DictApiHttpServiceSpec.scala b/designer/server/src/test/scala/pl/touk/nussknacker/ui/api/DictApiHttpServiceSpec.scala index c695c49d5f0..8a9d36af310 100644 --- a/designer/server/src/test/scala/pl/touk/nussknacker/ui/api/DictApiHttpServiceSpec.scala +++ b/designer/server/src/test/scala/pl/touk/nussknacker/ui/api/DictApiHttpServiceSpec.scala @@ -31,8 +31,14 @@ class DictApiHttpServiceSpec .post(s"$nuDesignerHttpAddress/api/processDefinitionData/${Streaming.stringify}/dicts") .Then() .statusCode(200) - .equalsJsonBody("[]") - + .equalsJsonBody( + s"""[ + | { + | "id" : "integer_dict", + | "label" : "integer_dict" + | } + |]""".stripMargin + ) } "return proper list for expected type String" in { @@ -83,6 +89,10 @@ class DictApiHttpServiceSpec .statusCode(200) .equalsJsonBody( s"""[ + | { + | "id": "integer_dict", + | "label": "integer_dict" + | }, | { | "id" : "long_dict", | "label" : "long_dict" @@ -91,7 +101,7 @@ class DictApiHttpServiceSpec ) } - "return proper list for expected type BigDecimal" in { + "return proper list for expected type BigInteger" in { given() .when() .basicAuthAllPermUser() @@ -107,6 +117,11 @@ class DictApiHttpServiceSpec .statusCode(200) .equalsJsonBody( s"""[ + | + | { + | "id": "integer_dict", + | "label": "integer_dict" + | }, | { | "id" : "long_dict", | "label" : "long_dict" diff --git a/docs/Changelog.md b/docs/Changelog.md index 964d82c3cd9..7e34bf551dd 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -29,6 +29,7 @@ * [#7332](https://github.com/TouK/nussknacker/pull/7332) Handle scenario names with spaces when performing migration tests, they were ignored * [#7346](https://github.com/TouK/nussknacker/pull/7346) OpenAPI enricher: ability to configure common secret for any security scheme * [#7307](https://github.com/TouK/nussknacker/pull/7307) Added StddevPop, StddevSamp, VarPop and VarSamp aggregators +* [#7341](https://github.com/TouK/nussknacker/pull/7341) Added possibility to choose presets and define lists for Integer typed parameter inputs in fragments. ## 1.18