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
809e09b6
Commit
809e09b6
authored
5 years ago
by
Enrique Sabatel
Committed by
Miguel Angel Reina Ortega
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added TC_CSE_SEC_ROL_NTF_001
parent
9c5ac04b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LibOneM2M/OneM2M_TypesAndValues.ttcn
+2
-1
2 additions, 1 deletion
LibOneM2M/OneM2M_TypesAndValues.ttcn
OneM2M_Testcases_CSE_Release_3.ttcn
+72
-0
72 additions, 0 deletions
OneM2M_Testcases_CSE_Release_3.ttcn
with
74 additions
and
1 deletion
LibOneM2M/OneM2M_TypesAndValues.ttcn
+
2
−
1
View file @
809e09b6
...
...
@@ -4000,7 +4000,8 @@ group OtherTypes {
M2mServiceSubscriptionProfile_optional
m2mServiceSubscriptionProfile
,
ServiceSubscribedAppRule_optional
serviceSubscribedAppRule
,
Subscription_optional
subscription
,
TimeSeries_optional
timeSeries
TimeSeries_optional
timeSeries
,
Token_optional
token
}
with
{
variant
"untagged"
;
...
...
This diff is collapsed.
Click to expand it.
OneM2M_Testcases_CSE_Release_3.ttcn
+
72
−
0
View file @
809e09b6
...
...
@@ -8922,7 +8922,79 @@ module OneM2M_Testcases_CSE_Release_3 {
group Notify {
/**
* @desc Check that the IUT notifies the Originator about a token issuance associated to its role
*
*/
testcase TC_CSE_SEC_ROL_NTF_001() runs on Tester system CseSystem {
// Local variables
var CseSimu v_cse1 := CseSimu.create("CSE1") alive;
v_cse1.start(f_CSE_SEC_ROL_NTF_001());
v_cse1.done;
}
function f_CSE_SEC_ROL_NTF_001() runs on CseSimu system CseSystem {
// Local variables
var template RequestPrimitive v_requestPrimitive := mw_createToken;
var PrimitiveContent v_TRRemoteCseResource, v_ORRemoteCseResource;
var XSD.ID v_tokenResourceID, v_roleResourceID;
var integer v_TRRemoteCseIndex, v_ORRemoteCseIndex, v_tokenResourceIndex;
// Test control
if(not(PICS_ROL_SUPPORT)) {
setverdict(inconc, __SCOPE__ & ": Role Based Access Control Procedure support is required to run this test case");
stop;
}
// Test component configuration
f_cf04Up(-, true);
// Test adapter configuration
// Preamble
vc_cse2.start(f_cse_registerRemoteCse(m_createRemoteCSEBase)); //Token Repository
vc_cse2.stop;
v_TRRemoteCseIndex := f_getLatestResourceIndex(vc_cse2);
v_ORRemoteCseIndex := f_cse_registerRemoteCse(m_createRemoteCSEBase); //Originator
v_roleResourceID := fx_assign_originatorRole(); //Creates a role resource in Role Repository
vc_cse2.start(f_cse_createResourceHandler(v_requestPrimitive));
v_tokenResourceIndex := f_getLatestResourceIndex(vc_cse2);
// Test Body
tc_ac.start;
alt {
[] mccPortIn.receive(mw_request(mw_notifyNotification(mw_contentNotification(?)))) -> value vc_request {
tc_ac.stop;
if(ischosen(vc_request.primitive.requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.token)){
setverdict(pass, __SCOPE__ & ":Notification containing token representation received");
}
else{
setverdict(fail, __SCOPE__ & ":Wrong notification received");
}
setverdict(pass, __SCOPE__ & ": Update request containing tokenLink attribute received");
}
[] mccPortIn.receive(mw_request(?)) {
tc_ac.stop;
setverdict(fail, __SCOPE__ & ": Wrong message received");
}
[] tc_ac.timeout {
setverdict(fail, __SCOPE__ & ": No answer while waiting for Notification");
}
}
f_cseSimu_checkComponentDoneAndGetVerdict(vc_cse2);
// Postamble
f_cse_postamble_deleteResourcesCSE();
// Tear down
f_cf04Down();
}//end f_CSE_SEC_ROL_NTF_001
}//end group Notify
}//end group Roles
...
...
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