Skip to content

Commit

Permalink
Update test/OrchardCore.Tests/Apis/Lucene/LuceneQueryTests.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Hisham Bin Ateya <[email protected]>
  • Loading branch information
emrahtokalak and hishamco authored Nov 9, 2024
1 parent 1b58df8 commit b92c03a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/OrchardCore.Tests/Apis/Lucene/LuceneQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@ public async Task LuceneQueryTemplateWithSpecialCharactersShouldNotThrowError()
await context.InitializeAsync();

// Act
// Queries containing special characters and spaces should not fail.
var index = "ArticleIndex";

var queryTemplate = "\r\r\n{% assign testVariable = \"48yvsghn194eft8axztaves25h\" %}\n\n{\n \"query\": {\n \"bool\": {\n \"must\": [\n { \"term\" : { \"Content.ContentItem.ContentType\" : \"Article\" } },\n { \"term\": { \"Content.ContentItem.Published\" : \"true\" } },\n ]\n }\n }\n}";

var content = await context.Client.GetAsync($"api/lucene/content?indexName={index}&query={queryTemplate}");
Expand Down

0 comments on commit b92c03a

Please sign in to comment.