@@ -66,9 +66,12 @@ [I] public async Task XPackInfoResponse() => await Assert<XPackInfoResponse>(XPa
66
66
r . Features . Watcher . Should ( ) . NotBeNull ( ) ;
67
67
r . License . Should ( ) . NotBeNull ( ) ;
68
68
69
+ // Flattened fields were moved from x-pack to core in 7.13.0 (https://github.com/elastic/elasticsearch/pull/68780)
70
+ if ( TestConfiguration . Instance . InRange ( ">=7.3.0" ) && TestConfiguration . Instance . InRange ( "<7.13.0" ) )
71
+ r . Features . Flattened . Should ( ) . NotBeNull ( ) ;
72
+
69
73
if ( TestConfiguration . Instance . InRange ( ">=7.3.0" ) )
70
74
{
71
- r . Features . Flattened . Should ( ) . NotBeNull ( ) ;
72
75
r . Features . Vectors . Should ( ) . NotBeNull ( ) ;
73
76
74
77
if ( TestConfiguration . Instance . InRange ( "<7.5.0" ) )
@@ -110,19 +113,22 @@ [I] public async Task XPackUsageResponse() => await Assert<XPackUsageResponse>(X
110
113
r . Alerting . Execution . Should ( ) . NotBeNull ( ) ;
111
114
r . Alerting . Watch . Should ( ) . NotBeNull ( ) ;
112
115
116
+ // Flattened fields were moved from x-pack to core in 7.13.0 (https://github.com/elastic/elasticsearch/pull/68780)
117
+ if ( TestConfiguration . Instance . InRange ( ">=7.3.0" ) && TestConfiguration . Instance . InRange ( "<7.13.0" ) )
118
+ r . Flattened . Should ( ) . NotBeNull ( ) ;
119
+
120
+ if ( TestConfiguration . Instance . InRange ( ">=7.6.0" ) && TestConfiguration . Instance . InRange ( "<7.13.0" ) )
121
+ r . Flattened . FieldCount . Should ( ) . HaveValue ( ) ;
122
+
113
123
if ( TestConfiguration . Instance . InRange ( ">=7.3.0" ) )
114
124
{
115
- r . Flattened . Should ( ) . NotBeNull ( ) ;
116
125
r . Vectors . Should ( ) . NotBeNull ( ) ;
117
126
r . VotingOnly . Should ( ) . NotBeNull ( ) ;
118
127
119
128
if ( TestConfiguration . Instance . InRange ( "<7.5.0" ) )
120
129
#pragma warning disable 618
121
130
r . DataFrame . Should ( ) . NotBeNull ( ) ;
122
131
#pragma warning restore 618
123
-
124
- if ( TestConfiguration . Instance . InRange ( ">=7.6.0" ) )
125
- r . Flattened . FieldCount . Should ( ) . HaveValue ( ) ;
126
132
}
127
133
128
134
if ( TestConfiguration . Instance . InRange ( ">=7.5.0" ) )
0 commit comments