Skip to content

Commit

Permalink
SWI-2832 Migrate to OpenAPI Generator v7.0.0 (#156)
Browse files Browse the repository at this point in the history
* Update bandwidth.yml

* Regenerate with OpenAPI Generator 7.0.0

Fixed TN lookup Tests in this commit

* Remove autogenerated linter workflow

* Fix `_from` + test on Python 3.11

* more from stuff

* Update Call Cleanup

* remove type hint

* Fix Media tests

* Return asset path to original value

* Fix MFA tests

* Update test_recordings.py

* Update test_calls.py

* Update test_calls.py

* Fix messages test

* Attempt to fix some calls tests

* More calls tests updates

* Conferences test

* More error fixes

* More test fixes

* more conference fixes

* fix calls tests

* Update test_calls.py

* Update test_recordings.py

* Update test_recordings.py

* remove preload content

* please work

* Update test_recordings.py

* Update test_recordings.py

* Fix unit tests
  • Loading branch information
ajrice6713 authored Sep 14, 2023
1 parent a5f749e commit 7cf0842
Show file tree
Hide file tree
Showing 471 changed files with 23,014 additions and 36,559 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [windows-2022, windows-2019, ubuntu-18.04, ubuntu-20.04]
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]
env:
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
BW_USERNAME: ${{ secrets.BW_USERNAME }}
Expand Down
23 changes: 12 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.gitlab.com/ee/ci/README.html
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml

stages:
- test

.tests:
.pytest:
stage: test
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=bandwidth

test-3.6:
extends: .tests
image: python:3.6-alpine
test-3.7:
extends: .tests
pytest-3.7:
extends: .pytest
image: python:3.7-alpine
test-3.8:
extends: .tests
pytest-3.8:
extends: .pytest
image: python:3.8-alpine
test-3.9:
extends: .tests
image: python:3.9-alpine
pytest-3.9:
extends: .pytest
image: python:3.9-alpine
3 changes: 2 additions & 1 deletion .openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
.gitignore
setup.cfg
setup.py
*requirements.txt
#*requirements.txt
test/*
.github/workflows/python.yml
187 changes: 104 additions & 83 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.github/workflows/python.yml
.gitlab-ci.yml
.travis.yml
README.md
Expand All @@ -12,91 +13,99 @@ bandwidth/api/phone_number_lookup_api.py
bandwidth/api/recordings_api.py
bandwidth/api/statistics_api.py
bandwidth/api_client.py
bandwidth/apis/__init__.py
bandwidth/api_response.py
bandwidth/configuration.py
bandwidth/exceptions.py
bandwidth/model/__init__.py
bandwidth/model/account_statistics.py
bandwidth/model/answer_callback.py
bandwidth/model/bridge_complete_callback.py
bandwidth/model/bridge_target_complete_callback.py
bandwidth/model/call_direction_enum.py
bandwidth/model/call_recording_metadata.py
bandwidth/model/call_state.py
bandwidth/model/call_state_enum.py
bandwidth/model/callback_method_enum.py
bandwidth/model/code_request.py
bandwidth/model/conference.py
bandwidth/model/conference_completed_callback.py
bandwidth/model/conference_created_callback.py
bandwidth/model/conference_member.py
bandwidth/model/conference_member_exit_callback.py
bandwidth/model/conference_member_join_callback.py
bandwidth/model/conference_recording_available_callback.py
bandwidth/model/conference_recording_metadata.py
bandwidth/model/conference_redirect_callback.py
bandwidth/model/conference_state_enum.py
bandwidth/model/create_call.py
bandwidth/model/create_call_response.py
bandwidth/model/create_lookup_response.py
bandwidth/model/create_message_request_error.py
bandwidth/model/deferred_result.py
bandwidth/model/disconenct_callback.py
bandwidth/model/diversion.py
bandwidth/model/dtmf_callback.py
bandwidth/model/field_error.py
bandwidth/model/file_format_enum.py
bandwidth/model/gather_callback.py
bandwidth/model/initiate_callback.py
bandwidth/model/list_message_direction_enum.py
bandwidth/model/list_message_item.py
bandwidth/model/lookup_request.py
bandwidth/model/lookup_result.py
bandwidth/model/lookup_status.py
bandwidth/model/lookup_status_enum.py
bandwidth/model/machine_detection_complete_callback.py
bandwidth/model/machine_detection_configuration.py
bandwidth/model/machine_detection_mode_enum.py
bandwidth/model/media.py
bandwidth/model/message.py
bandwidth/model/message_direction_enum.py
bandwidth/model/message_request.py
bandwidth/model/message_status_enum.py
bandwidth/model/message_type_enum.py
bandwidth/model/messages_list.py
bandwidth/model/messaging_code_response.py
bandwidth/model/messaging_request_error.py
bandwidth/model/mfa_forbidden_request_error.py
bandwidth/model/mfa_request_error.py
bandwidth/model/mfa_unauthorized_request_error.py
bandwidth/model/page_info.py
bandwidth/model/priority_enum.py
bandwidth/model/recording_available_callback.py
bandwidth/model/recording_complete_callback.py
bandwidth/model/recording_state_enum.py
bandwidth/model/redirect_callback.py
bandwidth/model/redirect_method_enum.py
bandwidth/model/stir_shaken.py
bandwidth/model/tag.py
bandwidth/model/tn_lookup_request_error.py
bandwidth/model/transcribe_recording.py
bandwidth/model/transcription.py
bandwidth/model/transcription_available_callback.py
bandwidth/model/transcription_list.py
bandwidth/model/transcription_metadata.py
bandwidth/model/transfer_answer_callback.py
bandwidth/model/transfer_complete_callback.py
bandwidth/model/transfer_disconnect_callback.py
bandwidth/model/update_call.py
bandwidth/model/update_call_recording.py
bandwidth/model/update_conference.py
bandwidth/model/update_conference_member.py
bandwidth/model/verify_code_request.py
bandwidth/model/verify_code_response.py
bandwidth/model/voice_api_error.py
bandwidth/model/voice_code_response.py
bandwidth/model_utils.py
bandwidth/models/__init__.py
bandwidth/models/account_statistics.py
bandwidth/models/answer_callback.py
bandwidth/models/bridge_complete_callback.py
bandwidth/models/bridge_target_complete_callback.py
bandwidth/models/call_direction_enum.py
bandwidth/models/call_recording_metadata.py
bandwidth/models/call_state.py
bandwidth/models/call_state_enum.py
bandwidth/models/callback_method_enum.py
bandwidth/models/code_request.py
bandwidth/models/conference.py
bandwidth/models/conference_completed_callback.py
bandwidth/models/conference_created_callback.py
bandwidth/models/conference_member.py
bandwidth/models/conference_member_exit_callback.py
bandwidth/models/conference_member_join_callback.py
bandwidth/models/conference_recording_available_callback.py
bandwidth/models/conference_recording_metadata.py
bandwidth/models/conference_redirect_callback.py
bandwidth/models/conference_state_enum.py
bandwidth/models/create_call.py
bandwidth/models/create_call_response.py
bandwidth/models/create_lookup_response.py
bandwidth/models/create_message_request_error.py
bandwidth/models/deferred_result.py
bandwidth/models/disconnect_callback.py
bandwidth/models/diversion.py
bandwidth/models/dtmf_callback.py
bandwidth/models/field_error.py
bandwidth/models/file_format_enum.py
bandwidth/models/gather_callback.py
bandwidth/models/inbound_message_callback.py
bandwidth/models/inbound_message_callback_message.py
bandwidth/models/initiate_callback.py
bandwidth/models/list_message_direction_enum.py
bandwidth/models/list_message_item.py
bandwidth/models/lookup_request.py
bandwidth/models/lookup_result.py
bandwidth/models/lookup_status.py
bandwidth/models/lookup_status_enum.py
bandwidth/models/machine_detection_complete_callback.py
bandwidth/models/machine_detection_configuration.py
bandwidth/models/machine_detection_mode_enum.py
bandwidth/models/machine_detection_result.py
bandwidth/models/media.py
bandwidth/models/message.py
bandwidth/models/message_delivered_callback.py
bandwidth/models/message_delivered_callback_message.py
bandwidth/models/message_direction_enum.py
bandwidth/models/message_failed_callback.py
bandwidth/models/message_failed_callback_message.py
bandwidth/models/message_request.py
bandwidth/models/message_sending_callback.py
bandwidth/models/message_sending_callback_message.py
bandwidth/models/message_status_enum.py
bandwidth/models/message_type_enum.py
bandwidth/models/messages_list.py
bandwidth/models/messaging_code_response.py
bandwidth/models/messaging_request_error.py
bandwidth/models/mfa_forbidden_request_error.py
bandwidth/models/mfa_request_error.py
bandwidth/models/mfa_unauthorized_request_error.py
bandwidth/models/page_info.py
bandwidth/models/priority_enum.py
bandwidth/models/recording_available_callback.py
bandwidth/models/recording_complete_callback.py
bandwidth/models/recording_state_enum.py
bandwidth/models/redirect_callback.py
bandwidth/models/redirect_method_enum.py
bandwidth/models/stir_shaken.py
bandwidth/models/tag.py
bandwidth/models/tn_lookup_request_error.py
bandwidth/models/transcribe_recording.py
bandwidth/models/transcription.py
bandwidth/models/transcription_available_callback.py
bandwidth/models/transcription_list.py
bandwidth/models/transcription_metadata.py
bandwidth/models/transfer_answer_callback.py
bandwidth/models/transfer_complete_callback.py
bandwidth/models/transfer_disconnect_callback.py
bandwidth/models/update_call.py
bandwidth/models/update_call_recording.py
bandwidth/models/update_conference.py
bandwidth/models/update_conference_member.py
bandwidth/models/verify_code_request.py
bandwidth/models/verify_code_response.py
bandwidth/models/voice_api_error.py
bandwidth/models/voice_code_response.py
bandwidth/py.typed
bandwidth/rest.py
docs/AccountStatistics.md
docs/AnswerCallback.md
Expand Down Expand Up @@ -125,12 +134,14 @@ docs/CreateCallResponse.md
docs/CreateLookupResponse.md
docs/CreateMessageRequestError.md
docs/DeferredResult.md
docs/DisconenctCallback.md
docs/DisconnectCallback.md
docs/Diversion.md
docs/DtmfCallback.md
docs/FieldError.md
docs/FileFormatEnum.md
docs/GatherCallback.md
docs/InboundMessageCallback.md
docs/InboundMessageCallbackMessage.md
docs/InitiateCallback.md
docs/ListMessageDirectionEnum.md
docs/ListMessageItem.md
Expand All @@ -142,11 +153,18 @@ docs/MFAApi.md
docs/MachineDetectionCompleteCallback.md
docs/MachineDetectionConfiguration.md
docs/MachineDetectionModeEnum.md
docs/MachineDetectionResult.md
docs/Media.md
docs/MediaApi.md
docs/Message.md
docs/MessageDeliveredCallback.md
docs/MessageDeliveredCallbackMessage.md
docs/MessageDirectionEnum.md
docs/MessageFailedCallback.md
docs/MessageFailedCallbackMessage.md
docs/MessageRequest.md
docs/MessageSendingCallback.md
docs/MessageSendingCallbackMessage.md
docs/MessageStatusEnum.md
docs/MessageTypeEnum.md
docs/MessagesApi.md
Expand Down Expand Up @@ -186,4 +204,7 @@ docs/VerifyCodeResponse.md
docs/VoiceApiError.md
docs/VoiceCodeResponse.md
git_push.sh
pyproject.toml
requirements.txt
test-requirements.txt
tox.ini
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.1
7.0.0
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# uncomment the following if needed
#- "3.11-dev" # 3.11 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
- "pip install -r requirements.txt"
Expand Down
Loading

0 comments on commit 7cf0842

Please sign in to comment.