From c08b23d2818a70ea4ce77d7cf0d0474aaa290d7c Mon Sep 17 00:00:00 2001 From: divious1 Date: Thu, 22 Oct 2020 23:33:52 -0400 Subject: [PATCH] adding smoke test for master api --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1a2366ae2..17e7d210ea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -384,6 +384,17 @@ jobs: aws s3 cp lookups s3://security-content/lookups --recursive --exclude "*" --include "*.csv" aws s3 cp macros s3://security-content/macros --recursive --exclude "*" --include "*.yml" aws s3 cp deployments s3://security-content/deployments --recursive --exclude "*" --include "*.yml" + - run: + name: security content api smoke test + command: | + API_URL='https://content.splunkresearch.com/detections' + API_STATUS=$(curl -s -o /dev/null -w "%{http_code}" $API_URL) + echo "Security Content API Status: $API_STATUS" + if [ "$API_STATUS" != "200" ]; then + echo "Error [Security Content API status: $API_STATUS]" + exit 1 + fi + workflows: version: 2.1