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
d6a2a992
Commit
d6a2a992
authored
7 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Plain Diff
Merge branch 'Release1' into STF531-REG-CRE
parents
11bb1d1e
1f2ad48e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
LibOneM2M/OneM2M_Functions.ttcn
+18
-6
18 additions, 6 deletions
LibOneM2M/OneM2M_Functions.ttcn
LibOneM2M/OneM2M_TestSystem.ttcn
+1
-0
1 addition, 0 deletions
LibOneM2M/OneM2M_TestSystem.ttcn
LibOneM2M/OneM2M_Types.ttcn
+5
-0
5 additions, 0 deletions
LibOneM2M/OneM2M_Types.ttcn
with
24 additions
and
6 deletions
LibOneM2M/OneM2M_Functions.ttcn
+
18
−
6
View file @
d6a2a992
...
...
@@ -29,7 +29,8 @@ module OneM2M_Functions {
function
f_cf01Up
(
in
boolean
p_auxiliaryAe2Required
:=
false
)
runs
on
AeSimu
{
// Variables
vc_config
:=
e_cf01
;
vc_config
:=
e_cf01
;
vc_testSystemRole
:=
e_ae
;
// Map
map
(
self
:
mcaPort
,
system
:
mcaPort
);
...
...
@@ -56,7 +57,8 @@ module OneM2M_Functions {
function
f_cf01UpAe2
()
runs
on
AeSimu
{
// Variables
vc_config
:=
e_cf01
;
vc_config
:=
e_cf01
;
vc_testSystemRole
:=
e_ae
;
// Map
map
(
self
:
mcaPort
,
system
:
mcaPort
);
...
...
@@ -78,6 +80,7 @@ module OneM2M_Functions {
// Variables
vc_config
:=
e_cf02
;
vc_testSystemRole
:=
e_ae
;
vc_cse1
:=
CseSimu
.
create
(
"CSE1"
)
alive
;
// Map
...
...
@@ -100,7 +103,8 @@ module OneM2M_Functions {
function
f_cf02UpCse1
()
runs
on
CseSimu
{
// Variables
vc_config
:=
e_cf02
;
vc_config
:=
e_cf02
;
vc_testSystemRole
:=
e_cse
;
// Map
map
(
self
:
mccPort
,
system
:
mccPort
);
...
...
@@ -121,6 +125,7 @@ module OneM2M_Functions {
// Variables
vc_config
:=
e_cf02
;
vc_testSystemRole
:=
e_cse
;
vc_ae1
:=
AeSimu
.
create
(
"AE1"
)
alive
;
// Map
...
...
@@ -145,6 +150,7 @@ module OneM2M_Functions {
// Variables
vc_config
:=
e_cf02
;
vc_testSystemRole
:=
e_ae
;
// Map
map
(
self
:
mcaPort
,
system
:
mcaPort
);
...
...
@@ -164,6 +170,7 @@ module OneM2M_Functions {
// Variables
vc_config
:=
e_cf03
;
vc_testSystemRole
:=
e_cse
;
// Map
map
(
self
:
mcaPort
,
system
:
mcaPort
);
//TODO To be consistent, we should use mcaPortIn for AE testing
...
...
@@ -185,6 +192,7 @@ module OneM2M_Functions {
// Variables
vc_config
:=
e_cf04
;
vc_testSystemRole
:=
e_cse
;
// Map
map
(
self
:
mccPort
,
system
:
mccPort
);
...
...
@@ -2006,9 +2014,13 @@ module OneM2M_Functions {
if
(
p_resourceType
!=
int2
)
{
if
(
p_resourceType
==
int16
)
{
p_request
.
from_
:=
f_getOriginator
(
p_parentIndex
,
false
);
}
else
{
p_request
.
from_
:=
f_getOriginator
(
p_parentIndex
);
p_request
.
from_
:=
PX_CSE1_ID
;
}
else
{
if
(
vc_testSystemRole
==
e_ae
)
{
p_request
.
from_
:=
f_getOriginator
(
p_parentIndex
);
}
else
{
//vc_testSystemRole == e_cse
p_request
.
from_
:=
f_getOriginator
(
p_parentIndex
,
false
);
}
}
}
p_request
.
to_
:=
f_getResourceAddress
(
p_parentIndex
);
...
...
This diff is collapsed.
Click to expand it.
LibOneM2M/OneM2M_TestSystem.ttcn
+
1
−
0
View file @
d6a2a992
...
...
@@ -31,6 +31,7 @@ module OneM2M_TestSystem {
timer
tc_wait
:=
PX_TWAIT
;
//global variables
var
Configurations
vc_config
;
var
TestSystemRole
vc_testSystemRole
;
var
MyResourcesList
vc_resourcesList
;
var
IntegerList
vc_resourcesIndexToBeDeleted
:=
{};
var
integer
vc_aeAuxIndex
;
//TODO To be removed
...
...
This diff is collapsed.
Click to expand it.
LibOneM2M/OneM2M_Types.ttcn
+
5
−
0
View file @
d6a2a992
...
...
@@ -5597,6 +5597,11 @@ group OtherTypes {
e_cf03
,
e_cf04
};
type
enumerated
TestSystemRole
{
e_cse
,
e_ae
};
type
NhURI
ParentID
;
...
...
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