File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Tests/Nest.Tests.Integration/Cluster Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,16 @@ public class NodeStats
1010 {
1111 [ JsonProperty ( "timestamp" ) ]
1212 public long Timestamp { get ; internal set ; }
13+
1314 [ JsonProperty ( "name" ) ]
1415 public string Name { get ; internal set ; }
16+
1517 [ JsonProperty ( "transport_address" ) ]
1618 public string TransportAddress { get ; internal set ; }
17- [ JsonProperty ( "hostname" ) ]
18- public string Hostname { get ; internal set ; }
19+
20+ // TODO: Rename to Host in 2.0
21+ [ JsonProperty ( "host" ) ]
22+ public string Hostname { get ; internal set ; }
1923
2024 [ JsonProperty ( "indices" ) ]
2125 public NodeStatsIndexes Indices { get ; internal set ; }
Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ public void NodeStats()
3939 var r = this . Client . NodesStats ( ) ;
4040 Assert . True ( r . IsValid ) ;
4141 Assert . IsNotNull ( r . Nodes ) ;
42- var node = r . Nodes . Values . First ( ) ;
4342
43+ var node = r . Nodes . Values . First ( ) ;
44+ Assert . IsNotNull ( node . Hostname ) ;
4445 Assert . IsNotNull ( node . Indices ) ;
4546 Assert . IsNotNull ( node . FileSystem ) ;
4647 Assert . IsNotNull ( node . OS ) ;
You can’t perform that action at this time.
0 commit comments