twilio-ruby 5.7.2 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,16 +11,16 @@ describe 'Interaction' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services('
|
|
15
|
-
.sessions('
|
|
16
|
-
.interactions('
|
|
14
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.interactions('KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
23
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Interactions/KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -52,9 +52,9 @@ describe 'Interaction' do
|
|
|
52
52
|
]
|
|
53
53
|
))
|
|
54
54
|
|
|
55
|
-
actual = @client.proxy.v1.services('
|
|
56
|
-
.sessions('
|
|
57
|
-
.interactions('
|
|
55
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
56
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
57
|
+
.interactions('KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
58
58
|
|
|
59
59
|
expect(actual).to_not eq(nil)
|
|
60
60
|
end
|
|
@@ -63,8 +63,8 @@ describe 'Interaction' do
|
|
|
63
63
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
64
64
|
|
|
65
65
|
expect {
|
|
66
|
-
@client.proxy.v1.services('
|
|
67
|
-
.sessions('
|
|
66
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
67
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
68
68
|
.interactions.list()
|
|
69
69
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@ describe 'Interaction' do
|
|
|
72
72
|
expect(
|
|
73
73
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
74
74
|
method: 'get',
|
|
75
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
75
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Interactions',
|
|
76
76
|
))).to eq(true)
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -95,8 +95,8 @@ describe 'Interaction' do
|
|
|
95
95
|
]
|
|
96
96
|
))
|
|
97
97
|
|
|
98
|
-
actual = @client.proxy.v1.services('
|
|
99
|
-
.sessions('
|
|
98
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
99
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
100
100
|
.interactions.list()
|
|
101
101
|
|
|
102
102
|
expect(actual).to_not eq(nil)
|
|
@@ -106,16 +106,16 @@ describe 'Interaction' do
|
|
|
106
106
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
107
107
|
|
|
108
108
|
expect {
|
|
109
|
-
@client.proxy.v1.services('
|
|
110
|
-
.sessions('
|
|
111
|
-
.interactions('
|
|
109
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
110
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
111
|
+
.interactions('KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
112
112
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
113
113
|
|
|
114
114
|
values = {}
|
|
115
115
|
expect(
|
|
116
116
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
117
117
|
method: 'delete',
|
|
118
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
118
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Interactions/KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
119
119
|
))).to eq(true)
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -125,9 +125,9 @@ describe 'Interaction' do
|
|
|
125
125
|
nil,
|
|
126
126
|
))
|
|
127
127
|
|
|
128
|
-
actual = @client.proxy.v1.services('
|
|
129
|
-
.sessions('
|
|
130
|
-
.interactions('
|
|
128
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
129
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
130
|
+
.interactions('KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
131
131
|
|
|
132
132
|
expect(actual).to eq(true)
|
|
133
133
|
end
|
|
@@ -11,9 +11,9 @@ describe 'MessageInteraction' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services('
|
|
15
|
-
.sessions('
|
|
16
|
-
.participants('
|
|
14
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
17
17
|
.message_interactions.create()
|
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ describe 'MessageInteraction' do
|
|
|
21
21
|
expect(
|
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
23
23
|
method: 'post',
|
|
24
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
24
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/MessageInteractions',
|
|
25
25
|
))).to eq(true)
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -54,9 +54,9 @@ describe 'MessageInteraction' do
|
|
|
54
54
|
]
|
|
55
55
|
))
|
|
56
56
|
|
|
57
|
-
actual = @client.proxy.v1.services('
|
|
58
|
-
.sessions('
|
|
59
|
-
.participants('
|
|
57
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
58
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
59
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
60
60
|
.message_interactions.create()
|
|
61
61
|
|
|
62
62
|
expect(actual).to_not eq(nil)
|
|
@@ -66,17 +66,17 @@ describe 'MessageInteraction' do
|
|
|
66
66
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
67
67
|
|
|
68
68
|
expect {
|
|
69
|
-
@client.proxy.v1.services('
|
|
70
|
-
.sessions('
|
|
71
|
-
.participants('
|
|
72
|
-
.message_interactions('
|
|
69
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
70
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
71
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
72
|
+
.message_interactions('KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
73
73
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
74
74
|
|
|
75
75
|
values = {}
|
|
76
76
|
expect(
|
|
77
77
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
78
78
|
method: 'get',
|
|
79
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
79
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/MessageInteractions/KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
80
80
|
))).to eq(true)
|
|
81
81
|
end
|
|
82
82
|
|
|
@@ -109,10 +109,10 @@ describe 'MessageInteraction' do
|
|
|
109
109
|
]
|
|
110
110
|
))
|
|
111
111
|
|
|
112
|
-
actual = @client.proxy.v1.services('
|
|
113
|
-
.sessions('
|
|
114
|
-
.participants('
|
|
115
|
-
.message_interactions('
|
|
112
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
113
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
114
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
115
|
+
.message_interactions('KIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
116
116
|
|
|
117
117
|
expect(actual).to_not eq(nil)
|
|
118
118
|
end
|
|
@@ -121,9 +121,9 @@ describe 'MessageInteraction' do
|
|
|
121
121
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
122
122
|
|
|
123
123
|
expect {
|
|
124
|
-
@client.proxy.v1.services('
|
|
125
|
-
.sessions('
|
|
126
|
-
.participants('
|
|
124
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
125
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
126
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
127
127
|
.message_interactions.list()
|
|
128
128
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
129
129
|
|
|
@@ -131,7 +131,7 @@ describe 'MessageInteraction' do
|
|
|
131
131
|
expect(
|
|
132
132
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
133
133
|
method: 'get',
|
|
134
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
134
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/MessageInteractions',
|
|
135
135
|
))).to eq(true)
|
|
136
136
|
end
|
|
137
137
|
|
|
@@ -154,9 +154,9 @@ describe 'MessageInteraction' do
|
|
|
154
154
|
]
|
|
155
155
|
))
|
|
156
156
|
|
|
157
|
-
actual = @client.proxy.v1.services('
|
|
158
|
-
.sessions('
|
|
159
|
-
.participants('
|
|
157
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
158
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
159
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
160
160
|
.message_interactions.list()
|
|
161
161
|
|
|
162
162
|
expect(actual).to_not eq(nil)
|
|
@@ -11,16 +11,16 @@ describe 'Participant' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services('
|
|
15
|
-
.sessions('
|
|
16
|
-
.participants('
|
|
14
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
23
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -48,9 +48,9 @@ describe 'Participant' do
|
|
|
48
48
|
]
|
|
49
49
|
))
|
|
50
50
|
|
|
51
|
-
actual = @client.proxy.v1.services('
|
|
52
|
-
.sessions('
|
|
53
|
-
.participants('
|
|
51
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
52
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
53
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
54
54
|
|
|
55
55
|
expect(actual).to_not eq(nil)
|
|
56
56
|
end
|
|
@@ -59,8 +59,8 @@ describe 'Participant' do
|
|
|
59
59
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
60
60
|
|
|
61
61
|
expect {
|
|
62
|
-
@client.proxy.v1.services('
|
|
63
|
-
.sessions('
|
|
62
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
63
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
64
64
|
.participants.list()
|
|
65
65
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ describe 'Participant' do
|
|
|
68
68
|
expect(
|
|
69
69
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
70
70
|
method: 'get',
|
|
71
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
71
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants',
|
|
72
72
|
))).to eq(true)
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -91,8 +91,8 @@ describe 'Participant' do
|
|
|
91
91
|
]
|
|
92
92
|
))
|
|
93
93
|
|
|
94
|
-
actual = @client.proxy.v1.services('
|
|
95
|
-
.sessions('
|
|
94
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
95
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
96
96
|
.participants.list()
|
|
97
97
|
|
|
98
98
|
expect(actual).to_not eq(nil)
|
|
@@ -102,8 +102,8 @@ describe 'Participant' do
|
|
|
102
102
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
103
103
|
|
|
104
104
|
expect {
|
|
105
|
-
@client.proxy.v1.services('
|
|
106
|
-
.sessions('
|
|
105
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
106
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
107
107
|
.participants.create(identifier: 'identifier')
|
|
108
108
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
109
109
|
|
|
@@ -111,7 +111,7 @@ describe 'Participant' do
|
|
|
111
111
|
expect(
|
|
112
112
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
113
113
|
method: 'post',
|
|
114
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
114
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants',
|
|
115
115
|
data: values,
|
|
116
116
|
))).to eq(true)
|
|
117
117
|
end
|
|
@@ -140,8 +140,8 @@ describe 'Participant' do
|
|
|
140
140
|
]
|
|
141
141
|
))
|
|
142
142
|
|
|
143
|
-
actual = @client.proxy.v1.services('
|
|
144
|
-
.sessions('
|
|
143
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
144
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
145
145
|
.participants.create(identifier: 'identifier')
|
|
146
146
|
|
|
147
147
|
expect(actual).to_not eq(nil)
|
|
@@ -151,16 +151,16 @@ describe 'Participant' do
|
|
|
151
151
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
152
152
|
|
|
153
153
|
expect {
|
|
154
|
-
@client.proxy.v1.services('
|
|
155
|
-
.sessions('
|
|
156
|
-
.participants('
|
|
154
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
155
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
156
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
157
157
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
158
158
|
|
|
159
159
|
values = {}
|
|
160
160
|
expect(
|
|
161
161
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
162
162
|
method: 'delete',
|
|
163
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
163
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
164
164
|
))).to eq(true)
|
|
165
165
|
end
|
|
166
166
|
|
|
@@ -170,9 +170,9 @@ describe 'Participant' do
|
|
|
170
170
|
nil,
|
|
171
171
|
))
|
|
172
172
|
|
|
173
|
-
actual = @client.proxy.v1.services('
|
|
174
|
-
.sessions('
|
|
175
|
-
.participants('
|
|
173
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
174
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
175
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
176
176
|
|
|
177
177
|
expect(actual).to eq(true)
|
|
178
178
|
end
|
|
@@ -181,16 +181,16 @@ describe 'Participant' do
|
|
|
181
181
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
182
182
|
|
|
183
183
|
expect {
|
|
184
|
-
@client.proxy.v1.services('
|
|
185
|
-
.sessions('
|
|
186
|
-
.participants('
|
|
184
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
185
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
186
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
187
187
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
188
188
|
|
|
189
189
|
values = {}
|
|
190
190
|
expect(
|
|
191
191
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
192
192
|
method: 'post',
|
|
193
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
193
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
194
194
|
))).to eq(true)
|
|
195
195
|
end
|
|
196
196
|
|
|
@@ -218,9 +218,9 @@ describe 'Participant' do
|
|
|
218
218
|
]
|
|
219
219
|
))
|
|
220
220
|
|
|
221
|
-
actual = @client.proxy.v1.services('
|
|
222
|
-
.sessions('
|
|
223
|
-
.participants('
|
|
221
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
222
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
223
|
+
.participants('KPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
224
224
|
|
|
225
225
|
expect(actual).to_not eq(nil)
|
|
226
226
|
end
|
|
@@ -11,15 +11,15 @@ describe 'Session' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.proxy.v1.services('
|
|
15
|
-
.sessions('
|
|
14
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://proxy.twilio.com/v1/Services/
|
|
22
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
23
23
|
))).to eq(true)
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -51,8 +51,8 @@ describe 'Session' do
|
|
|
51
51
|
]
|
|
52
52
|
))
|
|
53
53
|
|
|
54
|
-
actual = @client.proxy.v1.services('
|
|
55
|
-
.sessions('
|
|
54
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
55
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
56
56
|
|
|
57
57
|
expect(actual).to_not eq(nil)
|
|
58
58
|
end
|
|
@@ -61,7 +61,7 @@ describe 'Session' do
|
|
|
61
61
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
62
62
|
|
|
63
63
|
expect {
|
|
64
|
-
@client.proxy.v1.services('
|
|
64
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
65
65
|
.sessions.list()
|
|
66
66
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
67
67
|
|
|
@@ -69,7 +69,7 @@ describe 'Session' do
|
|
|
69
69
|
expect(
|
|
70
70
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
71
71
|
method: 'get',
|
|
72
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
72
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions',
|
|
73
73
|
))).to eq(true)
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -92,7 +92,7 @@ describe 'Session' do
|
|
|
92
92
|
]
|
|
93
93
|
))
|
|
94
94
|
|
|
95
|
-
actual = @client.proxy.v1.services('
|
|
95
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
96
96
|
.sessions.list()
|
|
97
97
|
|
|
98
98
|
expect(actual).to_not eq(nil)
|
|
@@ -102,7 +102,7 @@ describe 'Session' do
|
|
|
102
102
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
103
103
|
|
|
104
104
|
expect {
|
|
105
|
-
@client.proxy.v1.services('
|
|
105
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
106
106
|
.sessions.create()
|
|
107
107
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
108
108
|
|
|
@@ -110,7 +110,7 @@ describe 'Session' do
|
|
|
110
110
|
expect(
|
|
111
111
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
112
112
|
method: 'post',
|
|
113
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
113
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions',
|
|
114
114
|
))).to eq(true)
|
|
115
115
|
end
|
|
116
116
|
|
|
@@ -142,7 +142,7 @@ describe 'Session' do
|
|
|
142
142
|
]
|
|
143
143
|
))
|
|
144
144
|
|
|
145
|
-
actual = @client.proxy.v1.services('
|
|
145
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
146
146
|
.sessions.create()
|
|
147
147
|
|
|
148
148
|
expect(actual).to_not eq(nil)
|
|
@@ -152,15 +152,15 @@ describe 'Session' do
|
|
|
152
152
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
153
153
|
|
|
154
154
|
expect {
|
|
155
|
-
@client.proxy.v1.services('
|
|
156
|
-
.sessions('
|
|
155
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
156
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
157
157
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
158
158
|
|
|
159
159
|
values = {}
|
|
160
160
|
expect(
|
|
161
161
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
162
162
|
method: 'delete',
|
|
163
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
163
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
164
164
|
))).to eq(true)
|
|
165
165
|
end
|
|
166
166
|
|
|
@@ -170,8 +170,8 @@ describe 'Session' do
|
|
|
170
170
|
nil,
|
|
171
171
|
))
|
|
172
172
|
|
|
173
|
-
actual = @client.proxy.v1.services('
|
|
174
|
-
.sessions('
|
|
173
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
174
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
175
175
|
|
|
176
176
|
expect(actual).to eq(true)
|
|
177
177
|
end
|
|
@@ -180,15 +180,15 @@ describe 'Session' do
|
|
|
180
180
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
181
181
|
|
|
182
182
|
expect {
|
|
183
|
-
@client.proxy.v1.services('
|
|
184
|
-
.sessions('
|
|
183
|
+
@client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
184
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
185
185
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
186
186
|
|
|
187
187
|
values = {}
|
|
188
188
|
expect(
|
|
189
189
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
190
190
|
method: 'post',
|
|
191
|
-
url: 'https://proxy.twilio.com/v1/Services/
|
|
191
|
+
url: 'https://proxy.twilio.com/v1/Services/KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Sessions/KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
192
192
|
))).to eq(true)
|
|
193
193
|
end
|
|
194
194
|
|
|
@@ -220,8 +220,8 @@ describe 'Session' do
|
|
|
220
220
|
]
|
|
221
221
|
))
|
|
222
222
|
|
|
223
|
-
actual = @client.proxy.v1.services('
|
|
224
|
-
.sessions('
|
|
223
|
+
actual = @client.proxy.v1.services('KSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
224
|
+
.sessions('KCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
225
225
|
|
|
226
226
|
expect(actual).to_not eq(nil)
|
|
227
227
|
end
|