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
Merge requests
!34
fix for accessing not present values in f_check_notificationContent
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix for accessing not present values in f_check_notificationContent
fix/checkvalue_f_check_notificationContent_2
into
Release1
Overview
0
Commits
1
Pipelines
0
Changes
Merged
Bogdan Stanca-Kaposta
requested to merge
fix/checkvalue_f_check_notificationContent_2
into
Release1
7 years ago
Overview
0
Commits
1
Pipelines
0
Changes
-
Expand
0
0
Merge request reports
Compare
Release1
Release1 (base)
and
latest version
latest version
a35ea640
1 commit,
7 years ago
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
LibOneM2M/OneM2M_Functions.ttcn
+
7
−
7
Options
@@ -1600,23 +1600,23 @@ module OneM2M_Functions {
if (ischosen(p_primitiveContent.aE)){
log("Representation contains AE resource representation");
if(is
chosen
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.aE)) {
if(is
value
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.aE)) {
v_matchResult := match(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.aE, p_primitiveContent.aE);
log("Expected primitiveContent");
}
else if(is
chosen
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.responsePrimitive)) {
else if(is
value
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.responsePrimitive
.primitiveContent.aE
)) {
v_matchResult :=match(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.responsePrimitive.primitiveContent.aE, p_primitiveContent.aE);
}
else if (is
chosen
(p_requestPrimitive.primitiveContent.aggregatedNotification)) {
else if (is
value
(p_requestPrimitive.primitiveContent.aggregatedNotification
.notification_list
)) {
v_matchResult := true;
v_numberOfAggregatedNotification := lengthof(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list);
for(i := 0; i< v_numberOfAggregatedNotification; i := i + 1){
if(is
chosen
(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list[i].notificationEvent.representation.resource)) {
if(is
value
(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list[i].notificationEvent.representation.resource
.aE
)) {
if(not (match(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list[i].notificationEvent.representation.resource.aE, p_primitiveContent.aE))){
v_matchResult := false;
}
}
else if(is
chosen
(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list[i].notificationEvent.representation.responsePrimitive)) {
else if(is
value
(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list[i].notificationEvent.representation.responsePrimitive
.primitiveContent.aE
)) {
if(not (match(p_requestPrimitive.primitiveContent.aggregatedNotification.notification_list[i].notificationEvent.representation.responsePrimitive.primitiveContent.aE, p_primitiveContent.aE))){
v_matchResult := false;
}
@@ -1630,10 +1630,10 @@ module OneM2M_Functions {
}
if (ischosen(p_primitiveContent.container)){
if(is
chosen
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.container)) {
if(is
value
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.container)) {
v_matchResult := match(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.resource.container, p_primitiveContent.container)
}
else if(is
chosen
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.responsePrimitive)) {
else if(is
value
(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.responsePrimitive
.primitiveContent.container
)) {
v_matchResult := match(p_requestPrimitive.primitiveContent.notification.notificationEvent.representation.responsePrimitive.primitiveContent.container, p_primitiveContent.container)
}
}
Loading