test: cover komodo-deploy.sh against a mock Komodo API
15 unittest cases exercising the real script end to end: target selection, auth headers, request shape, success/failure, HTTP 401/400, unreachable host, polling to completion, and timeout. Runs in CI via .gitea/workflows/test.yml on push to main/dev* and on pull requests. No network or live Komodo instance required.
This commit is contained in:
1 parent
45908b8f6e
commit
003217a2b8
2 files changed
+290
No files matched your search
@@ -0,0 +1,17 @@
|
||||
name: test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev*
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
komodo-deploy-script:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Run komodo-deploy.sh tests
|
||||
run: python3 -m unittest -v test_komodo_deploy
|
||||
Reference in new issue
Block a user