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
d3c9fef8
Commit
d3c9fef8
authored
3 years ago
by
Yann Garcia
Browse files
Options
Downloads
Patches
Plain Diff
Update support of 3GPP T8 interface
parent
7fe1685d
No related branches found
No related tags found
1 merge request
!63
Merge Release4-onwards into Release4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LibOneM2M/OneM2M_Templates.ttcn
+12
-0
12 additions, 0 deletions
LibOneM2M/OneM2M_Templates.ttcn
OneM2M_Testcases_CSE_Release_3.ttcn
+21
-1
21 additions, 1 deletion
OneM2M_Testcases_CSE_Release_3.ttcn
with
33 additions
and
1 deletion
LibOneM2M/OneM2M_Templates.ttcn
+
12
−
0
View file @
d3c9fef8
...
...
@@ -8720,6 +8720,18 @@ module OneM2M_Templates {
responseBody
:=
{
problemDetails
:=
p_problemDetails
}
}
// End of template mw_t8_response_ko
template
(
omit
)
T8Response
m_t8_response_400_bad_request
(
in
template
(
present
)
ResponseHeaders
p_responseHeaders
)
modifies
m_t8_response_200_ok
:=
{
responseCode
:=
400
}
// End of template m_t8_response_400_bad_request
template
(
omit
)
T8Response
m_t8_response_404_not_found
(
in
template
(
present
)
ResponseHeaders
p_responseHeaders
)
modifies
m_t8_response_200_ok
:=
{
responseCode
:=
404
}
// End of template m_t8_response_404_not_found
template
T8Response
mw_t8_response_404_not_found
(
template
(
present
)
ResponseHeaders
p_responseHeaders
:=
?
,
template
ProblemDetails
p_problemDetails
:=
?
...
...
This diff is collapsed.
Click to expand it.
OneM2M_Testcases_CSE_Release_3.ttcn
+
21
−
1
View file @
d3c9fef8
...
...
@@ -17241,7 +17241,7 @@ module OneM2M_Testcases_CSE_Release_3 {
tc_ac.start;
alt {
[] mcnPortIn.receive(mw_t8Request(mw_t8_request_post(
-
, -, mw_request_body_deviceTriggeringDeliveryReportNotification(mw_deviceTriggeringDeliveryReportNotification)))) {
[] mcnPortIn.receive(mw_t8Request(mw_t8_request_post(
mw_uri_3gpp_device_triggering(-, "scs_as_id_05/transactions/cf_001", omit)
, -, mw_request_body_deviceTriggeringDeliveryReportNotification(mw_deviceTriggeringDeliveryReportNotification)))) {
tc_ac.stop;
// Send the response 200 OK
mcnPortIn.send(m_t8Response(m_t8_response_200_ok({
...
...
@@ -17253,8 +17253,28 @@ module OneM2M_Testcases_CSE_Release_3 {
})));
setverdict(pass);
}
[] mcnPortIn.receive(mw_t8Request(mw_t8_request_post(mw_uri_3gpp_device_triggering))) {
tc_ac.stop;
// Send the response 404 Not Found
mcnPortIn.send(m_t8Response(m_t8_response_404_not_found({
{ "Host", vc_scefSimuDesc.mcnPortIn.t8PortDesc.binding.httpBindingDesc.bindingDesc.sutAddress & ":" & int2str(vc_scefSimuDesc.mcnPortIn.t8PortDesc.binding.httpBindingDesc.bindingDesc.localPort) },
{ "User-Agent", "oneM2M Test Adapter - TTF001" },
{ "Accept", "*/*" },
{ "Content-Type", "application/json" },
{ "Connection", "keep-alive" }
})));
setverdict(fail);
}
[] mcnPortIn.receive(mw_t8Request) {
tc_ac.stop;
// Send the response 400 Bad Request
mcnPortIn.send(m_t8Response(m_t8_response_400_bad_request({
{ "Host", vc_scefSimuDesc.mcnPortIn.t8PortDesc.binding.httpBindingDesc.bindingDesc.sutAddress & ":" & int2str(vc_scefSimuDesc.mcnPortIn.t8PortDesc.binding.httpBindingDesc.bindingDesc.localPort) },
{ "User-Agent", "oneM2M Test Adapter - TTF001" },
{ "Accept", "*/*" },
{ "Content-Type", "application/json" },
{ "Connection", "keep-alive" }
})));
setverdict(fail);
}
[] tc_ac.timeout {
...
...
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