Skip to content

Commit 376abf8

Browse files
committed
update default compatible-with tests to be 9
1 parent 04b7ef1 commit 376abf8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Elastic.Transport/Products/Elasticsearch/ElasticsearchProductRegistration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public ElasticsearchProductRegistration(Type markerType) : this()
5050
_metaHeaderProvider = new DefaultMetaHeaderProvider(clientVersionInfo, identifier);
5151

5252
// Only set this if we have a version.
53-
// If we don't have a version we won't apply the vendor-based REST API compatibility Accept header.
53+
// If we don't have a version, we won't apply the vendor-based REST API compatibility Accept header.
5454
if (clientVersionInfo.Major > 0)
5555
_clientMajorVersion = clientVersionInfo.Major;
5656

tests/Elastic.Transport.IntegrationTests/Http/ApiCompatibilityHeaderTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public async Task AddsExpectedVendorInformationForRestApiCompaitbility()
2525
responseMessage.RequestMessage.Content.Headers.ContentType.MediaType.Should().Be("application/vnd.elasticsearch+json");
2626
var parameter = responseMessage.RequestMessage.Content.Headers.ContentType.Parameters.Single();
2727
parameter.Name.Should().Be("compatible-with");
28-
parameter.Value.Should().Be("8");
28+
parameter.Value.Should().Be("9");
2929

3030
var acceptValues = responseMessage.RequestMessage.Headers.GetValues("Accept");
31-
acceptValues.Single().Replace(" ", "").Should().Be("application/vnd.elasticsearch+json;compatible-with=8");
31+
acceptValues.Single().Replace(" ", "").Should().Be("application/vnd.elasticsearch+json;compatible-with=9");
3232

3333
var contentTypeValues = responseMessage.RequestMessage.Content.Headers.GetValues("Content-Type");
34-
contentTypeValues.Single().Replace(" ", "").Should().Be("application/vnd.elasticsearch+json;compatible-with=8");
34+
contentTypeValues.Single().Replace(" ", "").Should().Be("application/vnd.elasticsearch+json;compatible-with=9");
3535
});
3636

3737
var nodePool = new SingleNodePool(Server.Uri);

0 commit comments

Comments
 (0)