-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWI-5462 Update SDK Based on Recent Spec Changes (#205)
* Generate SDK with OpenAPI Generator Version 7.4.0 * update workflows * fix wf * try one test * copy them all * remove all but init * now remove the init * bring it back * move bxml * move smoke * clean up spaces * update tests * fix completedTime to be date-time * include_optional * update spec * unit tests * more unit tests * unit tessssssssts * final model unit tests * move api unit tests * SWI-4279 Fix BXML Library Anti Pattern (#206) * fix verbs * finish updating bxml library * Update bandwidth/models/bxml/nestable_verb.py Co-authored-by: AJ Rice <[email protected]> --------- Co-authored-by: AJ Rice <[email protected]> * SWI-5462 Add Real Time Transcriptions Tests (#207) * add privacy field to calls api test * remove unused env var * update recordings smoke tests to use new method names * add files for stats and transcriptions apis * update smoke test header blocks * add statistics smoke tests * fill in skeleton of transcriptions test * transcriptions * 403 from manteca :( * finalize transcriptions tests * update smoke test wf * only main * fix tests hopefully * SWI-5457 Prism Unit Tests (#209) * SWI-5457 Prism Unit Tests * calls, conferences, media, messages * final unit tests * run prism on unit tests * only test models until base url can be updated * bring back apis, we're waiting to update * only test models for now * SWI-5462 Update to Generator v7.6.0 (#210) * SWI-5545 Update Transcription Model (#214) * SWI-5545 Update Transcription Model * remove models path from deploy tests * generate using 7.7.0-SNAPSHOT * remove old model * update tests * fix tests * regenerate with 7.7.0 * unit test everything on PR * small test updates * bash shell --------- Co-authored-by: DX-Bandwidth <[email protected]> Co-authored-by: ckoegel <[email protected]> Co-authored-by: Cameron Koegel <[email protected]> Co-authored-by: AJ Rice <[email protected]>
- Loading branch information
1 parent
e809982
commit 1bae9a5
Showing
373 changed files
with
9,360 additions
and
4,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,6 @@ jobs: | |
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }} | ||
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} | ||
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} | ||
BW_NUMBER_PROVIDER: ${{ secrets.BW_NUMBER_PROVIDER }} | ||
steps: | ||
- name: Set Release Version | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | ||
|
@@ -57,7 +56,9 @@ jobs: | |
- name: Test | ||
run: | | ||
pytest -v | ||
npm install -g @stoplight/prism-cli | ||
prism mock ./bandwidth.yml & pytest -v ./test/unit | ||
- name: Deploy to PYPI | ||
run: | | ||
|
@@ -68,7 +69,7 @@ jobs: | |
env: | ||
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
|
||
- uses: Bandwidth/[email protected] | ||
if: always() | ||
with: | ||
|
@@ -100,7 +101,6 @@ jobs: | |
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }} | ||
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} | ||
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} | ||
BW_NUMBER_PROVIDER: ${{ secrets.BW_NUMBER_PROVIDER }} | ||
steps: | ||
- name: Set Release Version | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | ||
|
@@ -125,7 +125,9 @@ jobs: | |
- name: Test | ||
run: |- | ||
pytest -v | ||
npm install -g @stoplight/prism-cli | ||
prism mock ./bandwidth.yml & pytest -v ./test/unit | ||
shell: bash | ||
|
||
- name: Deploy to PYPI | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Test PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }} | ||
BW_USERNAME: ${{ secrets.BW_USERNAME }} | ||
BW_PASSWORD: ${{ secrets.BW_PASSWORD }} | ||
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} | ||
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} | ||
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }} | ||
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }} | ||
BW_NUMBER: ${{ secrets.BW_NUMBER }} | ||
USER_NUMBER: ${{ secrets.USER_NUMBER }} | ||
VZW_NUMBER: ${{ secrets.VZW_NUMBER }} | ||
ATT_NUMBER: ${{ secrets.ATT_NUMBER }} | ||
T_MOBILE_NUMBER: ${{ secrets.T_MOBILE_NUMBER }} | ||
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }} | ||
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }} | ||
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }} | ||
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} | ||
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} | ||
|
||
jobs: | ||
test: | ||
name: Test PR | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-latest] | ||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | ||
fail-fast: false | ||
env: | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
OPERATING_SYSTEM: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Packages | ||
run: | | ||
pip install -r requirements.txt | ||
pip install -r test-requirements.txt | ||
- name: Test at Warning Level | ||
run: | | ||
echo "Log level: WARNING" | ||
npm install -g @stoplight/prism-cli | ||
prism mock ./bandwidth.yml & pytest -v --log-cli-level=WARNING ./test/unit | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Smoke Tests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 4 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: Log level | ||
required: false | ||
default: WARNING | ||
type: choice | ||
options: | ||
- WARNING | ||
- DEBUG | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'test/smoke/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }} | ||
BW_USERNAME: ${{ secrets.BW_USERNAME }} | ||
BW_PASSWORD: ${{ secrets.BW_PASSWORD }} | ||
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} | ||
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} | ||
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }} | ||
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }} | ||
BW_NUMBER: ${{ secrets.BW_NUMBER }} | ||
USER_NUMBER: ${{ secrets.USER_NUMBER }} | ||
VZW_NUMBER: ${{ secrets.VZW_NUMBER }} | ||
ATT_NUMBER: ${{ secrets.ATT_NUMBER }} | ||
T_MOBILE_NUMBER: ${{ secrets.T_MOBILE_NUMBER }} | ||
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }} | ||
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }} | ||
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }} | ||
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} | ||
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} | ||
|
||
jobs: | ||
test: | ||
name: Smoke Test | ||
runs-on: ubuntu-latest | ||
env: | ||
PYTHON_VERSION: '3.12' | ||
OPERATING_SYSTEM: ubuntu | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install Packages | ||
run: | | ||
pip install -r requirements.txt | ||
pip install -r test-requirements.txt | ||
- name: Test at Debug Level | ||
if: ${{ inputs.logLevel == 'DEBUG' }} | ||
run: | | ||
echo "Log level: DEBUG" | ||
pytest -v --log-cli-level=DEBUG | ||
shell: bash | ||
|
||
- name: Test at Warning Level | ||
if: ${{( inputs.logLevel == null) || ( inputs.logLevel == 'WARNING') }} | ||
run: | | ||
echo "Log level: WARNING" | ||
pytest -v --log-cli-level=WARNING ./test/smoke | ||
shell: bash | ||
|
||
notify_for_failures: | ||
name: Notify for Failures | ||
needs: [test] | ||
if: failure() | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify Slack of Failures | ||
uses: Bandwidth/[email protected] | ||
with: | ||
job-status: failure | ||
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
slack-channel: ${{ secrets.SLACK_CHANNEL }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ __pycache__/ | |
# C extensions | ||
*.so | ||
|
||
# MacOS Files | ||
# MacOS Files | ||
.DS_Store | ||
|
||
# Distribution / packaging | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.4.0 | ||
7.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.