@@ -66,9 +66,12 @@ [I] public async Task XPackInfoResponse() => await Assert<XPackInfoResponse>(XPa
6666 r . Features . Watcher . Should ( ) . NotBeNull ( ) ;
6767 r . License . Should ( ) . NotBeNull ( ) ;
6868
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+
6973 if ( TestConfiguration . Instance . InRange ( ">=7.3.0" ) )
7074 {
71- r . Features . Flattened . Should ( ) . NotBeNull ( ) ;
7275 r . Features . Vectors . Should ( ) . NotBeNull ( ) ;
7376
7477 if ( TestConfiguration . Instance . InRange ( "<7.5.0" ) )
@@ -110,19 +113,22 @@ [I] public async Task XPackUsageResponse() => await Assert<XPackUsageResponse>(X
110113 r . Alerting . Execution . Should ( ) . NotBeNull ( ) ;
111114 r . Alerting . Watch . Should ( ) . NotBeNull ( ) ;
112115
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+
113123 if ( TestConfiguration . Instance . InRange ( ">=7.3.0" ) )
114124 {
115- r . Flattened . Should ( ) . NotBeNull ( ) ;
116125 r . Vectors . Should ( ) . NotBeNull ( ) ;
117126 r . VotingOnly . Should ( ) . NotBeNull ( ) ;
118127
119128 if ( TestConfiguration . Instance . InRange ( "<7.5.0" ) )
120129#pragma warning disable 618
121130 r . DataFrame . Should ( ) . NotBeNull ( ) ;
122131#pragma warning restore 618
123-
124- if ( TestConfiguration . Instance . InRange ( ">=7.6.0" ) )
125- r . Flattened . FieldCount . Should ( ) . HaveValue ( ) ;
126132 }
127133
128134 if ( TestConfiguration . Instance . InRange ( ">=7.5.0" ) )
0 commit comments