-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add regression test for I18nString filter
The AQL fragment created by this filter generates an internal error in ArangoDB 3.12.0 due to a regression. The bug will be fixed with ArangoDB 3.12.1.
- Loading branch information
Showing
8 changed files
with
266 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
391 changes: 208 additions & 183 deletions
391
spec/regression/logistics/tests/descriptions.result.json
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
spec/regression/logistics/tests/filter-stringmap-in-root-entities.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
query filterI18nString { | ||
allCountries(filter: { descriptionI18nString_some: { value: "Germany" } }) { | ||
isoCode | ||
} | ||
} | ||
|
||
query filterI18nStringWithCorrectLanguage { | ||
allCountries(filter: { descriptionI18nString_some: { language: "en", value: "Germany" } }) { | ||
isoCode | ||
} | ||
} | ||
|
||
query filterI18nStringWithIncorrectLanguage { | ||
allCountries(filter: { descriptionI18nString_some: { language: "de", value: "Germany" } }) { | ||
isoCode | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
spec/regression/logistics/tests/filter-stringmap-in-root-entities.result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"filterI18nString": { | ||
"data": { | ||
"allCountries": [ | ||
{ | ||
"isoCode": "DE" | ||
} | ||
] | ||
} | ||
}, | ||
"filterI18nStringWithCorrectLanguage": { | ||
"data": { | ||
"allCountries": [ | ||
{ | ||
"isoCode": "DE" | ||
} | ||
] | ||
} | ||
}, | ||
"filterI18nStringWithIncorrectLanguage": { | ||
"data": { | ||
"allCountries": [] | ||
} | ||
} | ||
} |