diff --git a/test/functionalTest/cases/1705_csub_cache_objects/csub_cache_objects_errors.test b/test/functionalTest/cases/1705_csub_cache_objects/csub_cache_objects_errors.test index beb48d3393..08804a2c3c 100644 --- a/test/functionalTest/cases/1705_csub_cache_objects/csub_cache_objects_errors.test +++ b/test/functionalTest/cases/1705_csub_cache_objects/csub_cache_objects_errors.test @@ -336,34 +336,34 @@ Content-Length: 79 } -#09. GET /v2/entities with only whitespace in q-item (q= ) -#=========================================================== -#HTTP/1.1 400 Bad Request -#Date: REGEX(.*) -#Fiware-Correlator: REGEX([0-9a-f\-]{36}) -#Content-Type: application/json -#Content-Length: 77 -# -#{ -# "description": "empty q-item (only whitespace)", -# "error": "BadRequest" -#} -# -# -#10. GET /v2/entities with trailing whitespace in q (q=a==12; ) -#================================================================ -#HTTP/1.1 400 Bad Request -#Date: REGEX(.*) -#Fiware-Correlator: REGEX([0-9a-f\-]{36}) -#Content-Type: application/json -#Content-Length: 51 -# -#{ -# "description": "empty q-item", -# "error": "BadRequest" -#} -# -# +##09. GET /v2/entities with only whitespace in q-item (q= ) +##=========================================================== +##HTTP/1.1 400 Bad Request +##Date: REGEX(.*) +##Fiware-Correlator: REGEX([0-9a-f\-]{36}) +##Content-Type: application/json +##Content-Length: 77 +## +##{ +## "description": "empty q-item (only whitespace)", +## "error": "BadRequest" +##} +## +## +##10. GET /v2/entities with trailing whitespace in q (q=a==12; ) +##================================================================ +##HTTP/1.1 400 Bad Request +##Date: REGEX(.*) +##Fiware-Correlator: REGEX([0-9a-f\-]{36}) +##Content-Type: application/json +##Content-Length: 51 +## +##{ +## "description": "empty q-item", +## "error": "BadRequest" +##} +## +## 11. GET /v2/entities with > RANGE ================================= HTTP/1.1 400 Bad Request diff --git a/test/functionalTest/testHarness.sh b/test/functionalTest/testHarness.sh index b49e26172b..c309c4e8c2 100755 --- a/test/functionalTest/testHarness.sh +++ b/test/functionalTest/testHarness.sh @@ -632,7 +632,7 @@ function fileCreation() then TEST_REGEXPECT=${pathWithoutExt}.regexpect vMsg "Creating $TEST_REGEXPECT at $PWD" - sed -n '/--REGEXPECT--/,/^--/p' $path | grep -v "^--" | sed '/^#/d' > $TEST_REGEXPECT + sed -n '/--REGEXPECT--/,/^--/p' $path | grep -v "^--" | sed '/^##/d' > $TEST_REGEXPECT else exitFunction 5 "--REGEXPECT-- part is missing" $path "($path)" "" DIE fi