View Issue Details

IDProjectCategoryView StatusLast Update
0005112Compliance Test Tool (CTT) Unified Architecture1 - Script Issuepublic2020-04-24 17:15
ReporterV. Monfort Assigned ToAlexander Allmendinger  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinux 
Product Version1.03.341.389 
Fixed in Version1.03.341.391 
Summary0005112: Security/Security User Name Password /002.js wrongly skipped
Description

The test is skipped if there is a SecurityPolicy for the IdentityToken defined, but the condition test used is incorrect.
epSecureEncrypt.UserIdentityTokens[u].SecurityPolicy is used whereas the correct field name is
epSecureEncrypt.UserIdentityTokens[u].SecurityPolicyUri

I attached the patch used as additional information

Steps To Reproduce

Define a secured endpoint with username and None security policy for this user identity token.
The tests 002.js is skipped whereas it should be done.

Additional Information

--- a/acceptances_tests/Acceptation_S2OPC/maintree/Security/Security User Name Password/Test Cases/002.js
+++ b/acceptances_tests/Acceptation_S2OPC/maintree/Security/Security User Name Password/Test Cases/002.js
@@ -23,7 +23,7 @@ function username002() {
var strUserToken = UserTokenType.toString( epSecureEncrypt.UserIdentityTokens[u].TokenType );
if( epSecureEncrypt.UserIdentityTokens[u].TokenType === UserTokenType.UserName ) {
// skip test case if there is a SecurityPolicy for the IdentityToken defined

  • if (epSecureEncrypt.UserIdentityTokens[u].SecurityPolicy == SecurityPolicy.policyToString(SecurityPolicy.None)) {
  • if (epSecureEncrypt.UserIdentityTokens[u].SecurityPolicyUri == SecurityPolicy.policyToString(SecurityPolicy.None)) {
    foundIdentityToken = true;
    break;
    }
TagsNo tags attached.
Files Affected

Activities

Alexander Allmendinger

2019-10-24 14:53

developer   ~0011158

Script is using "SecurityPolicy" where it should use "SecurityPolicyUri". The suggested solution in the Mantis entry is working fine and fixed accordingly.

Paul Hunkar

2020-04-24 17:15

administrator   ~0011988

review in CMP call

Issue History

Date Modified Username Field Change
2019-09-27 13:59 V. Monfort New Issue
2019-09-27 14:33 Paul Hunkar Assigned To => Alexander Allmendinger
2019-09-27 14:33 Paul Hunkar Status new => assigned
2019-09-27 14:34 Paul Hunkar Summary Security/Security User Name Password /002.js wronlgy skipped => Security/Security User Name Password /002.js wrongly skipped
2019-10-24 14:53 Alexander Allmendinger Status assigned => resolved
2019-10-24 14:53 Alexander Allmendinger Resolution open => fixed
2019-10-24 14:53 Alexander Allmendinger Fixed in Version => 1.03.341.391
2019-10-24 14:53 Alexander Allmendinger Note Added: 0011158
2020-04-24 17:15 Paul Hunkar Status resolved => closed
2020-04-24 17:15 Paul Hunkar Note Added: 0011988