Skip to content

Commit e5959ed

Browse files
committed
Add more unit-tests for IndicesStats
1 parent fde4409 commit e5959ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ public void TestAllTheUrls()
113113
Do("POST", "/_bulk", c => c.IndexMany(Enumerable.Range(0, 10).Select(i => new Doc { Id = i.ToString() })));
114114
Do("POST", "/customindex/customtype/_bulk", c => c.IndexMany(Enumerable.Range(0, 10).Select(i => new Doc { Id = i.ToString() }), index: "customindex", type: "customtype"));
115115
Do("GET", "/_stats", c => c.IndicesStats());
116+
Do("GET", "/my_index/_stats", c => c.IndicesStats(s => s.Index("my_index")));
117+
Do("GET", "/my_index/_stats?types=type1", c => c.IndicesStats(s => s.Index("my_index").Types(new TypeNameMarker[] { "type1" })));
118+
Do("GET", "/my_index/_stats?types=type1%2Ctype2", c => c.IndicesStats(s => s.Index("my_index").Types(new TypeNameMarker[] { "type1", "type2" })));
116119
Do("GET", "/mydefaultindex/_stats", c => c.IndicesStats(s => s.Index<Doc>()));
117120
Do("PUT", "/mydefaultindex/doc/_mapping", c => c.Map<Doc>(m => m.MapFromAttributes()));
118121
Do("PUT", "/mycustomindex/doc/_mapping", c => c.Map<Doc>(m => m.Index("mycustomindex")));

0 commit comments

Comments
 (0)