Hi @livehybrid , Thanks for the reply. There's no return from the command actually. I tried -v and it doesn't show anything unusual, just waiting for the response from API. The curl command I use as this : curl --location 'https://api.eu0.signalfx.com/v2/synthetics/tests/api/try_now?locationId=aws-eu-central-1' \
--header 'Content-Type: application/json' \
--header 'X-SF-TOKEN: XXXXXXXXXXXXX' \
--data '{ "test": { "name": "DOCID Check - Deployment Copy", "active": false, "frequency": 5, "schedulingStrategy": "round_robin", "locationIds": [ "aws-eu-central-1" ], "automaticRetries": 0, "customProperties": [ { "key": "group", "value": "DOCID" } ], "deviceId": 1, "requests": [ { "configuration": { "name": "Get Auth token", "url": "https://AAAAAA.XXXXXX.com/api/v3/authentication", "requestMethod": "POST", "headers": { "Content-Type": "application/json" }, "body": "{\n \"userName\": \"{{custom.user_name}}\",\n \"password\": \"{{custom.user_password}}\"\n}" }, "setup": [ { "code": "{{env.prod_user}}", "name": "JavaScript run", "type": "javascript", "variable": "user_name" }, { "code": "{{env.prod_user_password}}", "name": "JavaScript run", "type": "javascript", "variable": "user_password" } ], "validations": [ { "name": "Extract from response body", "type": "extract_json", "source": "{{response.body}}", "variable": "session_token", "extractor": "$.token" }, { "name": "Assert response code equals 201", "type": "assert_numeric", "actual": "{{response.code}}", "expected": "201", "comparator": "equals" } ] }, { "configuration": { "name": "Search by DOCID", "url": "https://tttt.xxxxx.com/api/Search?search=docid==11111111111", "requestMethod": "GET", "headers": { "Authorization": "Bearer {{custom.session_token}}" }, "body": null }, "setup": [], "validations": [ { "name": "Extract from response body", "type": "extract_json", "source": "{{response.body}}", "variable": "tripreference", "extractor": "$.trips.tripReference" } ] } ] } }' Some json files works if I empty validation or only 1 request. Also empty json returns 404 error with some comments. But I need to get the test first and send it back with some modification in bash scripting.
... View more