View Issue Details

IDProjectCategoryView StatusLast Update
0006711Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2021-03-30 02:51
ReporterEtienne Rossignon Assigned ToPaul Hunkar  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.04.09.396 
Summary0006711: subscriptionDurable008 - Should reopen the subscription using same AuthentificationToken
Description

-008.js in Subscription Durable

In the subscriptionDurable008 script, the default sesssion is closed then reopened so that we can test that TransferSubscription is happening as expected.

It occurs that the first session uses the credential defined in the server configuration (username+passowrd)

The second session is created with Test.Connect() which by default, uses a anonymous token.

The spec says that in this case the call on TransferSubscription should fail with BadUserAccessDenied.
( see https://reference.opcfoundation.org/v104/Core/docs/Part4/5.13.7/)
The Client of the current Session is not operating on behalf of the same user as the Session that owns the Subscription.

Therefore the test fails ...


Solution

Make sure that second session is created with same user Identity token as the first one.

TagsNo tags attached.
Files Affected

Relationships

duplicate of 0006114 closedSebastian Allmendinger Activating a session with different user credentials in subscription Durable - Test cases 004, 008 

Activities

Etienne Rossignon

2021-03-27 10:44

reporter   ~0014100

An easy way to fix this is to close the default session and recreated it in the same way as for the second session.

function subscriptionDurable008() {
// add those two lines:
Test.Disconnect( { DeleteSubscriptions: true } );
Test.Connect();

Just an idea.

Etienne Rossignon

2021-03-27 11:05

reporter   ~0014101

The same issue affects subscriptionDurable004

May be the initialize.js script has to be updated instead.

Paul Hunkar

2021-03-30 02:51

administrator   ~0014112

duplicate - closed

Issue History

Date Modified Username Field Change
2021-03-27 10:27 Etienne Rossignon New Issue
2021-03-27 10:44 Etienne Rossignon Note Added: 0014100
2021-03-27 11:05 Etienne Rossignon Note Added: 0014101
2021-03-29 13:09 Sebastian Allmendinger Relationship added duplicate of 0006114
2021-03-30 02:51 Paul Hunkar Assigned To => Paul Hunkar
2021-03-30 02:51 Paul Hunkar Status new => closed
2021-03-30 02:51 Paul Hunkar Resolution open => duplicate
2021-03-30 02:51 Paul Hunkar Note Added: 0014112