*** Test Case *** REGISTRATION_ID FRAGMENT_FILENAME
005_01_Update a context source registration by id if the Id is not present${EMPTY}registration-with-expiration-sample.jsonld
005_02_Update a context source registration by id if the Id is not a valid URIinvalidURIregistration-with-expiration-sample.jsonld
005_03_Update a context source registration if the request body is not of the same data type${valid_registration_id}registration-different-type-sample.jsonld
005_04_Update a context source registration if you attempt to remove a mandatory property${valid_registration_id}registration-invalid-structure-sample.jsonld
*** Keywords ***
Update Context Source
[Arguments]${registration_id}${fragment_filename}
[Documentation]Check that you cannot update a context source registration under some conditions
[Tags]mandatory
${payload}=Load Json From File${EXECDIR}/data/csourceRegistrations/${filename}
${updated_payload}=Update Value To Json${payload}$..id${valid_registration_id}