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
a661fa9d
Commit
a661fa9d
authored
7 years ago
by
AHMADABB
Browse files
Options
Downloads
Patches
Plain Diff
Gitignore adds + first Draft of ATS security
parent
c9e378d4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.settings/.gitignore
+1
-0
1 addition, 0 deletions
.settings/.gitignore
OneM2M_Testcases_CSE_Release_2_SEC_STF531.ttcn
+107
-0
107 additions, 0 deletions
OneM2M_Testcases_CSE_Release_2_SEC_STF531.ttcn
with
109 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
a661fa9d
/.project
/.project
/.classpath
This diff is collapsed.
Click to expand it.
.settings/.gitignore
0 → 100644
+
1
−
0
View file @
a661fa9d
/com.testingtech.ttworkbench.core.prefs
This diff is collapsed.
Click to expand it.
OneM2M_Testcases_CSE_Release_2_SEC_STF531.ttcn
0 → 100644
+
107
−
0
View file @
a661fa9d
/**
* Copyright Notification
* No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* © 2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC).
* All rights reserved.
*
* @author ETSI
* @version $URL: https://oldforge.etsi.org/svn/oneM2M/branches/Release1/ttcn/OneM2M_Testcases.ttcn $
* $Id: OneM2M_Testcases.ttcn 347 2017-08-11 08:48:20Z reinaortega $
* @desc Module containing test cases for oneM2M
*
*/
module
OneM2M_Testcases_CSE_Release_2_SEC_STF531
{
import
from
OneM2M_TestSystem
all
;
import
from
OneM2M_Templates
all
;
import
from
OneM2M_Types
all
;
//{type XSD.ID};
import
from
OneM2M_TypesAndValues
all
;
import
from
OneM2M_Pixits
all
;
import
from
LibCommon_Time
all
;
import
from
OneM2M_Pics
all
;
import
from
OneM2M_Functions
all
;
import
from
OneM2M_PermutationFunctions
all
;
import
from
XSD
all
;
//Demos used for validation purposes
group
oneM2M_demos
{
group
helpingTestCases
{
//These are not part of the test suite, just for verification purposes
testcase
TC_DELETE_RESOURCES
()
runs
on
AeSimu
system
CseSystem
{
timer
t_ac
:=
5.0
;
var
integer
i
;
var
XSD
.
ID
v_resourceAddress
;
var
RequestPrimitive
v_request
;
map
(
self
:
mcaPort
,
system
:
mcaPort
);
for
(
i
:=
0
;
i
<
lengthof
(
PX_RESOURCES_TO_BE_DELETED
);
i
:=
i
+
1
)
{
v_resourceAddress
:=
f_getResourceAddress
()
&
"/"
&
PX_RESOURCES_TO_BE_DELETED
[
i
];
v_request
:=
valueof
(
m_delete
(
v_resourceAddress
,
PX_SUPER_AE_ID
));
mcaPort
.
send
(
m_request
(
v_request
));
t_ac
.
start
;
alt
{
[]
mcaPort
.
receive
(
mw_response
(
mw_responsePrimitiveOK
))
{
t_ac
.
stop
;
log
(
__SCOPE__
&
":Resource deleted"
);
setverdict
(
pass
);
}
[]
mcaPort
.
receive
(
mw_response
(
mw_responsePrimitiveKO
))
{
t_ac
.
stop
;
log
(
__SCOPE__
&
":Error while deleting resource"
);
setverdict
(
fail
);
}
[]
mcaPort
.
receive
{
t_ac
.
stop
;
log
(
__SCOPE__
&
":Unexpected message received"
);
setverdict
(
inconc
);
}
[]
t_ac
.
timeout
{
log
(
__SCOPE__
&
":No answer while deleting resource"
);
setverdict
(
inconc
);
}
}
}
unmap
(
self
:
mcaPort
,
system
:
mcaPort
);
stop
;
}
}
//end group helpingTestCases
}
//end group oneM2M_demos
group
CSE
{
group
ESPrim
{
testcase
TC_CSE_ESC_001
()
runs
on
AeSimu
system
CseSystem
{
var
MsgIn
v_response
;
var
integer
v_aeIndex
:=
-
1
;
var
template
RequestPrimitive
v_requestNotify
:=
m_notifyEmpty
;
//Test component configuration
f_cf02Up
();
// Test adapter configuration
// Preamble
v_aeIndex
:=
f_cse_preamble_registerAe
();
//c_CRUDNDi);
//TestBody
v_requestNotify
.
primitiveContent
:=
{
securityInfo
:=
m_contentSecurityInfo
(
int6
)};
v_requestNotify
.
primitiveContent
.
securityInfo
.
escertkeMessage
:=
''
O
;
}
}
// end of group ESPrim
}
//end group CSE
}
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