twilio-ruby 5.6.3 → 5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/examples/print_call_log.rb +1 -1
- data/lib/twilio-ruby/jwt/client_capability.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +5 -1
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +12 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -1
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +6 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +6 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +6 -1
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +6 -1
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/preview/understand/service/intent.rb +5 -1
- data/lib/twilio-ruby/rest/preview/understand/service/model_build.rb +12 -2
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +6 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +10 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +6 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +12 -2
- data/lib/twilio-ruby/rest/video/v1/composition.rb +5 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +9 -9
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +9 -9
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +6 -6
- data/spec/integration/api/v2010/account/address_spec.rb +25 -25
- data/spec/integration/api/v2010/account/application_spec.rb +20 -20
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +7 -7
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +6 -6
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +12 -12
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +10 -10
- data/spec/integration/api/v2010/account/call/notification_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call/recording_spec.rb +18 -18
- data/spec/integration/api/v2010/account/call_spec.rb +20 -20
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +34 -34
- data/spec/integration/api/v2010/account/conference_spec.rb +11 -11
- data/spec/integration/api/v2010/account/connect_app_spec.rb +11 -11
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +17 -17
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +25 -25
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +8 -8
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +17 -17
- data/spec/integration/api/v2010/account/key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +4 -4
- data/spec/integration/api/v2010/account/message/media_spec.rb +18 -18
- data/spec/integration/api/v2010/account/message_spec.rb +21 -21
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -2
- data/spec/integration/api/v2010/account/notification_spec.rb +11 -11
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +15 -15
- data/spec/integration/api/v2010/account/queue/member_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue_spec.rb +20 -20
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +25 -25
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +18 -18
- data/spec/integration/api/v2010/account/recording_spec.rb +11 -11
- data/spec/integration/api/v2010/account/short_code_spec.rb +11 -11
- data/spec/integration/api/v2010/account/signing_key_spec.rb +15 -15
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +25 -25
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +20 -20
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +31 -31
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +21 -21
- data/spec/integration/api/v2010/account/token_spec.rb +2 -2
- data/spec/integration/api/v2010/account/transcription_spec.rb +11 -11
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/record_spec.rb +3 -3
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +5 -5
- data/spec/integration/api/v2010/account_spec.rb +4 -4
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/chat/v1/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v1/service/role_spec.rb +21 -21
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v1/service/user_spec.rb +20 -20
- data/spec/integration/chat/v1/service_spec.rb +9 -9
- data/spec/integration/chat/v2/credential_spec.rb +9 -9
- data/spec/integration/chat/v2/service/binding_spec.rb +11 -11
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/chat/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/chat/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v2/service/channel_spec.rb +17 -17
- data/spec/integration/chat/v2/service/role_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/chat/v2/service/user_spec.rb +20 -20
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +10 -10
- data/spec/integration/fax/v1/fax_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +34 -34
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +11 -11
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +25 -25
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +31 -31
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +17 -17
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +18 -18
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +6 -6
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +20 -20
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +12 -2
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +15 -15
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +17 -17
- data/spec/integration/messaging/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +4 -4
- data/spec/integration/monitor/v1/event_spec.rb +2 -2
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +16 -16
- data/spec/integration/notify/v1/service/notification_spec.rb +3 -3
- data/spec/integration/notify/v1/service/segment_spec.rb +3 -3
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +19 -19
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +16 -16
- data/spec/integration/notify/v1/service_spec.rb +6 -6
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service/verification_spec.rb +5 -5
- data/spec/integration/preview/acc_security/service_spec.rb +7 -7
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -2
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +4 -4
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -2
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +20 -20
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +17 -17
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +6 -6
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +3 -3
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +8 -8
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +11 -11
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +7 -7
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -2
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +11 -11
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +9 -9
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +15 -15
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +10 -10
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +29 -29
- data/spec/integration/preview/proxy/service/session_spec.rb +16 -16
- data/spec/integration/preview/proxy/service/short_code_spec.rb +15 -15
- data/spec/integration/preview/proxy/service_spec.rb +6 -6
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +4 -4
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/document_spec.rb +18 -18
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +28 -28
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_list_spec.rb +13 -13
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +32 -32
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/preview/sync/service/sync_map_spec.rb +13 -13
- data/spec/integration/preview/sync/service_spec.rb +6 -6
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +25 -25
- data/spec/integration/preview/understand/service/field_type_spec.rb +20 -20
- data/spec/integration/preview/understand/service/intent/field_spec.rb +25 -25
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +31 -31
- data/spec/integration/preview/understand/service/intent_spec.rb +20 -20
- data/spec/integration/preview/understand/service/model_build_spec.rb +17 -17
- data/spec/integration/preview/understand/service/query_spec.rb +20 -20
- data/spec/integration/preview/understand/service_spec.rb +6 -6
- data/spec/integration/preview/wireless/command_spec.rb +5 -5
- data/spec/integration/preview/wireless/rate_plan_spec.rb +6 -6
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -2
- data/spec/integration/preview/wireless/sim_spec.rb +4 -4
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -2
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -2
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +12 -12
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +20 -20
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +29 -29
- data/spec/integration/proxy/v1/service/session_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/short_code_spec.rb +15 -15
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +10 -10
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +4 -4
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/document_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +25 -25
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_list_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +31 -31
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +24 -24
- data/spec/integration/sync/v1/service/sync_map_spec.rb +17 -17
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +7 -7
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +17 -17
- data/spec/integration/sync/v1/service_spec.rb +6 -6
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +18 -18
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +20 -20
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -2
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +21 -21
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +16 -16
- data/spec/integration/trunking/v1/trunk_spec.rb +6 -6
- data/spec/integration/video/v1/composition_spec.rb +4 -4
- data/spec/integration/video/v1/recording_spec.rb +4 -4
- data/spec/integration/video/v1/room/recording_spec.rb +7 -7
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +10 -10
- data/spec/integration/video/v1/room/room_participant_spec.rb +11 -11
- data/spec/integration/video/v1/room_spec.rb +5 -5
- data/spec/integration/wireless/v1/command_spec.rb +5 -5
- data/spec/integration/wireless/v1/rate_plan_spec.rb +6 -6
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -2
- data/spec/integration/wireless/v1/sim_spec.rb +4 -4
- metadata +2 -2
@@ -11,7 +11,7 @@ describe 'CredentialList' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts(
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.sip \
|
16
16
|
.credential_lists.list()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
@@ -52,7 +52,7 @@ describe 'CredentialList' do
|
|
52
52
|
]
|
53
53
|
))
|
54
54
|
|
55
|
-
actual = @client.api.v2010.accounts(
|
55
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
56
56
|
.sip \
|
57
57
|
.credential_lists.list()
|
58
58
|
|
@@ -75,7 +75,7 @@ describe 'CredentialList' do
|
|
75
75
|
]
|
76
76
|
))
|
77
77
|
|
78
|
-
actual = @client.api.v2010.accounts(
|
78
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
79
79
|
.sip \
|
80
80
|
.credential_lists.list()
|
81
81
|
|
@@ -86,12 +86,12 @@ describe 'CredentialList' do
|
|
86
86
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
87
87
|
|
88
88
|
expect {
|
89
|
-
@client.api.v2010.accounts(
|
89
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
90
90
|
.sip \
|
91
|
-
.credential_lists.create(friendly_name:
|
91
|
+
.credential_lists.create(friendly_name: 'friendly_name')
|
92
92
|
}.to raise_exception(Twilio::REST::TwilioError)
|
93
93
|
|
94
|
-
values = {'FriendlyName' =>
|
94
|
+
values = {'FriendlyName' => 'friendly_name', }
|
95
95
|
expect(
|
96
96
|
@holodeck.has_request?(Holodeck::Request.new(
|
97
97
|
method: 'post',
|
@@ -118,9 +118,9 @@ describe 'CredentialList' do
|
|
118
118
|
]
|
119
119
|
))
|
120
120
|
|
121
|
-
actual = @client.api.v2010.accounts(
|
121
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
122
122
|
.sip \
|
123
|
-
.credential_lists.create(friendly_name:
|
123
|
+
.credential_lists.create(friendly_name: 'friendly_name')
|
124
124
|
|
125
125
|
expect(actual).to_not eq(nil)
|
126
126
|
end
|
@@ -129,9 +129,9 @@ describe 'CredentialList' do
|
|
129
129
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
130
130
|
|
131
131
|
expect {
|
132
|
-
@client.api.v2010.accounts(
|
132
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
133
133
|
.sip \
|
134
|
-
.credential_lists(
|
134
|
+
.credential_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
135
135
|
}.to raise_exception(Twilio::REST::TwilioError)
|
136
136
|
|
137
137
|
values = {}
|
@@ -160,9 +160,9 @@ describe 'CredentialList' do
|
|
160
160
|
]
|
161
161
|
))
|
162
162
|
|
163
|
-
actual = @client.api.v2010.accounts(
|
163
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
164
164
|
.sip \
|
165
|
-
.credential_lists(
|
165
|
+
.credential_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
166
166
|
|
167
167
|
expect(actual).to_not eq(nil)
|
168
168
|
end
|
@@ -171,12 +171,12 @@ describe 'CredentialList' do
|
|
171
171
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
172
172
|
|
173
173
|
expect {
|
174
|
-
@client.api.v2010.accounts(
|
174
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
175
175
|
.sip \
|
176
|
-
.credential_lists(
|
176
|
+
.credential_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update(friendly_name: 'friendly_name')
|
177
177
|
}.to raise_exception(Twilio::REST::TwilioError)
|
178
178
|
|
179
|
-
values = {'FriendlyName' =>
|
179
|
+
values = {'FriendlyName' => 'friendly_name', }
|
180
180
|
expect(
|
181
181
|
@holodeck.has_request?(Holodeck::Request.new(
|
182
182
|
method: 'post',
|
@@ -203,9 +203,9 @@ describe 'CredentialList' do
|
|
203
203
|
]
|
204
204
|
))
|
205
205
|
|
206
|
-
actual = @client.api.v2010.accounts(
|
206
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
207
207
|
.sip \
|
208
|
-
.credential_lists(
|
208
|
+
.credential_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update(friendly_name: 'friendly_name')
|
209
209
|
|
210
210
|
expect(actual).to_not eq(nil)
|
211
211
|
end
|
@@ -214,9 +214,9 @@ describe 'CredentialList' do
|
|
214
214
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
215
215
|
|
216
216
|
expect {
|
217
|
-
@client.api.v2010.accounts(
|
217
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
218
218
|
.sip \
|
219
|
-
.credential_lists(
|
219
|
+
.credential_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
220
220
|
}.to raise_exception(Twilio::REST::TwilioError)
|
221
221
|
|
222
222
|
values = {}
|
@@ -233,9 +233,9 @@ describe 'CredentialList' do
|
|
233
233
|
nil,
|
234
234
|
))
|
235
235
|
|
236
|
-
actual = @client.api.v2010.accounts(
|
236
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
237
237
|
.sip \
|
238
|
-
.credential_lists(
|
238
|
+
.credential_lists('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
239
239
|
|
240
240
|
expect(actual).to eq(true)
|
241
241
|
end
|
@@ -11,13 +11,13 @@ describe 'CredentialListMapping' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts(
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.sip \
|
16
|
-
.domains(
|
17
|
-
.credential_list_mappings.create(credential_list_sid:
|
16
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
17
|
+
.credential_list_mappings.create(credential_list_sid: 'CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
19
19
|
|
20
|
-
values = {'CredentialListSid' =>
|
20
|
+
values = {'CredentialListSid' => 'CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', }
|
21
21
|
expect(
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
23
23
|
method: 'post',
|
@@ -44,10 +44,10 @@ describe 'CredentialListMapping' do
|
|
44
44
|
]
|
45
45
|
))
|
46
46
|
|
47
|
-
actual = @client.api.v2010.accounts(
|
47
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
48
48
|
.sip \
|
49
|
-
.domains(
|
50
|
-
.credential_list_mappings.create(credential_list_sid:
|
49
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
50
|
+
.credential_list_mappings.create(credential_list_sid: 'CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
51
51
|
|
52
52
|
expect(actual).to_not eq(nil)
|
53
53
|
end
|
@@ -56,9 +56,9 @@ describe 'CredentialListMapping' do
|
|
56
56
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
57
57
|
|
58
58
|
expect {
|
59
|
-
@client.api.v2010.accounts(
|
59
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
60
60
|
.sip \
|
61
|
-
.domains(
|
61
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
62
62
|
.credential_list_mappings.list()
|
63
63
|
}.to raise_exception(Twilio::REST::TwilioError)
|
64
64
|
|
@@ -98,9 +98,9 @@ describe 'CredentialListMapping' do
|
|
98
98
|
]
|
99
99
|
))
|
100
100
|
|
101
|
-
actual = @client.api.v2010.accounts(
|
101
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
102
102
|
.sip \
|
103
|
-
.domains(
|
103
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
104
104
|
.credential_list_mappings.list()
|
105
105
|
|
106
106
|
expect(actual).to_not eq(nil)
|
@@ -122,9 +122,9 @@ describe 'CredentialListMapping' do
|
|
122
122
|
]
|
123
123
|
))
|
124
124
|
|
125
|
-
actual = @client.api.v2010.accounts(
|
125
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
126
126
|
.sip \
|
127
|
-
.domains(
|
127
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
128
128
|
.credential_list_mappings.list()
|
129
129
|
|
130
130
|
expect(actual).to_not eq(nil)
|
@@ -134,10 +134,10 @@ describe 'CredentialListMapping' do
|
|
134
134
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
135
135
|
|
136
136
|
expect {
|
137
|
-
@client.api.v2010.accounts(
|
137
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
138
138
|
.sip \
|
139
|
-
.domains(
|
140
|
-
.credential_list_mappings(
|
139
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
140
|
+
.credential_list_mappings('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
141
141
|
}.to raise_exception(Twilio::REST::TwilioError)
|
142
142
|
|
143
143
|
values = {}
|
@@ -166,10 +166,10 @@ describe 'CredentialListMapping' do
|
|
166
166
|
]
|
167
167
|
))
|
168
168
|
|
169
|
-
actual = @client.api.v2010.accounts(
|
169
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
170
170
|
.sip \
|
171
|
-
.domains(
|
172
|
-
.credential_list_mappings(
|
171
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
172
|
+
.credential_list_mappings('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
173
173
|
|
174
174
|
expect(actual).to_not eq(nil)
|
175
175
|
end
|
@@ -178,10 +178,10 @@ describe 'CredentialListMapping' do
|
|
178
178
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
179
179
|
|
180
180
|
expect {
|
181
|
-
@client.api.v2010.accounts(
|
181
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
182
182
|
.sip \
|
183
|
-
.domains(
|
184
|
-
.credential_list_mappings(
|
183
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
184
|
+
.credential_list_mappings('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
185
185
|
}.to raise_exception(Twilio::REST::TwilioError)
|
186
186
|
|
187
187
|
values = {}
|
@@ -198,10 +198,10 @@ describe 'CredentialListMapping' do
|
|
198
198
|
nil,
|
199
199
|
))
|
200
200
|
|
201
|
-
actual = @client.api.v2010.accounts(
|
201
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
202
202
|
.sip \
|
203
|
-
.domains(
|
204
|
-
.credential_list_mappings(
|
203
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
204
|
+
.credential_list_mappings('CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
205
205
|
|
206
206
|
expect(actual).to eq(true)
|
207
207
|
end
|
@@ -11,10 +11,10 @@ describe 'IpAccessControlListMapping' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts(
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.sip \
|
16
|
-
.domains(
|
17
|
-
.ip_access_control_list_mappings(
|
16
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
17
|
+
.ip_access_control_list_mappings('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
19
19
|
|
20
20
|
values = {}
|
@@ -43,10 +43,10 @@ describe 'IpAccessControlListMapping' do
|
|
43
43
|
]
|
44
44
|
))
|
45
45
|
|
46
|
-
actual = @client.api.v2010.accounts(
|
46
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
47
47
|
.sip \
|
48
|
-
.domains(
|
49
|
-
.ip_access_control_list_mappings(
|
48
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
49
|
+
.ip_access_control_list_mappings('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
50
50
|
|
51
51
|
expect(actual).to_not eq(nil)
|
52
52
|
end
|
@@ -55,13 +55,13 @@ describe 'IpAccessControlListMapping' do
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
56
56
|
|
57
57
|
expect {
|
58
|
-
@client.api.v2010.accounts(
|
58
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
59
59
|
.sip \
|
60
|
-
.domains(
|
61
|
-
.ip_access_control_list_mappings.create(ip_access_control_list_sid:
|
60
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
61
|
+
.ip_access_control_list_mappings.create(ip_access_control_list_sid: 'ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
62
62
|
}.to raise_exception(Twilio::REST::TwilioError)
|
63
63
|
|
64
|
-
values = {'IpAccessControlListSid' =>
|
64
|
+
values = {'IpAccessControlListSid' => 'ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', }
|
65
65
|
expect(
|
66
66
|
@holodeck.has_request?(Holodeck::Request.new(
|
67
67
|
method: 'post',
|
@@ -88,10 +88,10 @@ describe 'IpAccessControlListMapping' do
|
|
88
88
|
]
|
89
89
|
))
|
90
90
|
|
91
|
-
actual = @client.api.v2010.accounts(
|
91
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
92
92
|
.sip \
|
93
|
-
.domains(
|
94
|
-
.ip_access_control_list_mappings.create(ip_access_control_list_sid:
|
93
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
94
|
+
.ip_access_control_list_mappings.create(ip_access_control_list_sid: 'ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
95
95
|
|
96
96
|
expect(actual).to_not eq(nil)
|
97
97
|
end
|
@@ -100,9 +100,9 @@ describe 'IpAccessControlListMapping' do
|
|
100
100
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
101
101
|
|
102
102
|
expect {
|
103
|
-
@client.api.v2010.accounts(
|
103
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
104
104
|
.sip \
|
105
|
-
.domains(
|
105
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
106
106
|
.ip_access_control_list_mappings.list()
|
107
107
|
}.to raise_exception(Twilio::REST::TwilioError)
|
108
108
|
|
@@ -147,9 +147,9 @@ describe 'IpAccessControlListMapping' do
|
|
147
147
|
]
|
148
148
|
))
|
149
149
|
|
150
|
-
actual = @client.api.v2010.accounts(
|
150
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
151
151
|
.sip \
|
152
|
-
.domains(
|
152
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
153
153
|
.ip_access_control_list_mappings.list()
|
154
154
|
|
155
155
|
expect(actual).to_not eq(nil)
|
@@ -176,9 +176,9 @@ describe 'IpAccessControlListMapping' do
|
|
176
176
|
]
|
177
177
|
))
|
178
178
|
|
179
|
-
actual = @client.api.v2010.accounts(
|
179
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
180
180
|
.sip \
|
181
|
-
.domains(
|
181
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
182
182
|
.ip_access_control_list_mappings.list()
|
183
183
|
|
184
184
|
expect(actual).to_not eq(nil)
|
@@ -188,10 +188,10 @@ describe 'IpAccessControlListMapping' do
|
|
188
188
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
189
189
|
|
190
190
|
expect {
|
191
|
-
@client.api.v2010.accounts(
|
191
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
192
192
|
.sip \
|
193
|
-
.domains(
|
194
|
-
.ip_access_control_list_mappings(
|
193
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
194
|
+
.ip_access_control_list_mappings('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
195
195
|
}.to raise_exception(Twilio::REST::TwilioError)
|
196
196
|
|
197
197
|
values = {}
|
@@ -208,10 +208,10 @@ describe 'IpAccessControlListMapping' do
|
|
208
208
|
nil,
|
209
209
|
))
|
210
210
|
|
211
|
-
actual = @client.api.v2010.accounts(
|
211
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
212
212
|
.sip \
|
213
|
-
.domains(
|
214
|
-
.ip_access_control_list_mappings(
|
213
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
214
|
+
.ip_access_control_list_mappings('ALaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
215
215
|
|
216
216
|
expect(actual).to eq(true)
|
217
217
|
end
|
@@ -11,7 +11,7 @@ describe 'Domain' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts(
|
14
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
15
15
|
.sip \
|
16
16
|
.domains.list()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
@@ -63,7 +63,7 @@ describe 'Domain' do
|
|
63
63
|
]
|
64
64
|
))
|
65
65
|
|
66
|
-
actual = @client.api.v2010.accounts(
|
66
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
67
67
|
.sip \
|
68
68
|
.domains.list()
|
69
69
|
|
@@ -86,7 +86,7 @@ describe 'Domain' do
|
|
86
86
|
]
|
87
87
|
))
|
88
88
|
|
89
|
-
actual = @client.api.v2010.accounts(
|
89
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
90
90
|
.sip \
|
91
91
|
.domains.list()
|
92
92
|
|
@@ -97,12 +97,12 @@ describe 'Domain' do
|
|
97
97
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
98
98
|
|
99
99
|
expect {
|
100
|
-
@client.api.v2010.accounts(
|
100
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
101
101
|
.sip \
|
102
|
-
.domains.create(domain_name:
|
102
|
+
.domains.create(domain_name: 'domain_name')
|
103
103
|
}.to raise_exception(Twilio::REST::TwilioError)
|
104
104
|
|
105
|
-
values = {'DomainName' =>
|
105
|
+
values = {'DomainName' => 'domain_name', }
|
106
106
|
expect(
|
107
107
|
@holodeck.has_request?(Holodeck::Request.new(
|
108
108
|
method: 'post',
|
@@ -140,9 +140,9 @@ describe 'Domain' do
|
|
140
140
|
]
|
141
141
|
))
|
142
142
|
|
143
|
-
actual = @client.api.v2010.accounts(
|
143
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
144
144
|
.sip \
|
145
|
-
.domains.create(domain_name:
|
145
|
+
.domains.create(domain_name: 'domain_name')
|
146
146
|
|
147
147
|
expect(actual).to_not eq(nil)
|
148
148
|
end
|
@@ -151,9 +151,9 @@ describe 'Domain' do
|
|
151
151
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
152
152
|
|
153
153
|
expect {
|
154
|
-
@client.api.v2010.accounts(
|
154
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
155
155
|
.sip \
|
156
|
-
.domains(
|
156
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
157
157
|
}.to raise_exception(Twilio::REST::TwilioError)
|
158
158
|
|
159
159
|
values = {}
|
@@ -193,9 +193,9 @@ describe 'Domain' do
|
|
193
193
|
]
|
194
194
|
))
|
195
195
|
|
196
|
-
actual = @client.api.v2010.accounts(
|
196
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
197
197
|
.sip \
|
198
|
-
.domains(
|
198
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
|
199
199
|
|
200
200
|
expect(actual).to_not eq(nil)
|
201
201
|
end
|
@@ -204,9 +204,9 @@ describe 'Domain' do
|
|
204
204
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
205
205
|
|
206
206
|
expect {
|
207
|
-
@client.api.v2010.accounts(
|
207
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
208
208
|
.sip \
|
209
|
-
.domains(
|
209
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
210
210
|
}.to raise_exception(Twilio::REST::TwilioError)
|
211
211
|
|
212
212
|
values = {}
|
@@ -246,9 +246,9 @@ describe 'Domain' do
|
|
246
246
|
]
|
247
247
|
))
|
248
248
|
|
249
|
-
actual = @client.api.v2010.accounts(
|
249
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
250
250
|
.sip \
|
251
|
-
.domains(
|
251
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
|
252
252
|
|
253
253
|
expect(actual).to_not eq(nil)
|
254
254
|
end
|
@@ -257,9 +257,9 @@ describe 'Domain' do
|
|
257
257
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
258
258
|
|
259
259
|
expect {
|
260
|
-
@client.api.v2010.accounts(
|
260
|
+
@client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
261
261
|
.sip \
|
262
|
-
.domains(
|
262
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
263
263
|
}.to raise_exception(Twilio::REST::TwilioError)
|
264
264
|
|
265
265
|
values = {}
|
@@ -276,9 +276,9 @@ describe 'Domain' do
|
|
276
276
|
nil,
|
277
277
|
))
|
278
278
|
|
279
|
-
actual = @client.api.v2010.accounts(
|
279
|
+
actual = @client.api.v2010.accounts('ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
|
280
280
|
.sip \
|
281
|
-
.domains(
|
281
|
+
.domains('SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
|
282
282
|
|
283
283
|
expect(actual).to eq(true)
|
284
284
|
end
|