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
Merge requests
!3
Reg
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Reg
REG
into
master
Overview
0
Commits
7
Pipelines
0
Changes
5
Merged
Miguel Angel Reina Ortega
requested to merge
REG
into
master
9 years ago
Overview
0
Commits
7
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Viewing commit
637b0de1
Prev
Next
Show latest version
5 files
+
514
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
637b0de1
First version of REG TPs test cases
· 637b0de1
Naum Spaseski
authored
9 years ago
OneM2M_Functions.ttcn
+
44
−
0
Options
@@ -106,6 +106,50 @@ module OneM2M_Functions {
return
v_aeAuxIndex
;
}
//Added by @Naum
function
f_preamble_prepareCSE
(
in
template
(
value
)
AccessControlOperations
p_allowedOperations
:=
int63
,
in
template
ListOfM2MID
p_allowedAEs
)
runs
on
M2M
return
integer
{
//c_CRUDNDi
var
integer
v_aeAuxIndex
:=
-
1
;
var
integer
v_acpAuxIndex
:=
-
1
;
if
(
PX_ACP_SUPPORT
){
v_acpAuxIndex
:=
f_createAccessControlPolicyAux
(
p_allowedOperations
:=
p_allowedOperations
);
}
if
(
v_acpAuxIndex
!=
-
1
)
{
//TODO:Discuss this case
}
else
{
var
ServiceSubscribedAppRule
v_serviceSubscribedAppRule
;
v_serviceSubscribedAppRule
.
applicableCredIDs
:=
{
"None"
};
v_serviceSubscribedAppRule
.
allowedApp_IDs
:=
{
"APP-ID"
};
v_serviceSubscribedAppRule
.
allowedAEs
:=
valueof
(
p_allowedAEs
);
mcaPort
.
send
(
m_request
(
m_createCSEBase
(
v_serviceSubscribedAppRule
)));
}
tc_ac
.
start
;
alt
{
[]
mcaPort
.
receive
(
mw_response
(
int2001
)){
tc_ac
.
stop
;
}
[]
mcaPort
.
receive
(
mw_responseKO
)
{
tc_ac
.
stop
;
setverdict
(
inconc
,
"Preamble: Error while registering application"
);
stop
;
}
[]
mcaPort
.
receive
{
tc_ac
.
stop
;
setverdict
(
inconc
,
"Preamble: Unexpected message received"
);
stop
;
}
[]
tc_ac
.
timeout
{
setverdict
(
inconc
,
"Preamble: No answer while registering resource"
);
stop
;
}
}
return
v_aeAuxIndex
;
}
}
//end group preambleFunctions
Loading