File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
src/Nest/Cluster/ClusterStats
tests/Tests/Cluster/ClusterStats Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ public class ClusterNodesStats
42
42
43
43
[ DataMember ( Name = "ingest" ) ]
44
44
public ClusterIngestStats Ingest { get ; internal set ; }
45
-
46
- [ DataMember ( Name = "architectures" ) ]
47
- public IReadOnlyCollection < ArchitectureStats > Architectures { get ; internal set ; }
48
45
}
49
46
50
47
public class NodePackagingType
@@ -180,6 +177,9 @@ public class ClusterOperatingSystemStats
180
177
181
178
[ DataMember ( Name = "pretty_names" ) ]
182
179
public IReadOnlyCollection < ClusterOperatingSystemPrettyNane > PrettyNames { get ; internal set ; }
180
+
181
+ [ DataMember ( Name = "architectures" ) ]
182
+ public IReadOnlyCollection < ArchitectureStats > Architectures { get ; internal set ; }
183
183
}
184
184
185
185
[ DataContract ]
Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ protected void Assert(ClusterNodesStats nodes)
73
73
nodes . OperatingSystem . AvailableProcessors . Should ( ) . BeGreaterThan ( 0 ) ;
74
74
nodes . OperatingSystem . AllocatedProcessors . Should ( ) . BeGreaterThan ( 0 ) ;
75
75
76
+ if ( Cluster . ClusterConfiguration . Version . InRange ( ">=7.12.0" ) )
77
+ {
78
+ nodes . OperatingSystem . Architectures . Should ( ) . NotBeNull ( ) ;
79
+ nodes . OperatingSystem . Architectures . Count . Should ( ) . BeGreaterThan ( 0 ) ;
80
+ nodes . OperatingSystem . Architectures . First ( ) . Architecture . Should ( ) . NotBeNullOrEmpty ( ) ;
81
+ nodes . OperatingSystem . Architectures . First ( ) . Count . Should ( ) . BeGreaterThan ( 0 ) ;
82
+ }
83
+
76
84
nodes . OperatingSystem . Names . Should ( ) . NotBeEmpty ( ) ;
77
85
78
86
if ( Cluster . ClusterConfiguration . Version >= "6.8.0" )
@@ -100,14 +108,6 @@ protected void Assert(ClusterNodesStats nodes)
100
108
101
109
if ( Cluster . ClusterConfiguration . Version >= "7.6.0" )
102
110
nodes . Ingest . Should ( ) . NotBeNull ( ) ;
103
-
104
- if ( Cluster . ClusterConfiguration . Version >= "7.12.0" )
105
- {
106
- nodes . Architectures . Should ( ) . NotBeNull ( ) ;
107
- nodes . Architectures . Count . Should ( ) . BeGreaterThan ( 0 ) ;
108
- nodes . Architectures . First ( ) . Architecture . Should ( ) . NotBeNullOrEmpty ( ) ;
109
- nodes . Architectures . First ( ) . Count . Should ( ) . BeGreaterThan ( 0 ) ;
110
- }
111
111
}
112
112
113
113
protected void Assert ( ClusterIndicesStats indices )
You can’t perform that action at this time.
0 commit comments