Skip to content

Commit

Permalink
fix: Smoke Test (#126)
Browse files Browse the repository at this point in the history
* fix: stop smoke test after test

* F
  • Loading branch information
MatKuhr authored Sep 13, 2024
1 parent 1d74b41 commit 53a56d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@ jobs:
working-directory: tests/smoke-tests
- name: smoke test
run: pnpm test:smoke
- name: shutdown
if: always()
run: cf stop smoke-test-app
- name: 'Slack Notification'
if: failure()
uses: slackapi/[email protected]
with:
payload: |
{
"username": "GitHub E2E Test Runner",
"text": "⚠️ Smoke Test Failed 🚭! Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-js/actions/runs/${{ github.run_id }}|here>"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
2 changes: 1 addition & 1 deletion tests/smoke-tests/test/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const smokeTestRoute =
describe('Smoke Test', () => {
it('aicore client retrieves a list of deployments', async () => {
await expect(
fetch(`${smokeTestRoute}/ai-core/get-deployments`)
fetch(`${smokeTestRoute}/ai-api/get-deployments`)
).resolves.toHaveProperty('status', 200);
});

Expand Down

0 comments on commit 53a56d0

Please sign in to comment.