Skip to content

Commit

Permalink
Tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkp96 committed Dec 18, 2024
1 parent 0a2b29b commit 788cf97
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -83,6 +89,10 @@ class DictApiHttpServiceSpec
.statusCode(200)
.equalsJsonBody(
s"""[
| {
| "id": "integer_dict",
| "label": "integer_dict"
| },
| {
| "id" : "long_dict",
| "label" : "long_dict"
Expand All @@ -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()
Expand All @@ -107,6 +117,11 @@ class DictApiHttpServiceSpec
.statusCode(200)
.equalsJsonBody(
s"""[
|
| {
| "id": "integer_dict",
| "label": "integer_dict"
| },
| {
| "id" : "long_dict",
| "label" : "long_dict"
Expand Down
1 change: 1 addition & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 788cf97

Please sign in to comment.