Skip to content

Commit

Permalink
Merge pull request #205 from kbaseapps/fix_tests
Browse files Browse the repository at this point in the history
Fix GFU test failure
  • Loading branch information
Xiangs18 authored Jan 9, 2024
2 parents d67e35b + 4421088 commit a79a233
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/kb_sdk_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
shell: bash
env:
KBASE_TEST_TOKEN: ${{ secrets.KBASE_TEST_TOKEN }}
KBASE_TEST_TOKEN: ${{ secrets.KBASE_CI_TOKEN }}
run: |
# Verify kb_sdk_actions clone worked
test -f "$HOME/kb_sdk_actions/bin/kb-sdk" && echo "CI files cloned"
Expand All @@ -42,10 +42,15 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"
shell: bash
env:
KBASE_TEST_TOKEN: ${{ secrets.KBASE_TEST_TOKEN }}
KBASE_TEST_TOKEN: ${{ secrets.KBASE_CI_TOKEN }}
KBASE_TEST_TOKEN2: ${{ secrets.KBASE_CI_TOKEN2 }}
run: |
# Add token to config
sed -ie "s/^test_token=.*$/&$KBASE_TEST_TOKEN/g" ./test_local/test.cfg
# Change deployment env from appdev to ci
sed -ie "s+https://appdev.kbase.us+https://ci.kbase.us+g" ./test_local/test.cfg
# Add second user credentials
echo "test_token2=$KBASE_TEST_TOKEN2" >> ./test_local/test.cfg
- name: Run tests
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The tests use data from KBase's CI environment. In `test_local/test.cfg`, set th

```
test_token={ci_dev_token}
# a second test token from a different account is required
test_token2={ci_dev_token2}
kbase_endpoint=https://ci.kbase.us/services
auth_service_url=https://ci.kbase.us/services/auth/api/legacy/KBase/Sessions/Login
```

0 comments on commit a79a233

Please sign in to comment.