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
b2213e66
Commit
b2213e66
authored
1 year ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix for f_CSE_DMR_CRE_021 to create local original resources
parent
e3aeeb53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
OneM2M_PermutationFunctions.ttcn
+22
-0
22 additions, 0 deletions
OneM2M_PermutationFunctions.ttcn
with
22 additions
and
0 deletions
OneM2M_PermutationFunctions.ttcn
+
22
−
0
View file @
b2213e66
...
...
@@ -4321,6 +4321,7 @@ module OneM2M_PermutationFunctions {
var
RequestPrimitive
v_request
;
var
integer
v_parentIndex
:=
-
1
;
var
integer
v_resourceIndex
:=
-
1
;
var
integer
v_originalResourceIndex
:=
-
1
;
var
integer
v_aEAnncIndex
:=
-
1
;
// Test control
...
...
@@ -4335,6 +4336,27 @@ module OneM2M_PermutationFunctions {
v_aEAnncIndex
:=
f_cse_createResource_cseSimu
(
int10002
,
m_createAEAnnc
(
-
,
vc_cseSimuDesc
.
cseId
,
omit
,
-
),
vc_remoteCseIndex
);
//AEAnnnc under RemoteCSE
//Create original resource locally if resource type is an announced variant
if
(
p_resourceType
==
int10001
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentAccessControlPolicy
(
m_contentCreateAcp
),
-
,
int1
);
}
else
if
(
p_resourceType
==
int10002
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentAe
(
m_contentCreateAe
(
omit
,
-
,
PX_TS_AE1
.
appId
,
omit
)),
-
,
int2
);
}
else
if
(
p_resourceType
==
int10003
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentContainer
(
m_contentCreateContainer
),
-
,
int3
);
}
else
if
(
p_resourceType
==
int10004
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentContentInstance
(
m_contentCreateContentInstance
),
-
,
int4
);
}
else
if
(
p_resourceType
==
int10009
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentGroup
(
m_contentCreateGroup
(
1
,
{
"NotInitialized"
},
omit
,
-
,
-
,
-
,
-
,
-
)),
-
,
int9
);
}
else
if
(
p_resourceType
==
int10029
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentTimeSeries
(
m_contentCreateTimeSeries
),
-
,
int29
);
}
else
if
(
p_resourceType
==
int10030
)
{
v_originalResourceIndex
:=
f_generateAndSetLocalResource
(
m_primitiveContentTimeSeriesInstance
(
m_contentCreateTimeSeriesInstance
),
-
,
int30
);
}
if
(
v_originalResourceIndex
!=
-
1
)
{
p_requestPrimitive
.
primitiveContent
:=
f_setLink
(
valueof
(
p_requestPrimitive
.
primitiveContent
),
f_getLocalResourceAddress
(
v_originalResourceIndex
,
-
,
e_spRelative
));
p_requestPrimitive
.
primitiveContent
:=
f_setExpirationTime
(
valueof
(
p_requestPrimitive
.
primitiveContent
),
vc_localResourcesList
[
v_originalResourceIndex
].
resource
);
}
// Test Body
v_request
:=
f_getCreateRequestPrimitive
(
p_resourceType
,
p_requestPrimitive
,
v_aEAnncIndex
);
...
...
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