Commit 4e744df1 authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

updated tests on 412 for NSFM

parent 9adb0c8c
......@@ -94,7 +94,7 @@ PATCH Alarm - Precondition failed
... Config ID: Config_prod_NFVO
... Applicability: none
... Post-Conditions:
PATCH Individual Alarm Conflict
PATCH Individual Alarm - ETag mismatch
Check HTTP Response Status Code Is 412
Check HTTP Response Body Json Schema Is ProblemDetails
......
......@@ -201,7 +201,17 @@ PATCH Individual Alarm Conflict
log Trying to perform a PATCH. This method modifies an individual alarm resource
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Set Headers {"If-Match": "${Etag}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/alarmModifications.json
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId} ${body}
${outputResponse}= Output response
Set Global Variable ${response} ${outputResponse}
PATCH Individual Alarm - ETag mismatch
log Trying to perform a PATCH. This method modifies an individual alarm resource
Set Headers {"Accept":"${ACCEPT}"}
Set Headers {"Content-Type": "${CONTENT_TYPE_PATCH}"}
Set Headers {"If-Match": "${invalid_etag}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
${body}= Get File jsons/alarmModifications.json
Patch ${apiRoot}/${apiName}/${apiMajorVersion}/alarms/${alarmId} ${body}
......
......@@ -29,12 +29,9 @@ ${perceivedSeverity} CRITICAL
${probableCause}
${invalidAlarmId} invalidAlramID
${Etag}= an etag
${Etag_modified}= a modified etag
${invalid_etag}= invalid etag
${CONTENT_TYPE_PATCH} application/merge-patch+json
${PerceivedSeverity} CRITICAL
${sub_filter} filter
${sub_filter_invalid} filter_invalid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment