Commit f1416a4e authored by piscione's avatar piscione
Browse files

Minor: fixes on typo, minor updates on payload and included variable sanbox...

Minor: fixes on typo, minor updates on payload and included variable sanbox env var for validation tests
parent ded3d1cf
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -2,14 +2,15 @@
...    Test Suite to validate UE Identity Tag (UETAG) operations.

*** Settings ***
Resource    environment/variables.txt
#Resource    environment/variables.txt
Resource    environment/variables_sandbox.txt
Resource    ../../../pics.txt
Resource    ../../../GenericKeywords.robot
Library     REST    ${AMS_SCHEMA}://${AMS_HOST}:${AMS_PORT}    ssl_verify=false
Library     BuiltIn
Library     libraries/Server.py
Library     OperatingSystem
Library     MockServerLibrary
#Library     MockServerLibrary
Library     Collections


@@ -106,7 +107,7 @@ TC_MEC_MEC021_SRV_AMS_001_OK_04

    Get Registered AMS information using attribute-selector    filter    ${APP_MOBILITY_SERVICE_FILTER_EXCLUDE_FIELDS}
    Check HTTP Response Status Code Is    200
    #Check HTTP Response Body Json Schema Is    AppMobilityServiceInfos
    Check HTTP Response Body Json Schema Is    AppMobilityServiceInfos

    FOR    ${app}    IN    @{response['body']}
        Should Be Equal As Strings  ${app['appMobilityServiceId']}    ${APP_MOBILITY_SERVICE_ID} 
@@ -274,7 +275,7 @@ TC_MEC_MEC021_SRV_AMS_007_OK
    ...  ETSI GS MEC 021 3.1.1, clause 7.3.3
    ...  ETSI GS MEC 021 3.1.1, clause 8.7.3.2
    [Tags]    PIC_AMS    INCLUDE_UNDEFINED_SCHEMAS
    Update individual subscription for AMS services    ${SUBSCRIPTION_ID}    NotificationSubscription
    Update individual subscription for AMS services    ${SUBSCRIPTION_ID}    NotificationSubscriptionUpdate
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    NotificationSubscription

@@ -291,7 +292,7 @@ TC_MEC_MEC021_SRV_AMS_007_BR
    Check HTTP Response Status Code Is    400


TP_MEC_MEC021_SRV_AMS_007_NF
TC_MEC_MEC021_SRV_AMS_007_NF
    [Documentation]   Modify a specific subscription using wrong identifier
    ...  Check that the AMS service sends an error when it receives a modify request for a not existing subscription.
    ...  ETSI GS MEC 021 3.1.1, clause 7.3.2
@@ -519,6 +520,8 @@ TC_MEC_MEC021_SRV_UETESTNOT_001_OK
    Spawn Notification Server    TestNotification
    Validate Json   TestNotification.schema.json    ${payload_notification}
    [TearDown]  Delete individual subscription for AMS services    ${SUBSCRIPTION_ID}
    

*** Keywords ***
Get Registered AMS information
    Set Headers    {"Accept":"application/json"}
+44 −0
Original line number Diff line number Diff line
*** Variables ***
# Generic variables
#${AMS_SCHEMA}                   http
#${AMS_HOST}                     mockoon
#${AMS_PORT}                     3006
#${response}                         {}
#${TOKEN}                            Basic YWxhZGRpbjpvcGVuc2VzYW1l
#${apiRoot}        
#${apiName}        amsi
#${apiVersion}     v1


####Env variable for the ETSI MEC Sandbox
${AMS_SCHEMA}                   https
${AMS_HOST}                     try-mec.etsi.org
${AMS_PORT}                     443
${TOKEN}                            Basic YWxhZGRpbjpvcGVuc2VzYW1l
${response}                         {}
${apiRoot}		  /<your_token_here>/mep1 
${apiName}        amsi
${apiVersion}     v1

# Specific variables
${APP_MOBILITY_SERVICE_ID}          -4P-3piNHphgT_GF
${APP_MOBILITY_SERVICE_ID2}          APP_MOBILITY_SERVICE_ID2
${MALFORMED_APP_MOBILITY_SERVICE_ID}          MALFORMED_APP_MOBILITY_SERVICE_ID
${APP_MOBILITY_SERVICE_FILTER_APP_MOBILITY_SERVICE_ID}        (eq,appMobilityServiceId,ca29c5a5-f471-4098-abcb-d55d83410087)
${APP_MOBILITY_SERVICE_FILTER_SERVICE_CONSUMER_ID}        (eq,serviceConsumerId[appInstanceId],5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f)
${APP_MOBILITY_SERVICE_FILTER_EXCLUDE_FIELDS}        (eq,appMobilityServiceId,APP_MOBILITY_SERVICE_ID)&exclude_fields=[serviceConsumerId]
${APP_INS_ID}                       ca29c5a5-f471-4098-abcb-d55d83410087
${SUBSCRIPTION_TYPE}                MobilityProcedureSubscription
${SUBSCRIPTION_ID}                  sub-DjA60j9KKidfITKs
${NON_EXISTENT_SUBSCRIPTION_ID}     NON_EXISTENT_SUBSCRIPTION_ID
${NON_EXISTENT_APP_MOBILITY_SERVICE_ID}     NON_EXISTENT_APP_MOBILITY_SERVICE_ID

# Notifications variables
${MOCK_SERVER_JAR}    ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar

${callback_port}    9091
${callback_uri}    http://172.22.1.7:${callback_port}
${callback_endpoint}    /amsi/subscriptions
${callback_endpoint_error}    /subs_404
${total_polling_time}   2 min
${polling_interval}     10 sec
+24 −0
Original line number Diff line number Diff line
{
  "deviceInformation": [
    {
      "associateId": {
        "type": "UE_IPv4_ADDRESS",
        "value": "192.168.1.100"
      },
      "appMobilityServiceLevel": "APP_MOBILITY_NOT_ALLOWED",
      "contextTransferState": "NOT_TRANSFERRED"
    },
    {
      "associateId": {
        "type": "UE_IPV6_ADDRESS",
        "value": "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
      },
      "appMobilityServiceLevel": "APP_MOBILITY_WITH_CONFIRMATION",
      "contextTransferState": "USER_CONTEXT_TRANSFER_COMPLETED"
    }
  ],
  "expiryTime": 3600,
  "serviceConsumerId": {
    "appInstanceId": "ca29c5a5-f471-4098-abcb-d55d83410087"
  }
}
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -6,11 +6,11 @@
        "requestWebsocketUri": true
    },
    "expiryDeadline": {
        "seconds": 1644691200,
        "seconds": 2077353600,
        "nanoSeconds": 0
    },
    "filterCriteria": {
        "appInstanceId": "app-123"
        "appInstanceId": "ca29c5a5-f471-4098-abcb-d55d83410087"
    },
    "subscriptionType": "MobilityProcedureSubscription"
}
 No newline at end of file
+21 −0
Original line number Diff line number Diff line
{
    "callbackReference": "http://example.com/callback",
    "_links": {
    "self": {
      "href": "https://try-mec.etsi.org/sbxnr8fp0o/mep1/amsi/v1/subscriptions/sub-DjA60j9KKidfITKs"
    }
  },
    "requestTestNotification": false,
    "websockNotifConfig": {
        "websocketUri": "ws://example.com/websocket",
        "requestWebsocketUri": true
    },
    "expiryDeadline": {
        "seconds": 2077353600,
        "nanoSeconds": 0
    },
    "filterCriteria": {
        "appInstanceId": "ca29c5a5-f471-4098-abcb-d55d83410087"
    },
    "subscriptionType": "MobilityProcedureSubscription"
}
 No newline at end of file
Loading