Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
23998af
Added initial call creation and recording tests.
matthewkmartin Jul 8, 2022
df0ac5d
Working on downloading recordings.
matthewkmartin Jul 11, 2022
5cee52c
Added tests for downloading recordings, transcriptions, and deleting.
matthewkmartin Jul 12, 2022
7ef9194
Added validation of 204 response for deleting recording media.
matthewkmartin Jul 13, 2022
f9e84ce
Merge branch 'feature/openapi-generator-sdk' into DX-2692
matthewkmartin Jul 13, 2022
3494c90
Extracted common call setup functionality and began work on active up…
matthewkmartin Jul 13, 2022
b21b3df
Added Manteca polling for calls tests.
matthewkmartin Jul 18, 2022
affb6be
Began work on testing error paths for recordings api.
matthewkmartin Jul 18, 2022
64d9547
Added GitHub Actions environment vars for OS and Python Version.
matthewkmartin Jul 19, 2022
6bb26af
Added method stubs for invalid endpoint tests.
matthewkmartin Jul 19, 2022
716b8ec
Created invalid tests for several endpoints.
matthewkmartin Jul 19, 2022
fc40c12
Completed tests for invalid recordings API calls.
matthewkmartin Jul 20, 2022
9b97a6c
Added docstrings for test methods.
matthewkmartin Jul 20, 2022
9637235
Updated happy path to use extracted method.
matthewkmartin Jul 20, 2022
0726d12
Added checks for 2XX response codes.
matthewkmartin Jul 21, 2022
69db05f
Merge branch 'feature/openapi-generator-sdk' into DX-2692
matthewkmartin Jul 21, 2022
742ecf2
Updating access to environment variables.
matthewkmartin Jul 21, 2022
35f428f
Merge branch 'DX-2692' of https://github.com/Bandwidth/python-sdk int…
matthewkmartin Jul 21, 2022
d5430ce
Removed tracking for .vscode
matthewkmartin Jul 21, 2022
4f04e0e
Increased timeout period for Manteca polling.
matthewkmartin Jul 21, 2022
75f00e1
Updated teardown for call length restriction.
matthewkmartin Jul 29, 2022
ebacf00
Fix api_instance typo causing test failures
ajrice6713 Aug 1, 2022
0300bda
Merge branch 'feature/openapi-generator-sdk' into DX-2692
ajrice6713 Aug 2, 2022
ec6a13c
Bump time.sleep to `5` to account for long running transcriptions
ajrice6713 Aug 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 40 additions & 36 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,48 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-18.04, ubuntu-20.04]
python-version: [3.6, 3.7, 3.8, 3.9, '3.10']
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install Packages
run: |
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Install Packages
run: |
pip install -r requirements.txt
pip install -r test-requirements.txt

- name: Test
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 }}
PYTHON_VERSION: ${{ matrix.python-version }}
run: pytest

- name: Notify Slack of Failures
uses: Bandwidth/build-notify-slack-action@v1.0.0
if: failure() && !github.event.pull_request.draft
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}
- name: Test
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 }}
PYTHON_VERSION: ${{ matrix.python-version }}
OPERATING_SYSTEM: ${{ matrix.os }}
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 }}
run: pytest

- name: Notify Slack of Failures
uses: Bandwidth/build-notify-slack-action@v1.0.0
if: failure() && !github.event.pull_request.draft
with:
job-status: ${{ job.status }}
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
slack-channel: ${{ secrets.SLACK_CHANNEL }}
Loading