Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
TST
ATS
Commits
02e3d783
Commit
02e3d783
authored
Aug 30, 2019
by
Miguel Angel Reina Ortega
Browse files
Review of TC_CSE_GMG_CRE_002 (not finished)
Signed-off-by:
reinaortega
<
miguelangel.reinaortega@etsi.org
>
parent
0fa21ca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
18 deletions
+37
-18
LibOneM2M/OneM2M_Templates.ttcn
LibOneM2M/OneM2M_Templates.ttcn
+5
-0
OneM2M_Testcases_CSE_Release_1.ttcn
OneM2M_Testcases_CSE_Release_1.ttcn
+32
-18
No files found.
LibOneM2M/OneM2M_Templates.ttcn
View file @
02e3d783
...
...
@@ -1640,12 +1640,17 @@ module OneM2M_Templates {
template
(
value
)
PrimitiveContent
m_primitiveContentResponsePrimitive
(
template
ResponsePrimitive
p_responsePrimitive
)
:=
{
responsePrimitive
:=
valueof
(
p_responsePrimitive
)
}
template
(
value
)
PrimitiveContent
m_primitiveContentGroup
(
template
Group_optional
p_group
)
:=
{
group_
:=
valueof
(
p_group
)
}
template
PrimitiveContent
mw_primitiveContent
:=
?
;
template
PrimitiveContent
mw_primitiveContentNotification
(
template
Notification
p_notification
)
:=
{
notification
:=
p_notification
};
/**
* @desc Base primitiveContent for CREATE operation for AEAnnc resource
...
...
OneM2M_Testcases_CSE_Release_1.ttcn
View file @
02e3d783
...
...
@@ -10557,13 +10557,13 @@ module OneM2M_Testcases_CSE_Release_1 {
// Local variables
var MsgIn v_response;
var integer v_aeIndex := -1;
var
integer
v_
container
Index
:=
-
1
;
var
integer
v_
acp
Index
:=
-
1
;
var integer v_
targetResource
Index := -1;
var integer v_
cseBase
Index := -1;
var RequestPrimitive v_request;
var template RequestPrimitive v_containerCreateRequest := m_createContainerBase;
var template RequestPrimitive v_createRequest;
var
template
RequestPrimitive
v_createAcp
:=
m_createAcp
(
"NotInitialized"
,
"MyACP"
,
-
,
int61
);
//c_CUDNDi
var
XSD.ID v_targetResourceAddress;
// Test control
if(not(PICS_ACP_SUPPORT)) {
setverdict(inconc, __SCOPE__ & ": AccessControlPolicy support is required to run this test case");
...
...
@@ -10571,22 +10571,36 @@ module OneM2M_Testcases_CSE_Release_1 {
}
// Test component configuration
f_cf0
1
Up
();
f_cf0
2
Up();
// Test adapter configuration
// Preamble
v_cseBaseIndex := f_getLatestLocalResourceIndex(vc_cse1);
vc_cse1.start(f_cse_registerRemoteCse(m_createRemoteCSE_poa(-, -, -, -, {f_getCompletePoA()})));
f_aeSimu_checkComponentDoneAndGetVerdict(vc_cse1);
v_aeIndex := f_cse_preamble_registerAe();
//Creating resource in Hosting CSE
vc_cse1.start(f_generateAndSetLocalResource(valueof(m_primitiveContentContainer(m_contentCreateContainer)), v_cseBaseIndex, int3));
vc_cse1.done;
// Test Body
v_targetResourceAddress := f_getLatestLocalResourceAddress(vc_cse1, e_nonHierarchical, e_spRelative);
v_aeIndex
:=
f_cse_preamble_registerAe
(
-
,
-
);
//c_CRUDNDi
v_acpIndex
:=
f_cse_createResource
(
int1
,
v_createAcp
,
v_aeIndex
);
// AE child resource
v_containerCreateRequest
.
primitiveContent
.
container
.
accessControlPolicyIDs
:=
{
f_getResourceId
(
vc_resourcesList
[
v_acpIndex
].
resource
)};
v_containerIndex
:=
f_cse_createResource
(
int3
,
v_containerCreateRequest
,
v_aeIndex
);
// AE child resource
v_targetResourceIndex := f_getLatestLocalResourceIndex(vc_cse1);
v_createRequest
:=
m_createGroup
(
1
,
{
f_
getResource
Id
(
vc_resourcesList
[
v_containerIndex
].
resource
)
},
omit
,
int3
);
v_createRequest := m_createGroup(1, {
v_tar
getResource
Address
}, omit, int3);
v_request := f_getCreateRequestPrimitive(int9, v_createRequest, v_aeIndex); // creating group
// Test Body
vc_cse1.start(f_cse_retrieveResourceHandler(v_targetResourceIndex, -));
f_send(e_mca_port, m_request(v_request));
tc_ac.start;
alt {
...
...
@@ -10606,9 +10620,9 @@ module OneM2M_Testcases_CSE_Release_1 {
setverdict(fail, __SCOPE__ & ": No answer while retrieving resource");
}
}
f_
checkAeSimuStatus
(
);
f_
aeSimu_checkComponentDoneAndGetVerdict(vc_cse1
);
//Check to see if the resource is NOT present
if(f_cse_isResourceNotPresent(v_aeIndex, f_getResourceName(v_request.primitiveContent))){
setverdict(pass, __SCOPE__ & ":INFO: Resource not created");
...
...
@@ -10620,7 +10634,7 @@ module OneM2M_Testcases_CSE_Release_1 {
f_cse_postamble_deleteResources();
// Tear down
f_cf0
1
Down
();
f_cf0
2
Down();
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment