Commit 20251986 authored by Ikram Haq's avatar Ikram Haq
Browse files

validate and update MEC016 Device Application Interface test suite

parent 5b8ac7d0
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -155,12 +155,12 @@ Update application context
    Set Headers    {"Content-Type":"application/json"}
    Set Headers    {"Authorization":"${TOKEN}"}
    ${path}    Catenate    SEPARATOR=      jsons/     ${content}
    ${body}    Get File    ${path}
    ${body_template}    Get File    ${path}
    ${body}    Replace String    ${body_template}    __CONTEXT_ID__    ${context_id}
    Put    ${apiRoot}/${apiName}/${apiVersion}/app_contexts/${context_id}    ${body}
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}


Update application context using wrong endpoint
    [Arguments]    ${context_id}    ${content}
    Set Headers    {"Content-Type":"application/json"}
+4 −5
Original line number Diff line number Diff line
*** Variables ***
${apiRoot}        
${apiRoot}        sbxme1qzq4/mep1
${apiName}        dev_app
${apiVersion}     v1

${MEC-APP_SCHEMA}                   http
${MEC-APP_HOST}                     mockoon
${MEC-APP_PORT}                     3003
${MEC-APP_SCHEMA}                   https
${MEC-APP_HOST}                     192.168.40.50
${MEC-APP_PORT}                     443

${TOKEN}                            Basic YWxhZGRpbjpvcGVuc2VzYW1l

+54 −12
Original line number Diff line number Diff line
{
	"associateDevAppId":"MyNewWornderfulDevAppId",
  "associateDevAppId": "MyNewId",
  "callbackReference": "http://www.umair.com",
  "appInfo": {
    "appDId": "onboarded-demo4",
    "appName": "MyNewWornderfulApp",
		"appProvider":"TTF012",
		"appDVersion":"v0.0.1",
    "appProvider": "demo",
    "appSoftVersion": "v0.1.0",
    "appDVersion": "v0.1.0",
    "appDescription": "Basic HTTP Ping Pong",
    "userAppInstanceInfo": [
      {
        "appInstanceId": "c5f834ae-db0c-4eec-bdfe-3dfc55f91b4a",
        "appLocation": {
          "area": {
            "coordinates": [
              [
                [
                  2.302136,
                  2.302136
                ],
                [
                  2.302136,
                  2.302136
                ]
              ],
              [
                [
                  2.302136,
                  2.302136
                ],
                [
                  2.302136,
                  2.302136
                ]
              ]
            ]
          },
          "countryCode": "US",
          "civicAddressElement": [
            {
              "caType": 7,
              "caValue": "caValue"
            },
            {
              "caType": 7,
              "caValue": "caValue"
            }
          ]
        },
        "referenceURI": "http://example.com/aeiou"
      }
    ]
  }
}
 No newline at end of file
+54 −12
Original line number Diff line number Diff line
{
	"associateDevAppId":"MyNewWornderfulDevAppId",
  "associateDevAppId": "MyNewId",
  "callbackReference": "http://www.umair.com",
  "appInfo": {
    "appDId": "onboarded-demo4",
    "app": "MyNewWornderfulApp",
		"appProvider":"TTF012",
		"appDVersion":"v0.0.1",
    "appProvider": "demo",
    "appSoftVersion": "v0.1.0",
    "appDVersion": "v0.1.0",
    "appDescription": "Basic HTTP Ping Pong",
    "userAppInstanceInfo": [
      {
        "appInstanceId": "c5f834ae-db0c-4eec-bdfe-3dfc55f91b4a",
        "appLocation": {
          "area": {
            "coordinates": [
              [
                [
                  2.302136,
                  2.302136
                ],
                [
                  2.302136,
                  2.302136
                ]
              ],
              [
                [
                  2.302136,
                  2.302136
                ],
                [
                  2.302136,
                  2.302136
                ]
              ]
            ]
          },
          "countryCode": "US",
          "civicAddressElement": [
            {
              "caType": 7,
              "caValue": "caValue"
            },
            {
              "caType": 7,
              "caValue": "caValue"
            }
          ]
        },
        "referenceURI": "http://example.com/aeiou"
      }
    ]
  }
}
 No newline at end of file
+55 −14
Original line number Diff line number Diff line
{
	"associateDevAppId":"MyNewWornderfulDevAppId",
	"contextId": "1",
	"callbackReference": "http://127.0.0.1/callbackuri",
  "contextId": "__CONTEXT_ID__",
  "associateDevAppId": "MyNewId",
  "callbackReference": "http://www.updated-callback.com",
  "appInfo": {
    "appDId": "onboarded-demo4",
    "appName": "MyNewWornderfulApp",
		"appProvider":"TTF012",
		"appDVersion":"v0.0.1",
    "appProvider": "demo",
    "appSoftVersion": "v0.1.0",
    "appDVersion": "v0.1.0",
    "appDescription": "Basic HTTP Ping Pong",
    "userAppInstanceInfo": [
      {
        "appInstanceId": "c5f834ae-db0c-4eec-bdfe-3dfc55f91b4a",
        "appLocation": {
          "area": {
            "coordinates": [
              [
                [
                  2.302136,
                  2.302136
                ],
                [
                  2.302136,
                  2.302136
                ]
              ],
              [
                [
                  2.302136,
                  2.302136
                ],
                [
                  2.302136,
                  2.302136
                ]
              ]
            ]
          },
          "countryCode": "US",
          "civicAddressElement": [
            {
              "caType": 7,
              "caValue": "caValue"
            },
            {
              "caType": 7,
              "caValue": "caValue"
            }
          ]
        },
        "referenceURI": "http://example.com/aeiou"
      }
    ]
  }
}
 No newline at end of file
Loading