浏览代码

check for response in quotes

Alex Cheema 8 月之前
父节点
当前提交
99bf691efd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .circleci/config.yml

+ 1 - 1
.circleci/config.yml

@@ -84,7 +84,7 @@ commands:
             kill $PID1 $PID2
             kill $PID1 $PID2
 
 
             echo ""
             echo ""
-            if ! echo "$response_1" | grep -q "^<<parameters.expected_output>>$" || ! echo "$response_2" | grep -q "^<<parameters.expected_output>>$"; then
+            if ! echo "$response_1" | grep -q "\"content\": \"<<parameters.expected_output>>\"" || ! echo "$response_2" | grep -q "\"content\": \"<<parameters.expected_output>>\""; then
               echo "Test failed: Response does not match '<<parameters.expected_output>>'"
               echo "Test failed: Response does not match '<<parameters.expected_output>>'"
               echo "Response 1: $response_1"
               echo "Response 1: $response_1"
               echo ""
               echo ""