Skip to content

Commit

Permalink
FIxed post-ci tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Mar 15, 2024
1 parent fedf8ed commit ac86316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .drevops/tests/bats/_helper.circleci.bash
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ circleci_get_previous_job_numbers() {
circleci_get_workflow_id_from_job_number() {
curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_USERNAME}/job/${1}" |
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/job/${1}" |
jq -r '.latest_workflow.id'
}

Expand All @@ -39,7 +39,7 @@ circleci_get_workflow_id_from_job_number() {
circleci_get_job_artifacts() {
curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_USERNAME}/${1}/artifacts"
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${1}/artifacts"
}

#
Expand All @@ -48,5 +48,5 @@ circleci_get_job_artifacts() {
circleci_get_job_test_metadata() {
curl -sSL --request GET \
-H "Authorization: Basic $(echo -n "${TEST_CIRCLECI_TOKEN}" | base64)" \
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_USERNAME}/${1}/tests"
"https:/circleci.com/api/v2/project/gh/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/${1}/tests"
}

0 comments on commit ac86316

Please sign in to comment.