Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ATS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TST
ATS
Commits
ead7fd4a
Commit
ead7fd4a
authored
5 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#76
Signed-off-by:
reinaortega
<
miguelangel.reinaortega@etsi.org
>
parent
d57c5ef4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
OneM2M_Testcases_CSE_Release_3.ttcn
+25
-25
25 additions, 25 deletions
OneM2M_Testcases_CSE_Release_3.ttcn
with
25 additions
and
25 deletions
OneM2M_Testcases_CSE_Release_3.ttcn
+
25
−
25
View file @
ead7fd4a
...
...
@@ -12144,10 +12144,10 @@ module OneM2M_Testcases_CSE_Release_3 {
*/
testcase TC_CSE_DAU_NTF_001() runs on Tester system CseSystem {
//Local variables
var AeSimu v_
ae1
:= AeSimu.create("
AE1
") alive;
var AeSimu v_
das
:= AeSimu.create("
DAS
") alive;
v_
ae1
.start(f_CSE_DAU_NTF_001());
v_
ae1
.done;
v_
das
.start(f_CSE_DAU_NTF_001());
v_
das
.done;
}
function f_CSE_DAU_NTF_001() runs on AeSimu {
...
...
@@ -12155,7 +12155,7 @@ module OneM2M_Testcases_CSE_Release_3 {
//Local variables
var ResponsePrimitive v_notificationResponse;
var integer v_dasIndex := -1;
var integer v_ae
2
Index := -1;
var integer v_ae
1
Index := -1;
var integer v_containerIndex, v_acpIndex := -1;
var integer v_dynamicAuthorizationConsultationIndex := -1;
...
...
@@ -12176,7 +12176,7 @@ module OneM2M_Testcases_CSE_Release_3 {
// Preamble
v_dasIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
f_cse_preamble_dau_master(v_ae
2
Index, v_acpIndex);//Configure aux AE
2
and create ACP
f_cse_preamble_dau_master(v_ae
1
Index, v_acpIndex);//Configure aux AE
1
and create ACP
var template RequestPrimitive v_createRequest1 := m_createDynamicAuthorizationConsultationBase(omit, true); //dynamicAuthorizationEnable set to TRUE
v_createRequest1.primitiveContent.dynamicAuthorizationConsultation.dynamicAuthorizationPoA := {f_getResourceAddress(v_dasIndex)};
...
...
@@ -12188,8 +12188,8 @@ module OneM2M_Testcases_CSE_Release_3 {
v_containerIndex := f_cse_createResource(int3, v_createRequest2, -1);
// Test Body
vc_ae
2
.start(f_cse_retrieveResource(v_containerIndex));
f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae
2
);
vc_ae
1
.start(f_cse_retrieveResource(v_containerIndex));
f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae
1
);
tc_ac.start;
alt {
...
...
@@ -12208,7 +12208,7 @@ module OneM2M_Testcases_CSE_Release_3 {
} else {
setverdict(fail, __SCOPE__ & ": SecurityInfoType element is not set to '1' (Dynamic Authorization Request)");
}
if(f_compareURIs(v_ae
2
Index, vc_request.primitive.requestPrimitive.primitiveContent.securityInfo.dasRequest.originator)) {
if(f_compareURIs(v_ae
1
Index, vc_request.primitive.requestPrimitive.primitiveContent.securityInfo.dasRequest.originator)) {
setverdict(pass, __SCOPE__ & ": Originator element set to the ID of the originator of the received request");
} else {
setverdict(fail, __SCOPE__ & ": Originator element not set to the ID of the originator of the received request");
...
...
@@ -12244,10 +12244,10 @@ module OneM2M_Testcases_CSE_Release_3 {
*/
testcase TC_CSE_DAU_NTF_002() runs on Tester system CseSystem {
//Local variables
var AeSimu v_
ae1
:= AeSimu.create("AE1") alive;
var AeSimu v_
das
:= AeSimu.create("AE1") alive;
v_
ae1
.start(f_CSE_DAU_NTF_002());
v_
ae1
.done;
v_
das
.start(f_CSE_DAU_NTF_002());
v_
das
.done;
}
...
...
@@ -12256,7 +12256,7 @@ module OneM2M_Testcases_CSE_Release_3 {
//Local variables
var ResponsePrimitive v_notificationResponse;
var integer v_dasIndex := -1;
var integer v_ae
2
Index := -1;
var integer v_ae
1
Index := -1;
var integer v_containerIndex, v_acpIndex := -1;
var integer v_dynamicAuthorizationConsultationIndex := -1;
...
...
@@ -12277,7 +12277,7 @@ module OneM2M_Testcases_CSE_Release_3 {
// Preamble
v_dasIndex := f_cse_preamble_registerAe();//c_CRUDNDi);
f_cse_preamble_dau_master(v_ae
2
Index, v_acpIndex);//Configure aux AE
2
and create ACP
f_cse_preamble_dau_master(v_ae
1
Index, v_acpIndex);//Configure aux AE
1
and create ACP
var template RequestPrimitive v_createRequest1 := m_createDynamicAuthorizationConsultationBase(omit, true); //dynamicAuthorizationEnable set to TRUE
v_createRequest1.primitiveContent.dynamicAuthorizationConsultation.dynamicAuthorizationPoA := {f_getResourceAddress(v_dasIndex)};
...
...
@@ -12289,8 +12289,8 @@ module OneM2M_Testcases_CSE_Release_3 {
v_containerIndex := f_cse_createResource(int3, v_createRequest2, -1);
// Test Body
vc_ae
2
.start(f_cse_retrieveResource(v_containerIndex));
f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae
2
);
vc_ae
1
.start(f_cse_retrieveResource(v_containerIndex));
f_aeSimu_checkComponentDoneAndGetVerdict(vc_ae
1
);
tc_ac.start;
alt {
...
...
@@ -12309,7 +12309,7 @@ module OneM2M_Testcases_CSE_Release_3 {
} else {
setverdict(fail, __SCOPE__ & ": SecurityInfoType element is not set to '1' (Dynamic Authorization Request)");
}
if(f_compareURIs(v_ae
2
Index, vc_request.primitive.requestPrimitive.primitiveContent.securityInfo.dasRequest.originator)) {
if(f_compareURIs(v_ae
1
Index, vc_request.primitive.requestPrimitive.primitiveContent.securityInfo.dasRequest.originator)) {
setverdict(pass, __SCOPE__ & ": Originator element set to the ID of the originator of the received request");
} else {
setverdict(fail, __SCOPE__ & ": Originator element not set to the ID of the originator of the received request");
...
...
@@ -12543,7 +12543,7 @@ module OneM2M_Testcases_CSE_Release_3 {
//Local variables
var RequestPrimitive v_notificationRequest;
var integer v_dasIndex := -1;
var integer v_ae
2
Index := -1;
var integer v_ae
1
Index := -1;
var integer v_containerIndex, v_acpIndex := -1;
var integer v_dynamicAuthorizationConsultationIndex := -1;
var template PrimitiveContent v_contentResponse;
...
...
@@ -12564,7 +12564,7 @@ module OneM2M_Testcases_CSE_Release_3 {
// Test adapter configuration
// Preamble
v_ae
2
Index := f_cse_preamble_registerAe();
v_ae
1
Index := f_cse_preamble_registerAe();
v_acpIndex := f_cse_preamble_createAcpAux(-, int61); //c_CUDNDi), no resource retrieval privilege
var template RequestPrimitive v_createRequest1 := m_createDynamicAuthorizationConsultationBase(omit, true); //dynamicAuthorizationEnable set to TRUE
...
...
@@ -12626,7 +12626,7 @@ module OneM2M_Testcases_CSE_Release_3 {
var AccessControlOperations v_grantedPrivileges := int61;
var Timestamp v_privilegesLifetime := "21001231T012345";
var integer v_dasIndex := -1;
var integer v_ae
2
Index := -1;
var integer v_ae
1
Index := -1;
var integer v_containerIndex, v_acpIndex := -1;
var integer v_dynamicAuthorizationConsultationIndex := -1;
...
...
@@ -12646,7 +12646,7 @@ module OneM2M_Testcases_CSE_Release_3 {
// Test adapter configuration
// Preamble
v_ae
2
Index := f_cse_preamble_registerAe();
v_ae
1
Index := f_cse_preamble_registerAe();
v_acpIndex := f_cse_preamble_createAcpAux(-, int61); //c_CUDNDi), no resource retrieval privilege
var template RequestPrimitive v_createRequest1 := m_createDynamicAuthorizationConsultationBase(omit, true); //dynamicAuthorizationEnable set to TRUE
...
...
@@ -12679,7 +12679,7 @@ module OneM2M_Testcases_CSE_Release_3 {
f_aeSimu_checkComponentDoneAndGetVerdict(vc_das);
v_request := valueof(m_retrieve(f_getResourceAddress(v_containerIndex), f_getOriginator(v_ae
2
Index)));
v_request := valueof(m_retrieve(f_getResourceAddress(v_containerIndex), f_getOriginator(v_ae
1
Index)));
v_request.resultContent := int8;//Child resources
f_send(e_mcaPort, m_request(v_request));
v_contentResponse2.accessControlPolicy := mw_contentAcp_any;
...
...
@@ -12759,7 +12759,7 @@ module OneM2M_Testcases_CSE_Release_3 {
var template PrimitiveContent v_contentResponse;
var DynAuthJWT v_token;
var integer v_dasIndex := -1;
var integer v_ae
2
Index := -1;
var integer v_ae
1
Index := -1;
var integer v_containerIndex, v_acpIndex := -1;
var integer v_dynamicAuthorizationConsultationIndex := -1;
...
...
@@ -12779,7 +12779,7 @@ module OneM2M_Testcases_CSE_Release_3 {
// Test adapter configuration
// Preamble
v_ae
2
Index := f_cse_preamble_registerAe();
v_ae
1
Index := f_cse_preamble_registerAe();
v_acpIndex := f_cse_preamble_createAcpAux(-, int61); //c_CUDNDi), no resource retrieval privilege
var template RequestPrimitive v_createRequest1 := m_createDynamicAuthorizationConsultationBase(omit, true); //dynamicAuthorizationEnable set to TRUE
...
...
@@ -12840,7 +12840,7 @@ module OneM2M_Testcases_CSE_Release_3 {
//Local variables
var RequestPrimitive v_notificationRequest;
var integer v_dasIndex := -1;
var integer v_ae
2
Index := -1;
var integer v_ae
1
Index := -1;
var integer v_containerIndex, v_acpIndex := -1;
var integer v_dynamicAuthorizationConsultationIndex := -1;
...
...
@@ -12860,7 +12860,7 @@ module OneM2M_Testcases_CSE_Release_3 {
// Test adapter configuration
// Preamble
v_ae
2
Index := f_cse_preamble_registerAe();
v_ae
1
Index := f_cse_preamble_registerAe();
v_acpIndex := f_cse_preamble_createAcpAux(-, int61); //c_CUDNDi), no resource retrieval privilege
var template RequestPrimitive v_createRequest1 := m_createDynamicAuthorizationConsultationBase(omit, true); //dynamicAuthorizationEnable set to TRUE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment