Commit 52470b9e authored by Elian Kraja's avatar Elian Kraja
Browse files

Bug fix: Issue #100

parent d65c7b04
...@@ -134,78 +134,78 @@ POST API Version ...@@ -134,78 +134,78 @@ POST API Version
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/api_version Post ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version GET API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/api_version Get ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version PUT API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/api_version Put ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version PATCH API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/api_version Patch ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version DELETE API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/api_version Delete ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
POST API Version with apiMajorVersion POST API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/v1/api_version Post ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version with apiMajorVersion GET API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/v1/api_version Get ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/v1/api_version Put ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/v1/api_version Patch ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/v1/api_version Delete ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
Check HTTP Response Status Code Is Check HTTP Response Status Code Is
[Arguments] ${expected_status} [Arguments] ${expected_status}
Should Be Equal As Strings ${response[0]['status']} ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status}
Log Status code validated Log Status code validated
Check HTTP Response Body Json Schema Is Check HTTP Response Body Json Schema Is
[Arguments] ${input} [Arguments] ${input}
${schema} = Catenate ${input} .schema.json ${schema} = Catenate ${input} .schema.json
Validate Json ${schema} ${response[0]['body']} Validate Json ${schema} ${response['body']}
Log Json Schema Validation OK Log Json Schema Validation OK
\ No newline at end of file
...@@ -136,78 +136,78 @@ POST API Version ...@@ -136,78 +136,78 @@ POST API Version
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/api_version Post ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version GET API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/api_version Get ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version PUT API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/api_version Put ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version PATCH API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/api_version Patch ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version DELETE API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/api_version Delete ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
POST API Version with apiMajorVersion POST API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/v1/api_version Post ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version with apiMajorVersion GET API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/v1/api_version Get ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/v1/api_version Put ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/v1/api_version Patch ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/v1/api_version Delete ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
Check HTTP Response Status Code Is Check HTTP Response Status Code Is
[Arguments] ${expected_status} [Arguments] ${expected_status}
Should Be Equal As Strings ${response[0]['status']} ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status}
Log Status code validated Log Status code validated
Check HTTP Response Body Json Schema Is Check HTTP Response Body Json Schema Is
[Arguments] ${input} [Arguments] ${input}
${schema} = Catenate ${input} .schema.json ${schema} = Catenate ${input} .schema.json
Validate Json ${schema} ${response[0]['body']} Validate Json ${schema} ${response['body']}
Log Json Schema Validation OK Log Json Schema Validation OK
\ No newline at end of file
...@@ -136,78 +136,78 @@ POST API Version ...@@ -136,78 +136,78 @@ POST API Version
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/api_version Post ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version GET API Version
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/api_version Get ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version PUT API Version
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/api_version Put ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version PATCH API Version
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/api_version Patch ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version DELETE API Version
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/api_version Delete ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
POST API Version with apiMajorVersion POST API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/v1/api_version Post ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version with apiMajorVersion GET API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/v1/api_version Get ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/v1/api_version Put ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/v1/api_version Patch ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT_JSON}"} Set Headers {"Accept":"${ACCEPT_JSON}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/v1/api_version Delete ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
Check HTTP Response Status Code Is Check HTTP Response Status Code Is
[Arguments] ${expected_status} [Arguments] ${expected_status}
Should Be Equal As Strings ${response[0]['status']} ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status}
Log Status code validated Log Status code validated
Check HTTP Response Body Json Schema Is Check HTTP Response Body Json Schema Is
[Arguments] ${input} [Arguments] ${input}
${schema} = Catenate ${input} .schema.json ${schema} = Catenate ${input} .schema.json
Validate Json ${schema} ${response[0]['body']} Validate Json ${schema} ${response['body']}
Log Json Schema Validation OK Log Json Schema Validation OK
\ No newline at end of file
...@@ -134,78 +134,78 @@ POST API Version ...@@ -134,78 +134,78 @@ POST API Version
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/api_version Post ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version GET API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/api_version Get ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version PUT API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/api_version Put ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version PATCH API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/api_version Patch ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version DELETE API Version
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/api_version Delete ${apiRoot}/${apiName}/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
POST API Version with apiMajorVersion POST API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Post ${apiRoot}/${apiName}/v1/api_version Post ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
GET API Version with apiMajorVersion GET API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Get ${apiRoot}/${apiName}/v1/api_version Get ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PUT API Version with apiMajorVersion PUT API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Put ${apiRoot}/${apiName}/v1/api_version Put ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
PATCH API Version with apiMajorVersion PATCH API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Patch ${apiRoot}/${apiName}/v1/api_version Patch ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
DELETE API Version with apiMajorVersion DELETE API Version with apiMajorVersion
Set Headers {"Accept":"${ACCEPT}"} Set Headers {"Accept":"${ACCEPT}"}
Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"}
Delete ${apiRoot}/${apiName}/v1/api_version Delete ${apiRoot}/${apiName}/v1/api_version
${outputResponse}= Output response ${outputResponse}= Output response
Set Global Variable @{response} ${outputResponse} Set Global Variable ${response} ${outputResponse}
Check HTTP Response Status Code Is Check HTTP Response Status Code Is
[Arguments] ${expected_status} [Arguments] ${expected_status}
Should Be Equal As Strings ${response[0]['status']} ${expected_status} Should Be Equal As Strings ${response['status']} ${expected_status}
Log Status code validated Log Status code validated
Check HTTP Response Body Json Schema Is Check HTTP Response Body Json Schema Is