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
d556bf04
Commit
d556bf04
authored
4 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Moved to XSD v2_27_0
Signed-off-by:
reinaortega
<
miguelangel.reinaortega@etsi.org
>
parent
3437f2a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
LibOneM2M/OneM2M_Types.ttcn
+35
-29
35 additions, 29 deletions
LibOneM2M/OneM2M_Types.ttcn
OneM2M_Testcases_AE_Release_1.ttcn
+2
-2
2 additions, 2 deletions
OneM2M_Testcases_AE_Release_1.ttcn
with
37 additions
and
31 deletions
LibOneM2M/OneM2M_Types.ttcn
+
35
−
29
View file @
d556bf04
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Copyright Notification
* Copyright Notification
* No part of this document may be reproduced, in an electronic retrieval system or otherwise, except as authorized by written permission.
* 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.
* 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).
*
�
2016, oneM2M Partners Type 1 (ARIB, ATIS, CCSA, ETSI, TIA, TSDSI, TTA, TTC).
* All rights reserved.
* All rights reserved.
*
*
* @author oneM2M/ETSI
* @author oneM2M/ETSI
...
@@ -1432,14 +1432,11 @@ with {
...
@@ -1432,14 +1432,11 @@ with {
type
enumerated
PermittedMediaTypes
type
enumerated
PermittedMediaTypes
{
{
application
cbor
,
cbor
,
application
json
,
json
,
application
xml
xml
}
}
with
{
with
{
variant
"text 'applicationcbor' as 'application/cbor'"
;
variant
"text 'applicationjson' as 'application/json'"
;
variant
"text 'applicationxml' as 'application/xml'"
;
variant
"name as uncapitalized"
;
variant
"name as uncapitalized"
;
};
};
...
@@ -1549,13 +1546,7 @@ with {
...
@@ -1549,13 +1546,7 @@ with {
};
};
type
XSD
.
String
DescriptorRepresentation
(
pattern
"application/rdf\+xml:1"
)
type
XSD
.
String
E2eCompactJWS
(
pattern
"([a-zA-Z0-9\-_=]+).([a-zA-Z0-9\-_=]*).([A-Za-z0-9\-_=])+"
)
with
{
variant
"name as uncapitalized"
;
};
type
XSD
.
String
E2eCompactJWS
(
pattern
"([a-zA-Z0-9\-_=]+).([a-zA-Z0-9\-_=]#(0,)).([A-Za-z0-9\-_=])+"
)
with
{
with
{
variant
"name as uncapitalized"
;
variant
"name as uncapitalized"
;
};
};
...
@@ -2305,7 +2296,7 @@ with {
...
@@ -2305,7 +2296,7 @@ with {
type
record
DynAuthDasRequest
type
record
DynAuthDasRequest
{
{
XSD
.
ID
originator
,
XSD
.
ID
originator
,
ResourceType
targetedResourceType
,
ResourceType
targetedResourceType
optional
,
Operation
operation
,
Operation
operation
,
record
{
record
{
Ipv4
ipv4Address
optional
,
Ipv4
ipv4Address
optional
,
...
@@ -2314,7 +2305,7 @@ type record DynAuthDasRequest
...
@@ -2314,7 +2305,7 @@ type record DynAuthDasRequest
LocationRegion
originatorLocation
optional
,
LocationRegion
originatorLocation
optional
,
record
length
(
1
..
infinity
)
of
RoleID
originatorRoleIDs
optional
,
record
length
(
1
..
infinity
)
of
RoleID
originatorRoleIDs
optional
,
AbsRelTimestamp
requestTimestamp
optional
,
AbsRelTimestamp
requestTimestamp
optional
,
XSD
.
AnyURI
targetedResourceID
optional
,
XSD
.
AnyURI
targetedResourceID
,
AbsRelTimestamp
proposedPrivilegesLifetime
optional
,
AbsRelTimestamp
proposedPrivilegesLifetime
optional
,
record
length
(
1
..
infinity
)
of
RoleID
roleIDsFromACPs
optional
,
record
length
(
1
..
infinity
)
of
RoleID
roleIDsFromACPs
optional
,
record
length
(
1
..
infinity
)
of
TokenID
tokenIDs
optional
record
length
(
1
..
infinity
)
of
TokenID
tokenIDs
optional
...
@@ -3480,7 +3471,6 @@ type enumerated ResponseStatusCode
...
@@ -3480,7 +3471,6 @@ type enumerated ResponseStatusCode
int4008
(
4008
),
int4008
(
4008
),
int4015
(
4015
),
int4015
(
4015
),
int4101
(
4101
),
int4101
(
4101
),
int4102
(
4102
),
int4103
(
4103
),
int4103
(
4103
),
int4104
(
4104
),
int4104
(
4104
),
int4105
(
4105
),
int4105
(
4105
),
...
@@ -3496,7 +3486,9 @@ type enumerated ResponseStatusCode
...
@@ -3496,7 +3486,9 @@ type enumerated ResponseStatusCode
int4115
(
4115
),
int4115
(
4115
),
int4116
(
4116
),
int4116
(
4116
),
int4117
(
4117
),
int4117
(
4117
),
int4124
(
4124
),
int4125
(
4125
),
int4126
(
4126
),
int4128
(
4128
),
int5000
(
5000
),
int5000
(
5000
),
int5001
(
5001
),
int5001
(
5001
),
int5103
(
5103
),
int5103
(
5103
),
...
@@ -3512,7 +3504,6 @@ type enumerated ResponseStatusCode
...
@@ -3512,7 +3504,6 @@ type enumerated ResponseStatusCode
int5210
(
5210
),
int5210
(
5210
),
int5211
(
5211
),
int5211
(
5211
),
int5212
(
5212
),
int5212
(
5212
),
int5219
(
5219
),
int5220
(
5220
),
int5220
(
5220
),
int6003
(
6003
),
int6003
(
6003
),
int6005
(
6005
),
int6005
(
6005
),
...
@@ -4159,6 +4150,21 @@ with {
...
@@ -4159,6 +4150,21 @@ with {
};
};
type
enumerated
SemanticFormat
{
int2
(
2
),
int3
(
3
),
int4
(
4
),
int5
(
5
),
int6
(
6
),
int7
(
7
)
}
with
{
variant
"useNumber"
;
variant
"name as uncapitalized"
;
};
type
record
EventConfig
type
record
EventConfig
{
{
ResourceName
resourceName
,
ResourceName
resourceName
,
...
@@ -4604,7 +4610,7 @@ type record Group
...
@@ -4604,7 +4610,7 @@ type record Group
MemberType
memberType
,
MemberType
memberType
,
XSD
.
NonNegativeInteger
currentNrOfMembers
,
XSD
.
NonNegativeInteger
currentNrOfMembers
,
XSD
.
PositiveInteger
maxNrOfMembers
,
XSD
.
PositiveInteger
maxNrOfMembers
,
record
length
(
0
..
infinity
)
of
XSD
.
AnyURI
memberIDs
,
//TODO A list that can be empty
record
of
XSD
.
AnyURI
memberIDs
,
ListOfURIs
membersAccessControlPolicyIDs
optional
,
ListOfURIs
membersAccessControlPolicyIDs
optional
,
XSD
.
Boolean
memberTypeValidated
optional
,
XSD
.
Boolean
memberTypeValidated
optional
,
ConsistencyStrategy
consistencyStrategy
optional
,
ConsistencyStrategy
consistencyStrategy
optional
,
...
@@ -5569,7 +5575,7 @@ with {
...
@@ -5569,7 +5575,7 @@ with {
};
};
type
record
length
(
0
..
infinity
)
of
XSD
.
AnyURI
URIList
//TODO Allow URIList to be empty as defined in PRO
type
record
of
XSD
.
AnyURI
URIList
with
{
with
{
variant
"name as uncapitalized"
;
variant
"name as uncapitalized"
;
variant
"list"
;
variant
"list"
;
...
@@ -5757,7 +5763,7 @@ type record SemanticDescriptor
...
@@ -5757,7 +5763,7 @@ type record SemanticDescriptor
ListOfURIs
announceTo
optional
,
ListOfURIs
announceTo
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
XSD
.
ID
creator
optional
,
XSD
.
ID
creator
optional
,
DescriptorRepresentation
descriptorRepresentation
optional
,
SemanticFormat
descriptorRepresentation
optional
,
Sparql
semanticOpExec
optional
,
Sparql
semanticOpExec
optional
,
XSD
.
Base64Binary
descriptor
,
XSD
.
Base64Binary
descriptor
,
XSD
.
AnyURI
ontologyRef
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
...
@@ -5793,7 +5799,7 @@ type record SemanticDescriptorAnnc
...
@@ -5793,7 +5799,7 @@ type record SemanticDescriptorAnnc
Timestamp
expirationTime
,
Timestamp
expirationTime
,
XSD
.
AnyURI
link
,
XSD
.
AnyURI
link
,
ListOfURIs
dynamicAuthorizationConsultationIDs
optional
,
ListOfURIs
dynamicAuthorizationConsultationIDs
optional
,
DescriptorRepresentation
descriptorRepresentation
optional
,
SemanticFormat
descriptorRepresentation
optional
,
Sparql
semanticOpExec
optional
,
Sparql
semanticOpExec
optional
,
XSD
.
Base64Binary
descriptor
optional
,
XSD
.
Base64Binary
descriptor
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
...
@@ -6331,7 +6337,7 @@ type record TimeSeriesInstance
...
@@ -6331,7 +6337,7 @@ type record TimeSeriesInstance
ListOfURIs
announceTo
optional
,
ListOfURIs
announceTo
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
AbsRelTimestamp
dataGenerationTime
,
AbsRelTimestamp
dataGenerationTime
,
XSD
.
AnySimpleType
content
,
//FIXME Use AnySimpleType instead
XSD
.
AnySimpleType
content
,
XSD
.
NonNegativeInteger
sequenceNr
optional
,
XSD
.
NonNegativeInteger
sequenceNr
optional
,
XSD
.
NonNegativeInteger
contentSize
XSD
.
NonNegativeInteger
contentSize
}
}
...
@@ -6355,7 +6361,7 @@ type record TimeSeriesInstanceAnnc
...
@@ -6355,7 +6361,7 @@ type record TimeSeriesInstanceAnnc
Timestamp
expirationTime
,
Timestamp
expirationTime
,
XSD
.
AnyURI
link
,
XSD
.
AnyURI
link
,
AbsRelTimestamp
dataGenerationTime
optional
,
AbsRelTimestamp
dataGenerationTime
optional
,
XSD
.
AnySimpleType
content
optional
,
//FIXME Use AnySimpleType instead
XSD
.
AnySimpleType
content
optional
,
XSD
.
NonNegativeInteger
sequenceNr
optional
,
XSD
.
NonNegativeInteger
sequenceNr
optional
,
XSD
.
NonNegativeInteger
contentSize
optional
XSD
.
NonNegativeInteger
contentSize
optional
}
}
...
@@ -6380,7 +6386,7 @@ type record TimeSeries
...
@@ -6380,7 +6386,7 @@ type record TimeSeries
ListOfURIs
dynamicAuthorizationConsultationIDs
optional
,
ListOfURIs
dynamicAuthorizationConsultationIDs
optional
,
ListOfURIs
announceTo
optional
,
ListOfURIs
announceTo
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
XSD
.
ID
creator
,
XSD
.
ID
creator
optional
,
XSD
.
NonNegativeInteger
maxNrOfInstances
optional
,
XSD
.
NonNegativeInteger
maxNrOfInstances
optional
,
XSD
.
NonNegativeInteger
maxByteSize
optional
,
XSD
.
NonNegativeInteger
maxByteSize
optional
,
XSD
.
NonNegativeInteger
maxInstanceAge
optional
,
XSD
.
NonNegativeInteger
maxInstanceAge
optional
,
...
@@ -7396,7 +7402,7 @@ group OptionalResourceTypes {
...
@@ -7396,7 +7402,7 @@ group OptionalResourceTypes {
MemberType
memberType
optional
,
MemberType
memberType
optional
,
XSD
.
NonNegativeInteger
currentNrOfMembers
optional
,
XSD
.
NonNegativeInteger
currentNrOfMembers
optional
,
XSD
.
PositiveInteger
maxNrOfMembers
optional
,
XSD
.
PositiveInteger
maxNrOfMembers
optional
,
record
length
(
0
..
infinity
)
of
XSD
.
AnyURI
memberIDs
optional
,
//TODO A list that can be empty
record
of
XSD
.
AnyURI
memberIDs
optional
,
ListOfURIs
membersAccessControlPolicyIDs
optional
,
ListOfURIs
membersAccessControlPolicyIDs
optional
,
XSD
.
Boolean
memberTypeValidated
optional
,
XSD
.
Boolean
memberTypeValidated
optional
,
ConsistencyStrategy
consistencyStrategy
optional
,
ConsistencyStrategy
consistencyStrategy
optional
,
...
@@ -7925,7 +7931,7 @@ group OptionalResourceTypes {
...
@@ -7925,7 +7931,7 @@ group OptionalResourceTypes {
ListOfURIs
announceTo
optional
,
ListOfURIs
announceTo
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
record
length
(
1
..
infinity
)
of
XSD
.
NCName
announcedAttribute
optional
,
XSD
.
ID
creator
optional
,
XSD
.
ID
creator
optional
,
DescriptorRepresentation
descriptorRepresentation
optional
,
SemanticFormat
descriptorRepresentation
optional
,
Sparql
semanticOpExec
optional
,
Sparql
semanticOpExec
optional
,
XSD
.
Base64Binary
descriptor
optional
,
XSD
.
Base64Binary
descriptor
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
...
@@ -7962,7 +7968,7 @@ group OptionalResourceTypes {
...
@@ -7962,7 +7968,7 @@ group OptionalResourceTypes {
Timestamp
expirationTime
optional
,
Timestamp
expirationTime
optional
,
XSD
.
AnyURI
link
optional
,
XSD
.
AnyURI
link
optional
,
ListOfURIs
dynamicAuthorizationConsultationIDs
optional
,
ListOfURIs
dynamicAuthorizationConsultationIDs
optional
,
DescriptorRepresentation
descriptorRepresentation
optional
,
SemanticFormat
descriptorRepresentation
optional
,
Sparql
semanticOpExec
optional
,
Sparql
semanticOpExec
optional
,
XSD
.
Base64Binary
descriptor
optional
,
XSD
.
Base64Binary
descriptor
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
XSD
.
AnyURI
ontologyRef
optional
,
...
...
This diff is collapsed.
Click to expand it.
OneM2M_Testcases_AE_Release_1.ttcn
+
2
−
2
View file @
d556bf04
...
@@ -634,7 +634,7 @@ module OneM2M_Testcases_AE_Release_1 {
...
@@ -634,7 +634,7 @@ module OneM2M_Testcases_AE_Release_1 {
var
template
UtTriggerPrimitive
v_utRequest
:=
m_utCreateAe
;
var
template
UtTriggerPrimitive
v_utRequest
:=
m_utCreateAe
;
var
template
RequestPrimitive
v_createAe
:=
mw_createAe
;
var
template
RequestPrimitive
v_createAe
:=
mw_createAe
;
var
universal
charstring
v_action
:=
__SCOPE__
&
": Please, send a valid AE CREATE Registration Request containing attribute ContentSerialization"
;
var
universal
charstring
v_action
:=
__SCOPE__
&
": Please, send a valid AE CREATE Registration Request containing attribute ContentSerialization"
;
v_utRequest
.
requestPrimitive
.
primitiveContent
.
aE
.
contentSerialization
:=
{
application
xml
};
v_utRequest
.
requestPrimitive
.
primitiveContent
.
aE
.
contentSerialization
:=
{
xml
};
v_utRequest
.
forcedFields
:=
{{
name
:=
"contentSerialization"
,
value_
:=
"UNINITIALIZED"
}};
v_utRequest
.
forcedFields
:=
{{
name
:=
"contentSerialization"
,
value_
:=
"UNINITIALIZED"
}};
v_createAe
.
primitiveContent
.
aE
.
contentSerialization
:=
?
;
//Check value other than UNINITIALIZED, done by typing
v_createAe
.
primitiveContent
.
aE
.
contentSerialization
:=
?
;
//Check value other than UNINITIALIZED, done by typing
v_cse1
.
start
(
f_AE_REG_CRE_002
(
v_utRequest
,
v_createAe
,
v_action
));
v_cse1
.
start
(
f_AE_REG_CRE_002
(
v_utRequest
,
v_createAe
,
v_action
));
...
@@ -1161,7 +1161,7 @@ module OneM2M_Testcases_AE_Release_1 {
...
@@ -1161,7 +1161,7 @@ module OneM2M_Testcases_AE_Release_1 {
var
template
RequestPrimitive
v_expectedUpdateRequestAe
;
var
template
RequestPrimitive
v_expectedUpdateRequestAe
;
var
template
UtTriggerPrimitive
v_utRequest
:=
m_utUpdateAe
;
var
template
UtTriggerPrimitive
v_utRequest
:=
m_utUpdateAe
;
var
universal
charstring
v_action
:=
__SCOPE__
&
": Please, send a valid UPDATE Request for AE updating attribute contentSerialization to "
;
var
universal
charstring
v_action
:=
__SCOPE__
&
": Please, send a valid UPDATE Request for AE updating attribute contentSerialization to "
;
v_utRequest
.
requestPrimitive
.
primitiveContent
.
aE
.
contentSerialization
:=
{
application
xml
};
v_utRequest
.
requestPrimitive
.
primitiveContent
.
aE
.
contentSerialization
:=
{
xml
};
v_utRequest
.
forcedFields
:=
{{
name
:=
"contentSerialization"
,
value_
:=
"UNINITIALIZED"
}};
v_utRequest
.
forcedFields
:=
{{
name
:=
"contentSerialization"
,
value_
:=
"UNINITIALIZED"
}};
v_expectedUpdateRequestAe
.
primitiveContent
.
aE
:=
mw_contentUpdateAe
;
v_expectedUpdateRequestAe
.
primitiveContent
.
aE
:=
mw_contentUpdateAe
;
...
...
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