File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tests/Tests/ClientConcepts/Connection Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 31
31
using HttpMethod = Elasticsearch . Net . HttpMethod ;
32
32
using FluentAssertions ;
33
33
using System . Text . RegularExpressions ;
34
+ using Tests . Core . Xunit ;
34
35
using Environment = System . Environment ;
35
36
36
37
namespace Tests . ClientConcepts . Connection
@@ -348,11 +349,13 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
348
349
}
349
350
}
350
351
351
- public class HttpConnectionEnvironmentalTests : ClusterTestClassBase < ReadOnlyCluster > , IDisposable
352
+ // using IntrusiveOperationCluster to avoid affecting other tests with the ENV VAR
353
+ [ SkipVersion ( "<7.13.0" , "Setting only valid in 7.13.0+" ) ]
354
+ public class HttpConnectionEnvironmentalTests : ClusterTestClassBase < IntrusiveOperationCluster > , IDisposable
352
355
{
353
356
private readonly string _previousEnvironmentVariable ;
354
357
355
- public HttpConnectionEnvironmentalTests ( ReadOnlyCluster cluster ) : base ( cluster ) =>
358
+ public HttpConnectionEnvironmentalTests ( IntrusiveOperationCluster cluster ) : base ( cluster ) =>
356
359
_previousEnvironmentVariable = Environment . GetEnvironmentVariable ( ConnectionConfiguration . ApiVersioningEnvironmentVariableName ) ;
357
360
358
361
[ I ]
@@ -366,7 +369,6 @@ public async Task HttpClientSetsApiVersioningHeaderWhenEnabledAsTrue()
366
369
responseMessage . RequestMessage . Content . Headers . ContentType . Should ( ) . NotBeNull ( ) ;
367
370
var contentType = responseMessage . RequestMessage . Content . Headers . ContentType . ToString ( ) ;
368
371
contentType . Should ( ) . Contain ( "compatible-with" ) ;
369
-
370
372
} ) ;
371
373
372
374
var r = connection . Request < StringResponse > ( requestData ) ;
You can’t perform that action at this time.
0 commit comments