Commit cc1a3e2a authored by lopesg's avatar lopesg
Browse files

fixed 043_XX tests

parent 056029ff
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -8,18 +8,18 @@ Resource ${EXECDIR}/resources/JsonUtils.resource
${expected_status_code}=  503

${building_id_prefix}=  urn:ngsi-ld:Building:
${building_filename}=  building-minimal-without-context-sample.jsonld 
${building_filename}=  building-unretrievable-context-sample.jsonld 

${subscription_id_prefix}=  urn:ngsi-ld:Subscription:
${subscription_filename}=  csourceSubscriptions/subscription-without-context-sample.jsonld
${subscription_filename}=  subscriptions/subscription-unretrievable-context-sample.jsonld

${tea_id_prefix}=  urn:ngsi-ld:Vehicle:
${tea_filename}=  bus-temporal-representation-without-context-sample.jsonld
${tea_filename}=  bus-temporal-representation-unretrievable-context-sample.jsonld

${registration_id_prefix}=  urn:ngsi-ld:Registration:
${registration_filename}=  csourceRegistrations/context-source-registration-without-context-sample.jsonld   
${registration_filename}=  csourceRegistrations/context-source-registration-unretrievable-context-sample.jsonld   

*** Test Cases *** 
*** comments *** 
043_01 Create entity
    [Documentation]  Verify throwing 503  LDContextNotAvaliable error if remote JSON-LD @context cannot be retrieved (Create entity)

@@ -69,7 +69,7 @@ ${registration_filename}= csourceRegistrations/context-source-registration-with
    Check RL Response Body Containing ProblemDetails Element Containing Title Element    ${response}

    [Teardown]  Batch Delete Entities  @{entities_to_be_created}

*** Test Cases *** 
043_05 Create context source registration
    [Documentation]  Verify throwing 503 – LDContextNotAvaliable error if remote JSON-LD @context cannot be retrieved (Create context source registration)

+4 −1
Original line number Diff line number Diff line
@@ -10,5 +10,8 @@
         ]
      }
   ],
   "endpoint":"http://my.csource.org:1026"
   "endpoint":"http://my.csource.org:1026",
   "@context":[
      "unretrievableContext"
   ]
}
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
{
    "id": "urn:ngsi-ld:Building:randomUUID",
    "type": "Building",
    "@context": [
        "unretrievableContext"
    ]
}
 No newline at end of file
+4 −1
Original line number Diff line number Diff line
@@ -12,5 +12,8 @@
         "uri":"http://my.endpoint.org/notify",
         "accept":"application/json"
      }
   }
   },
   "@context":[
      "contextUnretrievable"
   ]
}
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -40,5 +40,8 @@
         "value":124,
         "observedAt":"2020-08-01T14:07:00Z"
      }
   ],
   "@context":[
      "unretrievableContext"
   ]
}
 No newline at end of file