Commit 01c22fff authored by piscione's avatar piscione
Browse files

Removed ZOINFOLOOK dir becausenot available in the MEC013 TPs dir list.

parent 988a9802
Loading
Loading
Loading
Loading
+0 −63
Original line number Diff line number Diff line
*** Settings ***

Documentation
...    A test suite for validating Radio Node Location Lookup (RLOCLOOK) operations.

Resource    ../../../GenericKeywords.robot
Resource    ../../../pics.txt
Resource    environment/variables.txt
Library     REST    ${SCHEMA}://${HOST}:${PORT}    ssl_verify=false
Library     OperatingSystem 

Default Tags    TC_MEC_SRV_RLOCLOOK


*** Test Cases ***

TC_MEC_MEC013_SRV_ZOINFOLOOK_001_OK
    [Documentation]
    ...    TO BE COMPLETED

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES    INCLUDE_UNDEFINED_SCHEMAS
    Get the zones info location list
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ZoneList


TC_MEC_MEC013_SRV_ZOINFOLOOK_002_OK
    [Documentation]
    ...    TO BE CMPLETED

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Get the zone info location        ${ZONE_ID}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    ZoneInfo
    Should Be Equal As Strings    ${response['body']['zoneInfo']['zoneId']}    ${ZONE_ID}
    
TC_MEC_MEC013_SRV_ZOINFOLOOK_002_NF
    [Documentation]
    ...    TO BE CMPLETED

    [Tags]    PIC_MEC_PLAT    PIC_SERVICES
    Get the zone info location        ${NON_EXISTENT_ZONE_ID}
    Check HTTP Response Status Code Is    404

*** Keywords ***
Get the zone info location 
    [Arguments]    ${zoneId}
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/queries/zones/${zoneId}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}


Get the zones info location list
    Set Headers    {"Accept":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/queries/zones
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}


MEC013/SRV/ZOINFOLOOK/README.md

deleted100644 → 0
+0 −0

Empty file deleted.

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

# Specific variables
${ZONE_ID}                    5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${NON_EXISTENT_ZONE_ID}       NON_EXISTENT_ZONE_ID
+0 −48
Original line number Diff line number Diff line
{
	"type": "object",
	"properties": {
		"zoneInfo": {
			"description": "A type containing zone information.",
			"properties": {
				"numberOfAccessPoints": {
					"description": "The number of access points within the zone",
					"type": "integer",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "unsignedInt"
				},
				"numberOfUnserviceableAccessPoints": {
					"description": "Number of inoperable access points within the zone.",
					"type": "integer",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "unsignedInt"
				},
				"numberOfUsers": {
					"description": "The number of users currently on the access point.",
					"type": "integer",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "unsignedInt"
				},
				"resourceURL": {
					"description": "Self referring URL",
					"type": "string",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "anyURI"
				},
				"zoneId": {
					"description": "Identifier of zone",
					"type": "string",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "string"
				}
			},
			"required": [
				"zoneId",
				"numberOfAccessPoints",
				"numberOfUnserviceableAccessPoints",
				"numberOfUsers",
				"resourceURL"
			],
			"type": "object"
		}
	}
}
 No newline at end of file
+0 −48
Original line number Diff line number Diff line
{
	"type": "object",
	"properties": {
		"zoneInfo": {
			"description": "A type containing zone information.",
			"properties": {
				"numberOfAccessPoints": {
					"description": "The number of access points within the zone",
					"type": "integer",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "unsignedInt"
				},
				"numberOfUnserviceableAccessPoints": {
					"description": "Number of inoperable access points within the zone.",
					"type": "integer",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "unsignedInt"
				},
				"numberOfUsers": {
					"description": "The number of users currently on the access point.",
					"type": "integer",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "unsignedInt"
				},
				"resourceURL": {
					"description": "Self referring URL",
					"type": "string",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "anyURI"
				},
				"zoneId": {
					"description": "Identifier of zone",
					"type": "string",
					"x-etsi-mec-cardinality": 1,
					"x-etsi-mec-origin-type": "string"
				}
			},
			"required": [
				"zoneId",
				"numberOfAccessPoints",
				"numberOfUnserviceableAccessPoints",
				"numberOfUsers",
				"resourceURL"
			],
			"type": "object"
		}
	}
}
 No newline at end of file