Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 committed Jan 23, 2025
1 parent 602f7e9 commit a1f3c4d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test_local_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ jobs:
# install conda-store-server
python -m pip install conda-store/conda-store-server
- name: Get conda store token from terraform state
- name: Get conda-store token from terraform state
id: conda-store-token
working-directory: ${{ steps.init.outputs.directory }}
run: |
cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"'
echo "CONDA_STORE_TOKEN=$(cat stages/07-kubernetes-services/terraform.tfstate | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq '."service-tokens-mapping"."conda-store-service-account"')" >> "$GITHUB_OUTPUT"
kubectl get secret -n default tfstate-default-${{ steps.init.outputs.project }}-dev-07-kubernetes-services --template={{.data}} | cut -d ":" -f2 | cut -d "]" -f1 | base64 --decode | gzip -d --to-stdout > terraform_state
echo "CONDA_STORE_TOKEN=$(cat terraform_state | jq | grep conda-store-service-account | sed -n '2 p' | tr -s ' ' | sed "s/\"config.json\": \"//" | sed -e 's/\\\"/\"/g' -e 's/^.//g' -e 's/.$//g' | jq --raw-output '."service-tokens-mapping"."conda-store-service-account"')" | tee --append "${GITHUB_OUTPUT}"
- name: Run conda-store-server user_journey tests
- name: Run conda-store server user_journey tests
env:
NEBARI_CONFIG_PATH: ${{ steps.init.outputs.config }}
KEYCLOAK_USERNAME: ${{ env.TEST_USERNAME }}
Expand All @@ -188,9 +188,15 @@ jobs:
CONDA_STORE_TEST_VERIFY_SSL: 0
CONDA_STORE_TOKEN: ${{ steps.conda-store-token.outputs.CONDA_STORE_TOKEN }}
run: |
curl --insecure --header "Authorization: Bearer ${CONDA_STORE_TOKEN}" ${CONDA_STORE_BASE_URL}/conda-store/api/v1/permission/ | jq
cd conda-store/conda-store-server
python -m pytest -m "user_journey"
- name: Get conda-store-server logs
if: ${{ failure() }}
run: |
kubectl logs -n dev deployment/nebari-conda-store-server
### CLEANUP AFTER TESTS
- name: Cleanup nebari deployment
# Since this is not critical for most pull requests and takes more than half of the time
Expand Down

0 comments on commit a1f3c4d

Please sign in to comment.