diff --git a/src/Tests/Tests/Document/Multiple/MultiGet/MultiGetApiTests.cs b/src/Tests/Tests/Document/Multiple/MultiGet/MultiGetApiTests.cs index 7ffe728a95e..edb120b17c3 100644 --- a/src/Tests/Tests/Document/Multiple/MultiGet/MultiGetApiTests.cs +++ b/src/Tests/Tests/Document/Multiple/MultiGet/MultiGetApiTests.cs @@ -168,8 +168,11 @@ protected override void ExpectResponse(MultiGetResponse response) hit.Id.Should().NotBeNullOrWhiteSpace(); hit.Found.Should().BeTrue(); hit.Version.Should().Be(1); - hit.SequenceNumber.Should().HaveValue(); - hit.PrimaryTerm.Should().HaveValue(); + if (base.Cluster.ClusterConfiguration.Version >= "6.8.0") + { + hit.PrimaryTerm.Should().BeGreaterOrEqualTo(1); + hit.SequenceNumber.Should().BeGreaterOrEqualTo(0); + } hit.Source.ShouldAdhereToSourceSerializerWhenSet(); } } diff --git a/src/Tests/Tests/Document/Single/DocumentCrudTests.cs b/src/Tests/Tests/Document/Single/DocumentCrudTests.cs index de50f961a49..5c2454e7906 100644 --- a/src/Tests/Tests/Document/Single/DocumentCrudTests.cs +++ b/src/Tests/Tests/Document/Single/DocumentCrudTests.cs @@ -78,6 +78,11 @@ [I] protected async Task DocumentIsUpdated() => await AssertOnGetAfterUpdate(r = { r.Source.Should().NotBeNull(); r.Version.Should().BeGreaterThan(1); + if (base.Cluster.ClusterConfiguration.Version >= "6.8.0") + { + r.SequenceNumber.Should().BeGreaterOrEqualTo(1); + r.PrimaryTerm.Should().BeGreaterThan(0); + } r.Source.Description.Should().EndWith("updated"); }); diff --git a/src/Tests/Tests/Document/Single/Get/GetApiTests.cs b/src/Tests/Tests/Document/Single/Get/GetApiTests.cs index 63a9fc7b46f..405f608b225 100644 --- a/src/Tests/Tests/Document/Single/Get/GetApiTests.cs +++ b/src/Tests/Tests/Document/Single/Get/GetApiTests.cs @@ -47,6 +47,11 @@ protected override void ExpectResponse(GetResponse response) response.SequenceNumber.Should().HaveValue(); response.PrimaryTerm.Should().HaveValue(); response.Source.ShouldAdhereToSourceSerializerWhenSet(); + if (base.Cluster.ClusterConfiguration.Version >= "6.8.0") + { + response.SequenceNumber.Should().BeGreaterOrEqualTo(0); + response.PrimaryTerm.Should().BeGreaterOrEqualTo(1); + } } }