twilio-ruby 5.7.2 → 5.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/CHANGES.md +19 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/error.rb +20 -6
- data/lib/twilio-ruby/framework/version.rb +1 -10
- data/lib/twilio-ruby/jwt/access_token.rb +3 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -7
- data/lib/twilio-ruby/rest/preview.rb +11 -3
- data/lib/twilio-ruby/rest/preview/understand.rb +6 -6
- data/lib/twilio-ruby/rest/preview/understand/{service.rb → assistant.rb} +94 -55
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type.rb +33 -23
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type/field_value.rb +30 -22
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent.rb +39 -25
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/field.rb +20 -20
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/sample.rb +45 -27
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/model_build.rb +21 -21
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/query.rb +31 -26
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -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 +7 -7
- data/spec/integration/api/v2010/account/address_spec.rb +22 -22
- data/spec/integration/api/v2010/account/application_spec.rb +22 -22
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +9 -9
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +15 -15
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +13 -13
- data/spec/integration/api/v2010/account/call/notification_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call/recording_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call_spec.rb +22 -22
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +35 -35
- data/spec/integration/api/v2010/account/conference_spec.rb +14 -14
- data/spec/integration/api/v2010/account/connect_app_spec.rb +14 -14
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +19 -19
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +29 -29
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +22 -22
- data/spec/integration/api/v2010/account/key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +5 -5
- data/spec/integration/api/v2010/account/message/media_spec.rb +21 -21
- data/spec/integration/api/v2010/account/message_spec.rb +22 -22
- data/spec/integration/api/v2010/account/new_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/notification_spec.rb +14 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue/member_spec.rb +21 -21
- data/spec/integration/api/v2010/account/queue_spec.rb +22 -22
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +28 -28
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording_spec.rb +14 -14
- data/spec/integration/api/v2010/account/short_code_spec.rb +14 -14
- data/spec/integration/api/v2010/account/signing_key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/token_spec.rb +3 -3
- data/spec/integration/api/v2010/account/transcription_spec.rb +14 -14
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +3 -3
- data/spec/integration/api/v2010/account_spec.rb +84 -68
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/chat/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v1/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v1/service/role_spec.rb +22 -22
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v1/service/user_spec.rb +22 -22
- 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 +14 -14
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/chat/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/chat/v2/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v2/service/role_spec.rb +22 -22
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v2/service/user_spec.rb +22 -22
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +13 -13
- 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 +26 -26
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +22 -22
- 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 +14 -14
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -10
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +16 -16
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +21 -21
- data/spec/integration/messaging/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +6 -6
- data/spec/integration/monitor/v1/event_spec.rb +3 -3
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +17 -17
- data/spec/integration/notify/v1/service/notification_spec.rb +4 -4
- data/spec/integration/notify/v1/service/segment_spec.rb +4 -4
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +15 -15
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +17 -17
- data/spec/integration/notify/v1/service_spec.rb +9 -9
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service/verification_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service_spec.rb +6 -6
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +4 -4
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +3 -3
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +14 -14
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +19 -19
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +31 -31
- data/spec/integration/preview/proxy/service/session_spec.rb +21 -21
- data/spec/integration/preview/proxy/service/short_code_spec.rb +19 -19
- data/spec/integration/preview/proxy/service_spec.rb +9 -9
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +6 -6
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/document_spec.rb +23 -23
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_list_spec.rb +17 -17
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_map_spec.rb +17 -17
- data/spec/integration/preview/sync/service_spec.rb +9 -9
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +208 -0
- data/spec/integration/preview/understand/{service → assistant}/field_type_spec.rb +38 -38
- data/spec/integration/preview/understand/{service → assistant}/intent/field_spec.rb +36 -36
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +251 -0
- data/spec/integration/preview/understand/{service → assistant}/intent_spec.rb +42 -46
- data/spec/integration/preview/understand/{service → assistant}/model_build_spec.rb +34 -34
- data/spec/integration/preview/understand/{service → assistant}/query_spec.rb +42 -38
- data/spec/integration/preview/understand/{service_spec.rb → assistant_spec.rb} +57 -49
- data/spec/integration/preview/wireless/command_spec.rb +3 -3
- data/spec/integration/preview/wireless/rate_plan_spec.rb +9 -9
- data/spec/integration/preview/wireless/sim/usage_spec.rb +3 -3
- data/spec/integration/preview/wireless/sim_spec.rb +6 -6
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +19 -19
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +31 -31
- data/spec/integration/proxy/v1/service/session_spec.rb +21 -21
- data/spec/integration/proxy/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +5 -5
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +7 -7
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +6 -6
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/document_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +8 -8
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +22 -22
- data/spec/integration/sync/v1/service_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +26 -26
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +23 -23
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +22 -22
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk_spec.rb +9 -9
- data/spec/integration/video/v1/composition_spec.rb +6 -6
- data/spec/integration/video/v1/recording_spec.rb +10 -6
- data/spec/integration/video/v1/room/recording_spec.rb +9 -9
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant_spec.rb +14 -14
- data/spec/integration/video/v1/room_spec.rb +6 -6
- data/spec/integration/wireless/v1/command_spec.rb +3 -3
- data/spec/integration/wireless/v1/rate_plan_spec.rb +9 -9
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim_spec.rb +6 -6
- data/spec/jwt/access_token_spec.rb +2 -0
- metadata +26 -26
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +0 -205
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +0 -247
@@ -11,15 +11,15 @@ describe 'SigningKey' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
15
|
-
.signing_keys('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.signing_keys('SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
18
|
values = {}
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'get',
|
22
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
22
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SigningKeys/SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -36,8 +36,8 @@ describe 'SigningKey' do
|
|
36
36
|
]
|
37
37
|
))
|
38
38
|
|
39
|
-
actual = @client.api.v2010.accounts('
|
40
|
-
.signing_keys('
|
39
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
40
|
+
.signing_keys('SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
41
41
|
|
42
42
|
expect(actual).to_not eq(nil)
|
43
43
|
end
|
@@ -46,15 +46,15 @@ describe 'SigningKey' do
|
|
46
46
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
47
47
|
|
48
48
|
expect {
|
49
|
-
@client.api.v2010.accounts('
|
50
|
-
.signing_keys('
|
49
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
50
|
+
.signing_keys('SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
51
51
|
}.to raise_exception(Twilio::REST::TwilioError)
|
52
52
|
|
53
53
|
values = {}
|
54
54
|
expect(
|
55
55
|
@holodeck.has_request?(Holodeck::Request.new(
|
56
56
|
method: 'post',
|
57
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
57
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SigningKeys/SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
58
58
|
))).to eq(true)
|
59
59
|
end
|
60
60
|
|
@@ -71,8 +71,8 @@ describe 'SigningKey' do
|
|
71
71
|
]
|
72
72
|
))
|
73
73
|
|
74
|
-
actual = @client.api.v2010.accounts('
|
75
|
-
.signing_keys('
|
74
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
75
|
+
.signing_keys('SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
76
76
|
|
77
77
|
expect(actual).to_not eq(nil)
|
78
78
|
end
|
@@ -81,15 +81,15 @@ describe 'SigningKey' do
|
|
81
81
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
82
82
|
|
83
83
|
expect {
|
84
|
-
@client.api.v2010.accounts('
|
85
|
-
.signing_keys('
|
84
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
85
|
+
.signing_keys('SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
86
86
|
}.to raise_exception(Twilio::REST::TwilioError)
|
87
87
|
|
88
88
|
values = {}
|
89
89
|
expect(
|
90
90
|
@holodeck.has_request?(Holodeck::Request.new(
|
91
91
|
method: 'delete',
|
92
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
92
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SigningKeys/SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
93
93
|
))).to eq(true)
|
94
94
|
end
|
95
95
|
|
@@ -99,8 +99,8 @@ describe 'SigningKey' do
|
|
99
99
|
nil,
|
100
100
|
))
|
101
101
|
|
102
|
-
actual = @client.api.v2010.accounts('
|
103
|
-
.signing_keys('
|
102
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
103
|
+
.signing_keys('SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
104
104
|
|
105
105
|
expect(actual).to eq(true)
|
106
106
|
end
|
@@ -109,7 +109,7 @@ describe 'SigningKey' do
|
|
109
109
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
110
110
|
|
111
111
|
expect {
|
112
|
-
@client.api.v2010.accounts('
|
112
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
113
113
|
.signing_keys.list()
|
114
114
|
}.to raise_exception(Twilio::REST::TwilioError)
|
115
115
|
|
@@ -117,7 +117,7 @@ describe 'SigningKey' do
|
|
117
117
|
expect(
|
118
118
|
@holodeck.has_request?(Holodeck::Request.new(
|
119
119
|
method: 'get',
|
120
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
120
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SigningKeys.json',
|
121
121
|
))).to eq(true)
|
122
122
|
end
|
123
123
|
|
@@ -146,7 +146,7 @@ describe 'SigningKey' do
|
|
146
146
|
]
|
147
147
|
))
|
148
148
|
|
149
|
-
actual = @client.api.v2010.accounts('
|
149
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
150
150
|
.signing_keys.list()
|
151
151
|
|
152
152
|
expect(actual).to_not eq(nil)
|
@@ -170,7 +170,7 @@ describe 'SigningKey' do
|
|
170
170
|
]
|
171
171
|
))
|
172
172
|
|
173
|
-
actual = @client.api.v2010.accounts('
|
173
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
174
174
|
.signing_keys.list()
|
175
175
|
|
176
176
|
expect(actual).to_not eq(nil)
|
@@ -11,9 +11,9 @@ describe 'Credential' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.api.v2010.accounts('
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
15
|
.sip \
|
16
|
-
.credential_lists('
|
16
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
17
17
|
.credentials.list()
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
19
19
|
|
@@ -21,7 +21,7 @@ describe 'Credential' do
|
|
21
21
|
expect(
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
23
23
|
method: 'get',
|
24
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
24
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Credentials.json',
|
25
25
|
))).to eq(true)
|
26
26
|
end
|
27
27
|
|
@@ -56,9 +56,9 @@ describe 'Credential' do
|
|
56
56
|
]
|
57
57
|
))
|
58
58
|
|
59
|
-
actual = @client.api.v2010.accounts('
|
59
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
60
60
|
.sip \
|
61
|
-
.credential_lists('
|
61
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
62
62
|
.credentials.list()
|
63
63
|
|
64
64
|
expect(actual).to_not eq(nil)
|
@@ -85,9 +85,9 @@ describe 'Credential' do
|
|
85
85
|
]
|
86
86
|
))
|
87
87
|
|
88
|
-
actual = @client.api.v2010.accounts('
|
88
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
89
89
|
.sip \
|
90
|
-
.credential_lists('
|
90
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
91
91
|
.credentials.list()
|
92
92
|
|
93
93
|
expect(actual).to_not eq(nil)
|
@@ -97,9 +97,9 @@ describe 'Credential' do
|
|
97
97
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
98
98
|
|
99
99
|
expect {
|
100
|
-
@client.api.v2010.accounts('
|
100
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
101
101
|
.sip \
|
102
|
-
.credential_lists('
|
102
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
103
103
|
.credentials.create(username: 'username', password: 'password')
|
104
104
|
}.to raise_exception(Twilio::REST::TwilioError)
|
105
105
|
|
@@ -107,7 +107,7 @@ describe 'Credential' do
|
|
107
107
|
expect(
|
108
108
|
@holodeck.has_request?(Holodeck::Request.new(
|
109
109
|
method: 'post',
|
110
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
110
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Credentials.json',
|
111
111
|
data: values,
|
112
112
|
))).to eq(true)
|
113
113
|
end
|
@@ -128,9 +128,9 @@ describe 'Credential' do
|
|
128
128
|
]
|
129
129
|
))
|
130
130
|
|
131
|
-
actual = @client.api.v2010.accounts('
|
131
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
132
132
|
.sip \
|
133
|
-
.credential_lists('
|
133
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
134
134
|
.credentials.create(username: 'username', password: 'password')
|
135
135
|
|
136
136
|
expect(actual).to_not eq(nil)
|
@@ -140,17 +140,17 @@ describe 'Credential' do
|
|
140
140
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
141
141
|
|
142
142
|
expect {
|
143
|
-
@client.api.v2010.accounts('
|
143
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
144
144
|
.sip \
|
145
|
-
.credential_lists('
|
146
|
-
.credentials('
|
145
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
146
|
+
.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
147
147
|
}.to raise_exception(Twilio::REST::TwilioError)
|
148
148
|
|
149
149
|
values = {}
|
150
150
|
expect(
|
151
151
|
@holodeck.has_request?(Holodeck::Request.new(
|
152
152
|
method: 'get',
|
153
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
153
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
154
154
|
))).to eq(true)
|
155
155
|
end
|
156
156
|
|
@@ -170,10 +170,10 @@ describe 'Credential' do
|
|
170
170
|
]
|
171
171
|
))
|
172
172
|
|
173
|
-
actual = @client.api.v2010.accounts('
|
173
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
174
174
|
.sip \
|
175
|
-
.credential_lists('
|
176
|
-
.credentials('
|
175
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
176
|
+
.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
177
177
|
|
178
178
|
expect(actual).to_not eq(nil)
|
179
179
|
end
|
@@ -182,17 +182,17 @@ describe 'Credential' do
|
|
182
182
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
183
183
|
|
184
184
|
expect {
|
185
|
-
@client.api.v2010.accounts('
|
185
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
186
186
|
.sip \
|
187
|
-
.credential_lists('
|
188
|
-
.credentials('
|
187
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
188
|
+
.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
189
189
|
}.to raise_exception(Twilio::REST::TwilioError)
|
190
190
|
|
191
191
|
values = {}
|
192
192
|
expect(
|
193
193
|
@holodeck.has_request?(Holodeck::Request.new(
|
194
194
|
method: 'post',
|
195
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
195
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
196
196
|
))).to eq(true)
|
197
197
|
end
|
198
198
|
|
@@ -212,10 +212,10 @@ describe 'Credential' do
|
|
212
212
|
]
|
213
213
|
))
|
214
214
|
|
215
|
-
actual = @client.api.v2010.accounts('
|
215
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
216
216
|
.sip \
|
217
|
-
.credential_lists('
|
218
|
-
.credentials('
|
217
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
218
|
+
.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
219
219
|
|
220
220
|
expect(actual).to_not eq(nil)
|
221
221
|
end
|
@@ -224,17 +224,17 @@ describe 'Credential' do
|
|
224
224
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
225
225
|
|
226
226
|
expect {
|
227
|
-
@client.api.v2010.accounts('
|
227
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
228
228
|
.sip \
|
229
|
-
.credential_lists('
|
230
|
-
.credentials('
|
229
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
230
|
+
.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
231
231
|
}.to raise_exception(Twilio::REST::TwilioError)
|
232
232
|
|
233
233
|
values = {}
|
234
234
|
expect(
|
235
235
|
@holodeck.has_request?(Holodeck::Request.new(
|
236
236
|
method: 'delete',
|
237
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
237
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
238
238
|
))).to eq(true)
|
239
239
|
end
|
240
240
|
|
@@ -244,10 +244,10 @@ describe 'Credential' do
|
|
244
244
|
nil,
|
245
245
|
))
|
246
246
|
|
247
|
-
actual = @client.api.v2010.accounts('
|
247
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
248
248
|
.sip \
|
249
|
-
.credential_lists('
|
250
|
-
.credentials('
|
249
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
250
|
+
.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
251
251
|
|
252
252
|
expect(actual).to eq(true)
|
253
253
|
end
|
@@ -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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
15
|
.sip \
|
16
16
|
.credential_lists.list()
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
@@ -20,7 +20,7 @@ describe 'CredentialList' do
|
|
20
20
|
expect(
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
22
22
|
method: 'get',
|
23
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists.json',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
79
79
|
.sip \
|
80
80
|
.credential_lists.list()
|
81
81
|
|
@@ -86,7 +86,7 @@ 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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
90
90
|
.sip \
|
91
91
|
.credential_lists.create(friendly_name: 'friendly_name')
|
92
92
|
}.to raise_exception(Twilio::REST::TwilioError)
|
@@ -95,7 +95,7 @@ describe 'CredentialList' do
|
|
95
95
|
expect(
|
96
96
|
@holodeck.has_request?(Holodeck::Request.new(
|
97
97
|
method: 'post',
|
98
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
98
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists.json',
|
99
99
|
data: values,
|
100
100
|
))).to eq(true)
|
101
101
|
end
|
@@ -118,7 +118,7 @@ describe 'CredentialList' do
|
|
118
118
|
]
|
119
119
|
))
|
120
120
|
|
121
|
-
actual = @client.api.v2010.accounts('
|
121
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
122
122
|
.sip \
|
123
123
|
.credential_lists.create(friendly_name: 'friendly_name')
|
124
124
|
|
@@ -129,16 +129,16 @@ 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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
133
133
|
.sip \
|
134
|
-
.credential_lists('
|
134
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
135
135
|
}.to raise_exception(Twilio::REST::TwilioError)
|
136
136
|
|
137
137
|
values = {}
|
138
138
|
expect(
|
139
139
|
@holodeck.has_request?(Holodeck::Request.new(
|
140
140
|
method: 'get',
|
141
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
141
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
142
142
|
))).to eq(true)
|
143
143
|
end
|
144
144
|
|
@@ -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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
164
164
|
.sip \
|
165
|
-
.credential_lists('
|
165
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
166
166
|
|
167
167
|
expect(actual).to_not eq(nil)
|
168
168
|
end
|
@@ -171,16 +171,16 @@ 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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
175
175
|
.sip \
|
176
|
-
.credential_lists('
|
176
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(friendly_name: 'friendly_name')
|
177
177
|
}.to raise_exception(Twilio::REST::TwilioError)
|
178
178
|
|
179
179
|
values = {'FriendlyName' => 'friendly_name', }
|
180
180
|
expect(
|
181
181
|
@holodeck.has_request?(Holodeck::Request.new(
|
182
182
|
method: 'post',
|
183
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
183
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
184
184
|
data: values,
|
185
185
|
))).to eq(true)
|
186
186
|
end
|
@@ -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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
207
207
|
.sip \
|
208
|
-
.credential_lists('
|
208
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(friendly_name: 'friendly_name')
|
209
209
|
|
210
210
|
expect(actual).to_not eq(nil)
|
211
211
|
end
|
@@ -214,16 +214,16 @@ 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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
218
218
|
.sip \
|
219
|
-
.credential_lists('
|
219
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
220
220
|
}.to raise_exception(Twilio::REST::TwilioError)
|
221
221
|
|
222
222
|
values = {}
|
223
223
|
expect(
|
224
224
|
@holodeck.has_request?(Holodeck::Request.new(
|
225
225
|
method: 'delete',
|
226
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
226
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SIP/CredentialLists/CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
227
227
|
))).to eq(true)
|
228
228
|
end
|
229
229
|
|
@@ -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('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
237
237
|
.sip \
|
238
|
-
.credential_lists('
|
238
|
+
.credential_lists('CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
239
239
|
|
240
240
|
expect(actual).to eq(true)
|
241
241
|
end
|