Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/test-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

STACK_VERSION:
- 7.x-SNAPSHOT
- 7.11-SNAPSHOT

TEST_SUITE:
- free
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,4 @@ A small HTTP server will be spun up locally on port 8000 through which you can v
This software is Copyright (c) 2014-2019 by Elasticsearch BV.

This is free software, licensed under: [The Apache License Version 2.0](https://github.com/elastic/elasticsearch-net/blob/master/license.txt).

3 changes: 3 additions & 0 deletions src/Nest/Cluster/NodesInfo/NodeRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public enum NodeRole
[EnumMember(Value = "data_cold")]
DataCold,

[EnumMember(Value = "data_frozen")]
DataFrozen,

[EnumMember(Value = "data_content")]
DataContent,

Expand Down
21 changes: 16 additions & 5 deletions tests/Tests/Search/Search/SearchApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -722,11 +722,22 @@ public SearchApiRuntimeFieldsTests(ReadOnlyCluster cluster, EndpointUsage usage)
protected override void ExpectResponse(ISearchResponse<Project> response)
{
response.Hits.Count.Should().BeGreaterThan(0);
response.Hits.First().Should().NotBeNull();
response.Hits.First().Type.Should().NotBeNullOrWhiteSpace();
response.Hits.First().Fields.ValueOf<ProjectRuntimeFields, string>(p => p.StartedOnDayOfWeek).Should().NotBeNullOrEmpty();
response.Hits.First().Fields.ValueOf<ProjectRuntimeFields, string>(p => p.ThirtyDaysFromStarted).Should().NotBeNullOrEmpty();
response.Hits.First().Fields[RuntimeFieldName].As<string[]>().FirstOrDefault().Should().NotBeNullOrEmpty();

foreach (var hit in response.Hits)
{
hit.Should().NotBeNull();

if (hit.Source.StartedOn != default)
{
hit.Fields.ValueOf<ProjectRuntimeFields, string>(p => p.StartedOnDayOfWeek).Should().NotBeNullOrEmpty();
hit.Fields.ValueOf<ProjectRuntimeFields, string>(p => p.ThirtyDaysFromStarted).Should().NotBeNullOrEmpty();
}

if (!string.IsNullOrEmpty(hit.Source.Type))
{
hit.Fields[RuntimeFieldName].As<string[]>().FirstOrDefault().Should().NotBeNullOrEmpty();
}
}
}
}
}