Skip to content

Commit e171d13

Browse files
committed
Fix full mapping test
If store and enable are the same values as the server are configured as the items are not returned back as response when get-mapping are executed.
1 parent aa15d2e commit e171d13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tests/Nest.Tests.Integration/Core/GetFieldMapping/GetFieldMappingTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void SpecialFields_AreInspectable()
111111
.SearchAnalyzer("default")
112112
.StoreTermVectorPositions()
113113
)
114-
.IndexField(i=>i.Enabled(false).Store())
114+
.IndexField(i=>i.Enabled(true).Store(true))
115115
.SizeField(i=>i.Enabled(false).Store(false))
116116
.IdField(i => i
117117
.Index("not_analyzed")
@@ -168,7 +168,8 @@ public void SpecialFields_AreInspectable()
168168

169169
var indexField = fieldMappingResponse.MappingFor<SpecialDto>("_index") as IndexFieldMapping;
170170
indexField.Should().NotBeNull();
171-
indexField.Enabled.Should().BeFalse();
171+
indexField.Enabled.Should().BeTrue();
172+
indexField.Store.Should().BeTrue();
172173

173174
var typeField = fieldMappingResponse.MappingFor<SpecialDto>("_type") as TypeFieldMapping;
174175
typeField.Should().NotBeNull();

0 commit comments

Comments
 (0)