Commit 1795252b authored by piscione's avatar piscione
Browse files

MEC013 v3.1.1 RLOCKLOOK Draft TCs avaialable.

parent e956a413
Loading
Loading
Loading
Loading
+59 −9
Original line number Original line Diff line number Diff line
@@ -14,35 +14,77 @@ Default Tags TC_MEC_SRV_RLOCLOOK


*** Test Cases ***
*** Test Cases ***



TC_MEC_MEC013_SRV_RLOCLOOK_001_OK
TC_MEC_MEC013_SRV_RLOCLOOK_001_OK
    [Documentation]
    [Documentation]
    ...    Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node
    ...    Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node
    ...    when queried by a MEC Application
    ...    when queried by a MEC Application
    ...
    ...
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.7
    ...    Reference
    ...    OpenAPI    https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList
    ...    ETSI GS MEC 013 3.1.1 Clause 5.3.7
    ...    ETSI GS MEC 013 3.1.1 Clause 6.2.1
    ...    ETSI GS MEC 013 3.1.1 Clause 7.9.3.1


    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    INCLUDE_UNDEFINED_SCHEMAS
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    
    Get the access points list        ${ZONE_ID}
    Get the access points list by zone identifier    ${ZONE_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    AccessPointList
    Check HTTP Response Body Json Schema Is    AccessPointList
    Should Be Equal As Strings    ${response['body']['accessPointList']['zoneId']}    ${ZONE_ID}
    Should Be Equal As Strings    ${response['body']['zoneId']}    ${ZONE_ID}





TC_MEC_MEC013_SRV_RLOCLOOK_001_NF
TC_MEC_MEC013_SRV_RLOCLOOK_001_NF
    [Documentation]
    [Documentation]
    ...    Check that the IUT responds with an error when
    ...    Check that the IUT responds with an error when
    ...    a request for an unknown URI is sent by a MEC Application
    ...    a request for an URI that cannot be mapped to a valid resource URI
    ...    is sent by a MEC Application
    ...
    ...    Reference
    ...    ETSI GS MEC 013 3.1.1 Clause 5.3.7
    ...    ETSI GS MEC 013 3.1.1 Clause 6.2.1
    ...    ETSI GS MEC 013 3.1.1 Clause 7.9.3.1

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Get the access points list by zone identifier       ${NON_EXISTENT_ZONE_ID}
    Check HTTP Response Status Code Is    404
    


TC_MEC_MEC013_SRV_RLOCLOOK_002_OK
    [Documentation]
    ...    Check that the IUT responds with the radio nodes when queried 
    ...    by a MEC Application
    ...
    ...    Reference
    ...    ETSI GS MEC 013 3.1.1 Clause 5.3.7
    ...    ETSI GS MEC 013 3.1.1 Clause 6.2.1
    ...    ETSI GS MEC 013 3.1.1 Clause 7.10.3.1

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    
    Get the access points list by zone identifier and access point  ${ZONE_ID}    ${AP_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    AccessPointList
    Should Be Equal As Strings    ${response['body']['zoneId']}    ${ZONE_ID}
    Should Be Equal As Strings    ${response['body']['accessPoint'][0]['accessPointId']}    ${AP_ID}


TC_MEC_MEC013_SRV_RLOCLOOK_002_NF
    [Documentation]
    ...    Check that the IUT responds with an error when the 
    ...    radio nodes does not exist
    ...
    ...
    ...    Reference    ETSI GS MEC 013 V2.1.1, clause 7.3.7
    ...    Reference
    ...    ETSI GS MEC 013 3.1.1 Clause 5.3.7
    ...    ETSI GS MEC 013 3.1.1 Clause 6.2.1
    ...    ETSI GS MEC 013 3.1.1 Clause 7.10.3.1


    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    
    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    
    Get the access points list        ${NON_EXISTENT_ZONE_ID}
    Get the access points list by zone identifier and access point  ${ZONE_ID}    ${NON_EXISTENT_AP_ID}
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404




*** Keywords ***
*** Keywords ***
Get the access points list 
Get the access points list by zone identifier
    [Arguments]    ${zoneId}
    [Arguments]    ${zoneId}
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Set Headers    {"Authorization":"${TOKEN}"}
@@ -51,5 +93,13 @@ Get the access points list
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}




Get the access points list by zone identifier and access point
    [Arguments]    ${zoneId}    ${accessPointId}
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/queries/zones/${zoneId}/accessPoints/${accessPointId}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    


+4 −2
Original line number Original line Diff line number Diff line
*** Variables ***
*** Variables ***
# Generic variables
# Generic variables
${SCHEMA}                   http
${SCHEMA}                   http
${HOST}                     10.192.2.172
${HOST}                     127.0.0.1
${PORT}                     8081
${PORT}                     8081
${response}                         {}
${response}                         {}
${TOKEN}                            Basic YWxhZGRpbjpvcGVuc2VzYW1l
${TOKEN}                            Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot}        
${apiRoot}        
${apiName}        location
${apiName}        location
${apiVersion}     v2
${apiVersion}     v3


# Specific variables
# Specific variables
${ZONE_ID}                    5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${ZONE_ID}                    5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${NON_EXISTENT_ZONE_ID}       NON_EXISTENT_ZONE_ID
${NON_EXISTENT_ZONE_ID}       NON_EXISTENT_ZONE_ID
${AP_ID}                      ap01
${NON_EXISTENT_AP_ID}         NON_EXISTENT_AP_ID
 No newline at end of file
+254 −269
Original line number Original line Diff line number Diff line
{
{
	"accessPointList": {
                "description": "A type containing list of access points.",
                "description": "A type containing list of access points.",
                "properties": {
                "properties": {
                    "accessPoint": {
                    "accessPoint": {
@@ -14,18 +13,13 @@
                                    "x-etsi-mec-origin-type": "string"
                                    "x-etsi-mec-origin-type": "string"
                                },
                                },
                                "connectionType": {
                                "connectionType": {
							"description": "The connection type for the access point",
                                    "description": "This enumeration represents the connection type of an access point",
                                    "enum": [
                                    "enum": [
								"Femto",
                                        "LTE",
								"LTE-femto",
								"Smallcell",
								"LTE-smallcell",
                                        "Wifi",
                                        "Wifi",
								"Pico",
								"Micro",
								"Macro",
                                        "Wimax",
                                        "Wimax",
								"Unknown"
                                        "5G NR",
                                        "UNKNOWN"
                                    ],
                                    ],
                                    "type": "string"
                                    "type": "string"
                                },
                                },
@@ -38,19 +32,19 @@
                                "locationInfo": {
                                "locationInfo": {
                                    "properties": {
                                    "properties": {
                                        "accuracy": {
                                        "accuracy": {
									"description": "Horizontal accuracy / (semi-major) uncertainty of location provided in meters, as defined in [14]. Present only if \"shape\" equals 4, 5 or 6",
                                            "description": "Horizontal accuracy/(semi-major) uncertainty of location provided in meters, as defined in [14]. Present only if \"shape\" equals 4, 5 or 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "accuracyAltitude": {
                                        "accuracyAltitude": {
									"description": "Altitude accuracy / uncertainty of location provided in meters, as defined in [14]. Present only if \"shape\" equals 3 or 4",
                                            "description": "Altitude accuracy/uncertainty of location provided in meters, as defined in [14]. Present only if \"shape\" equals 3 or 4.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "accuracySemiMinor": {
                                        "accuracySemiMinor": {
									"description": "Horizontal accuracy / (semi-major) uncertainty of location provided in meters, as defined in [14]. Present only if \"shape\" equals 4, 5 or 6",
                                            "description": "Horizontal accuracy/(semi-major) uncertainty of location provided in meters, as defined in [14]. Present only if \"shape\" equals 4, 5 or 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
@@ -63,27 +57,27 @@
                                            "x-etsi-mec-origin-type": "Float"
                                            "x-etsi-mec-origin-type": "Float"
                                        },
                                        },
                                        "confidence": {
                                        "confidence": {
									"description": "Confidence by which the position of a target entity is known to be within the shape description, expressed as a percentage and defined in [14]. Present only if \"shape\" equals 1, 4 or 6",
                                            "description": "Confidence by which the position of a target entity is known to be within the shape description, expressed as a percentage and defined in [14]. Present only if \"shape\" equals 1, 4 or 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "includedAngle": {
                                        "includedAngle": {
									"description": "Present only if \"shape\" equals 6",
                                            "description": "Present only if \"shape\" equals 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "innerRadius": {
                                        "innerRadius": {
									"description": "Present only if \"shape\" equals 6",
                                            "description": "Present only if \"shape\" equals 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "latitude": {
                                        "latitude": {
									"description": "Location latitude, expressed in the range -90� to +90�. Cardinality greater than one only if \"shape\" equals 7.",
                                            "description": "Location latitude, expressed in the range -90° to +90°. Cardinality greater than one only if \"shape\" equals 7.",
									"items": {
                                            "format": "float",
                                            "format": "float",
                                            "items": {
                                                "type": "number"
                                                "type": "number"
                                            },
                                            },
                                            "minItems": 1,
                                            "minItems": 1,
@@ -92,9 +86,9 @@
                                            "x-etsi-mec-origin-type": "Float"
                                            "x-etsi-mec-origin-type": "Float"
                                        },
                                        },
                                        "longitude": {
                                        "longitude": {
									"description": "Location longitude, expressed in the range -180� to +180�. Cardinality greater than one only if \"shape\" equals 7.",
                                            "description": "Location longitude, expressed in the range -180° to +180°. Cardinality greater than one only if \"shape\" equals 7.",
									"items": {
                                            "format": "float",
                                            "format": "float",
                                            "items": {
                                                "type": "number"
                                                "type": "number"
                                            },
                                            },
                                            "minItems": 1,
                                            "minItems": 1,
@@ -103,58 +97,43 @@
                                            "x-etsi-mec-origin-type": "Float"
                                            "x-etsi-mec-origin-type": "Float"
                                        },
                                        },
                                        "offsetAngle": {
                                        "offsetAngle": {
									"description": "Present only if \"shape\" equals 6",
                                            "description": "Present only if \"shape\" equals 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "orientationMajorAxis": {
                                        "orientationMajorAxis": {
									"description": "Angle of orientation of the major axis, expressed in the range 0� to 180�, as defined in [14]. Present only if \"shape\" equals 4 or 6",
                                            "description": "Angle of orientation of the major axis, expressed in the range 0° to 180°, as defined in [14]. Present only if \"shape\" equals 4 or 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "shape": {
                                        "shape": {
									"description": "Shape information, as detailed in [14], associated with the reported location coordinate: <p>1 = ELLIPSOID_ARC <p>2 = ELLIPSOID_POINT <p>3 = ELLIPSOID_POINT_ALTITUDE <p>4 = ELLIPSOID_POINT_ALTITUDE_UNCERT_ELLIPSOID <p>5 = ELLIPSOID_POINT_UNCERT_CIRCLE <p>6 = ELLIPSOID_POINT_UNCERT_ELLIPSE <p>7 = POLYGON",
                                            "description": "Shape information, as detailed in [14], associated with the reported location coordinate: 1 = Ellipsoid_Arc 2 = ellipsoid_Point 3 = ellipsoid_Point_Altitude 4 = ellipsoid_Point_Altitude_Uncert_Ellipsoid 5 = ellipsoid_Point_Uncert_Circle 6 = ellipsoid_Point_Uncert_Ellipse 7 = polygon",
                                            "enum": [
                                                1,
                                                2,
                                                3,
                                                4,
                                                5,
                                                6,
                                                7
                                            ],
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "1",
                                            "x-etsi-mec-cardinality": "1",
                                            "x-etsi-mec-origin-type": "Enum_inlined"
                                            "x-etsi-mec-origin-type": "Enum_inlined"
                                        },
                                        },
								"timestamp": {
									"properties": {
										"nanoSeconds": {
											"description": "The nanoseconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.",
											"format": "int32",
											"type": "integer",
											"x-etsi-mec-cardinality": "1",
											"x-etsi-mec-origin-type": "Uint32"
										},
										"seconds": {
											"description": "The seconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC.",
											"format": "int32",
											"type": "integer",
											"x-etsi-mec-cardinality": "1",
											"x-etsi-mec-origin-type": "Uint32"
										}
									},
									"required": [
										"seconds",
										"nanoSeconds"
									],
									"type": "object",
									"x-etsi-ref": "6.5.2"
								},
                                        "uncertaintyRadius": {
                                        "uncertaintyRadius": {
									"description": "Present only if \"shape\" equals 6",
                                            "description": "Present only if \"shape\" equals 6.",
                                            "type": "integer",
                                            "type": "integer",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-cardinality": "0..1",
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                            "x-etsi-mec-origin-type": "UnsignedInt"
                                        },
                                        },
                                        "velocity": {
                                        "velocity": {
									"description": "Structure with attributes relating to the target entity's velocity, as defined in [14].",
                                            "description": "Structure with attributes relating to the target entity’s velocity, as defined in [14].",
                                            "properties": {
                                            "properties": {
                                                "bearing": {
                                                "bearing": {
											"description": "Bearing, expressed in the range 0 deg to 360 deg, as defined in [14].",
                                                    "description": "Bearing, expressed in the range 0° to 360°, as defined in [14].",
                                                    "type": "integer",
                                                    "type": "integer",
                                                    "x-etsi-mec-cardinality": "1",
                                                    "x-etsi-mec-cardinality": "1",
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
@@ -166,25 +145,31 @@
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
                                                },
                                                },
                                                "uncertainty": {
                                                "uncertainty": {
											"description": "Horizontal uncertainty, as defined in [14]. Present only if \"velocityType\" equals 3 or 4",
                                                    "description": "Horizontal uncertainty, as defined in [14]. Present only if \"velocityType\" equals 3 or 4.",
                                                    "type": "integer",
                                                    "type": "integer",
                                                    "x-etsi-mec-cardinality": "0..1",
                                                    "x-etsi-mec-cardinality": "0..1",
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
                                                },
                                                },
                                                "velocityType": {
                                                "velocityType": {
											"description": "Velocity information, as detailed in [14], associated with the reported location coordinate: <p>1 = HORIZONTAL <p>2 = HORIZONTAL_VERTICAL <p>3 = HORIZONTAL_UNCERT <p>4 = HORIZONTAL_VERTICAL_UNCERT",
                                                    "description": "Velocity information, as detailed in [14], associated with the reported location coordinate: 1 = Horizontal 2 = Horizontal_Vertical 3 = Horizontal_Uncert 4 = Horizontal_Vertical_Uncert",
                                                    "enum": [
                                                        1,
                                                        2,
                                                        3,
                                                        4
                                                    ],
                                                    "type": "integer",
                                                    "type": "integer",
                                                    "x-etsi-mec-cardinality": "1",
                                                    "x-etsi-mec-cardinality": "1",
                                                    "x-etsi-mec-origin-type": "Enum_inlined"
                                                    "x-etsi-mec-origin-type": "Enum_inlined"
                                                },
                                                },
                                                "verticalSpeed": {
                                                "verticalSpeed": {
											"description": "Vertical speed, expressed in km/h and defined in [14]. Present only if \"velocityType\" equals 2 or 4",
                                                    "description": "Vertical speed, expressed in km/h and defined in [14]. Present only if \"velocityType\" equals 2 or 4.",
                                                    "type": "integer",
                                                    "type": "integer",
                                                    "x-etsi-mec-cardinality": "0..1",
                                                    "x-etsi-mec-cardinality": "0..1",
                                                    "x-etsi-mec-origin-type": "Int"
                                                    "x-etsi-mec-origin-type": "Int"
                                                },
                                                },
                                                "verticalUncertainty": {
                                                "verticalUncertainty": {
											"description": "Vertical uncertainty, as defined in [14]. Present only if \"velocityType\" equals 4",
                                                    "description": "Vertical uncertainty, as defined in [14]. Present only if \"velocityType\" equals 4.",
                                                    "type": "integer",
                                                    "type": "integer",
                                                    "x-etsi-mec-cardinality": "0..1",
                                                    "x-etsi-mec-cardinality": "0..1",
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
                                                    "x-etsi-mec-origin-type": "UnsignedInt"
@@ -215,6 +200,7 @@
                                    "x-etsi-mec-origin-type": "integer"
                                    "x-etsi-mec-origin-type": "integer"
                                },
                                },
                                "operationStatus": {
                                "operationStatus": {
                                    "description": "An enumeration defining the operations status of an access point.",
                                    "enum": [
                                    "enum": [
                                        "Serviceable",
                                        "Serviceable",
                                        "Unserviceable",
                                        "Unserviceable",
@@ -267,4 +253,3 @@
                ],
                ],
                "type": "object"
                "type": "object"
            }
            }
 No newline at end of file
}
 No newline at end of file