From d214a6e048b46ad89a0ce4b8c4a833d9ebfb69b3 Mon Sep 17 00:00:00 2001 From: Giacomo Bernini Date: Thu, 19 Sep 2019 10:48:26 +0200 Subject: [PATCH] fixed filters --- .../NSLifecycleManagement-API/NSLCMOperationKeywords.robot | 6 +++--- SOL005/NSLifecycleManagement-API/environment/variables.txt | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot index 336673eb..400162cb 100644 --- a/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot +++ b/SOL005/NSLifecycleManagement-API/NSLCMOperationKeywords.robot @@ -1,5 +1,5 @@ *** Settings *** -Resource environment/variables.txt +Resource environment/variables.txt Library REST ${NFVO_SCHEMA}://${NFVO_HOST}:${NFVO_PORT} Library JSONLibrary Library Process @@ -556,7 +556,7 @@ GET NS LCN OP Occurences Invalid attribute-based filtering parameters Log Query status information about multiple NS lifecycle management operation occurrences. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?attribute_not_exist=some_value + GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?${NEG_FILTER} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} @@ -564,7 +564,7 @@ GET NS LCN OP Occurences Invalid attribute selector Log Query NS The GET method queries information about multiple NS instances. Set Headers {"Accept":"${ACCEPT}"} Run Keyword If ${AUTH_USAGE} == 1 Set Headers {"Authorization":"${AUTHORIZATION}"} - GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?fields=wrong_field + GET ${apiRoot}/${apiName}/${apiVersion}/ns_lcm_op_occs?${NEG_SELECTOR} ${outputResponse}= Output response Set Global Variable @{response} ${outputResponse} diff --git a/SOL005/NSLifecycleManagement-API/environment/variables.txt b/SOL005/NSLifecycleManagement-API/environment/variables.txt index 47a4c646..dc3f6467 100644 --- a/SOL005/NSLifecycleManagement-API/environment/variables.txt +++ b/SOL005/NSLifecycleManagement-API/environment/variables.txt @@ -54,3 +54,6 @@ ${response} {} ${Etag}= an etag ${Etag_modified}= a modified etag + +${NEG_FILTER} attribute_not_exist=some_value +${NEG_SELECTOR} fields=wrong_field \ No newline at end of file -- GitLab