Skip to content

Commit d063085

Browse files
committed
Fix failing integration tests after Type property fix
1 parent 835f9c3 commit d063085

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/Tests/Tests/Indices/MappingManagement/GetMapping/GetMappingApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private static void AssertVisitedProperies(IGetMappingResponse response)
8989
response.Accept(visitor);
9090
visitor.CountsShouldContainKeyAndCountBe("type", 1);
9191
visitor.CountsShouldContainKeyAndCountBe("text", b ? 19 : 18);
92-
visitor.CountsShouldContainKeyAndCountBe("keyword", b ? 19 : 18);
92+
visitor.CountsShouldContainKeyAndCountBe("keyword", b ? 20 : 19);
9393
visitor.CountsShouldContainKeyAndCountBe("object", 8);
9494
visitor.CountsShouldContainKeyAndCountBe("number", 8);
9595
visitor.CountsShouldContainKeyAndCountBe("ip", 2);

src/Tests/Tests/Search/Request/SourceFilteringUsageTests.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ public class SourceFilteringUsageTests : SearchUsageTestBase
2626
{
2727
public SourceFilteringUsageTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
2828

29-
protected override object ExpectJson =>
30-
new
29+
protected override object ExpectJson => new
30+
{
31+
query = ProjectFilterExpectedJson,
32+
_source = new
3133
{
32-
_source = new
33-
{
34-
includes = new[] { "*" },
35-
excludes = new[] { "description" }
36-
}
37-
};
34+
includes = new[] { "*" },
35+
excludes = new[] { "description" }
36+
}
37+
};
3838

3939
protected override Func<SearchDescriptor<Project>, ISearchRequest> Fluent => s => s
40+
.Query(q => ProjectFilter)
4041
.Source(src => src
4142
.IncludeAll()
4243
.Excludes(e => e
@@ -49,6 +50,7 @@ public SourceFilteringUsageTests(ReadOnlyCluster cluster, EndpointUsage usage) :
4950
protected override SearchRequest<Project> Initializer =>
5051
new SearchRequest<Project>
5152
{
53+
Query = ProjectFilter,
5254
Source = new SourceFilter
5355
{
5456
Includes = "*",

src/Tests/Tests/Search/SearchUsageTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected override LazyResponses ClientUsage() => Calls(
2626

2727
protected TermQuery ProjectFilter = new TermQuery
2828
{
29-
Field = Infer.Field<Project>(p => p.Name),
29+
Field = Infer.Field<Project>(p => p.Type),
3030
Value = Project.TypeName
3131
};
3232

0 commit comments

Comments
 (0)