Skip to content

Commit

Permalink
remove zip_recruiter from tests (github servers blocked)
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Aug 27, 2023
1 parent 819c22e commit 1bd2dc1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Check HTTP status to POST /api/v1/jobs/
run: |
response=$(curl -L -s -X 'POST' -H 'Content-Type: application/json' -d '{
"site_type": ["indeed", "linkedin", "zip_recruiter"],
"site_type": ["indeed", "linkedin"],
"search_term": "software engineer",
"location": "austin, tx",
"distance": 10,
Expand All @@ -65,26 +65,22 @@ jobs:
run: |
indeed_error=$(jq '.indeed.error' response.json)
linkedin_error=$(jq '.linkedin.error' response.json)
zip_recruiter_error=$(jq '.zip_recruiter.error' response.json)
if [[ "$indeed_error" != "null" || "$linkedin_error" != "null" || "$zip_recruiter_error" != "null" ]]; then
# if [[ "$indeed_error" != "null" || "$linkedin_error" != "null" ]]; then
echo "Error found in response:"
echo "Indeed Error: $indeed_error"
echo "LinkedIn Error: $linkedin_error"
echo "ZipRecruiter Error: $zip_recruiter_error"
exit 1
fi

- name: Verify returned_results in response
run: |
indeed_results=$(jq '.indeed.returned_results' response.json)
linkedin_results=$(jq '.linkedin.returned_results' response.json)
zip_recruiter_results=$(jq '.zip_recruiter.returned_results' response.json)
if [[ $indeed_results -ne 5 || $linkedin_results -ne 5 || $zip_recruiter_results -ne 5 ]]; then
if [[ $indeed_results -ne 5 || $linkedin_results -ne 5 ]]; then
echo "Mismatch in results_wanted and returned_results:"
echo "Indeed: Expected 5, Got $indeed_results"
echo "LinkedIn: Expected 5, Got $linkedin_results"
echo "ZipRecruiter: Expected 5, Got $zip_recruiter_results"
exit 1
fi

0 comments on commit 1bd2dc1

Please sign in to comment.