test: pin closed authentication token rejection status
This commit is contained in:
+1
-2
@@ -210,8 +210,7 @@ public sealed partial class Sdk2LifecycleSoakTests
|
|||||||
var failure = await Should.ThrowAsync<ServiceResultException>(async () =>
|
var failure = await Should.ThrowAsync<ServiceResultException>(async () =>
|
||||||
await fresh.ReadAsync(requestHeader, 0, TimestampsToReturn.Neither,
|
await fresh.ReadAsync(requestHeader, 0, TimestampsToReturn.Neither,
|
||||||
[new ReadValueId { NodeId = Raw(fresh, Scalar), AttributeId = Attributes.Value }], ct));
|
[new ReadValueId { NodeId = Raw(fresh, Scalar), AttributeId = Attributes.Value }], ct));
|
||||||
// Exact outcome is recorded and narrowed at the reviewed execution gate.
|
failure.StatusCode.ShouldBe(StatusCodes.BadSessionIdInvalid);
|
||||||
(failure.StatusCode == StatusCodes.BadSessionIdInvalid || failure.StatusCode == StatusCodes.BadSessionClosed).ShouldBeTrue();
|
|
||||||
requestHeader.AuthenticationToken.ShouldBe(oldAuthentication);
|
requestHeader.AuthenticationToken.ShouldBe(oldAuthentication);
|
||||||
(await fresh.BrowseNextAsync(null, false, [browse], ct)).Results[0].StatusCode.ShouldBe(StatusCodes.BadContinuationPointInvalid);
|
(await fresh.BrowseNextAsync(null, false, [browse], ct)).Results[0].StatusCode.ShouldBe(StatusCodes.BadContinuationPointInvalid);
|
||||||
var source = rig.Nm.HistorianDataSource.ShouldBeOfType<EventHistoryPagingOverTheWireTests.SqlLikeEventSource>();
|
var source = rig.Nm.HistorianDataSource.ShouldBeOfType<EventHistoryPagingOverTheWireTests.SqlLikeEventSource>();
|
||||||
|
|||||||
Reference in New Issue
Block a user