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,15 +11,15 @@ describe 'PhoneNumber' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.trunking.v1.trunks('
|
|
15
|
-
.phone_numbers('
|
|
14
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://trunking.twilio.com/v1/Trunks/
|
|
22
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
23
23
|
))).to eq(true)
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -64,8 +64,8 @@ describe 'PhoneNumber' do
|
|
|
64
64
|
]
|
|
65
65
|
))
|
|
66
66
|
|
|
67
|
-
actual = @client.trunking.v1.trunks('
|
|
68
|
-
.phone_numbers('
|
|
67
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
68
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
69
69
|
|
|
70
70
|
expect(actual).to_not eq(nil)
|
|
71
71
|
end
|
|
@@ -74,15 +74,15 @@ describe 'PhoneNumber' do
|
|
|
74
74
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
75
75
|
|
|
76
76
|
expect {
|
|
77
|
-
@client.trunking.v1.trunks('
|
|
78
|
-
.phone_numbers('
|
|
77
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
78
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
79
79
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
80
80
|
|
|
81
81
|
values = {}
|
|
82
82
|
expect(
|
|
83
83
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
84
84
|
method: 'delete',
|
|
85
|
-
url: 'https://trunking.twilio.com/v1/Trunks/
|
|
85
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
86
86
|
))).to eq(true)
|
|
87
87
|
end
|
|
88
88
|
|
|
@@ -92,8 +92,8 @@ describe 'PhoneNumber' do
|
|
|
92
92
|
nil,
|
|
93
93
|
))
|
|
94
94
|
|
|
95
|
-
actual = @client.trunking.v1.trunks('
|
|
96
|
-
.phone_numbers('
|
|
95
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
96
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
97
97
|
|
|
98
98
|
expect(actual).to eq(true)
|
|
99
99
|
end
|
|
@@ -102,15 +102,15 @@ describe 'PhoneNumber' do
|
|
|
102
102
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
103
103
|
|
|
104
104
|
expect {
|
|
105
|
-
@client.trunking.v1.trunks('
|
|
106
|
-
.phone_numbers.create(phone_number_sid: '
|
|
105
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
106
|
+
.phone_numbers.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
|
107
107
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
108
108
|
|
|
109
|
-
values = {'PhoneNumberSid' => '
|
|
109
|
+
values = {'PhoneNumberSid' => 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
|
|
110
110
|
expect(
|
|
111
111
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
112
112
|
method: 'post',
|
|
113
|
-
url: 'https://trunking.twilio.com/v1/Trunks/
|
|
113
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers',
|
|
114
114
|
data: values,
|
|
115
115
|
))).to eq(true)
|
|
116
116
|
end
|
|
@@ -156,8 +156,8 @@ describe 'PhoneNumber' do
|
|
|
156
156
|
]
|
|
157
157
|
))
|
|
158
158
|
|
|
159
|
-
actual = @client.trunking.v1.trunks('
|
|
160
|
-
.phone_numbers.create(phone_number_sid: '
|
|
159
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
160
|
+
.phone_numbers.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
|
161
161
|
|
|
162
162
|
expect(actual).to_not eq(nil)
|
|
163
163
|
end
|
|
@@ -166,7 +166,7 @@ describe 'PhoneNumber' do
|
|
|
166
166
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
167
167
|
|
|
168
168
|
expect {
|
|
169
|
-
@client.trunking.v1.trunks('
|
|
169
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
170
170
|
.phone_numbers.list()
|
|
171
171
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
172
172
|
|
|
@@ -174,7 +174,7 @@ describe 'PhoneNumber' do
|
|
|
174
174
|
expect(
|
|
175
175
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
176
176
|
method: 'get',
|
|
177
|
-
url: 'https://trunking.twilio.com/v1/Trunks/
|
|
177
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers',
|
|
178
178
|
))).to eq(true)
|
|
179
179
|
end
|
|
180
180
|
|
|
@@ -232,7 +232,7 @@ describe 'PhoneNumber' do
|
|
|
232
232
|
]
|
|
233
233
|
))
|
|
234
234
|
|
|
235
|
-
actual = @client.trunking.v1.trunks('
|
|
235
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
236
236
|
.phone_numbers.list()
|
|
237
237
|
|
|
238
238
|
expect(actual).to_not eq(nil)
|
|
@@ -257,7 +257,7 @@ describe 'PhoneNumber' do
|
|
|
257
257
|
]
|
|
258
258
|
))
|
|
259
259
|
|
|
260
|
-
actual = @client.trunking.v1.trunks('
|
|
260
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
261
261
|
.phone_numbers.list()
|
|
262
262
|
|
|
263
263
|
expect(actual).to_not eq(nil)
|
|
@@ -11,14 +11,14 @@ describe 'Trunk' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.trunking.v1.trunks('
|
|
14
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
16
16
|
|
|
17
17
|
values = {}
|
|
18
18
|
expect(
|
|
19
19
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
20
20
|
method: 'get',
|
|
21
|
-
url: 'https://trunking.twilio.com/v1/Trunks/
|
|
21
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
22
22
|
))).to eq(true)
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -53,7 +53,7 @@ describe 'Trunk' do
|
|
|
53
53
|
]
|
|
54
54
|
))
|
|
55
55
|
|
|
56
|
-
actual = @client.trunking.v1.trunks('
|
|
56
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
57
57
|
|
|
58
58
|
expect(actual).to_not eq(nil)
|
|
59
59
|
end
|
|
@@ -62,14 +62,14 @@ describe 'Trunk' do
|
|
|
62
62
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
63
63
|
|
|
64
64
|
expect {
|
|
65
|
-
@client.trunking.v1.trunks('
|
|
65
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
66
66
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
67
67
|
|
|
68
68
|
values = {}
|
|
69
69
|
expect(
|
|
70
70
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
71
71
|
method: 'delete',
|
|
72
|
-
url: 'https://trunking.twilio.com/v1/Trunks/
|
|
72
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
73
73
|
))).to eq(true)
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -79,7 +79,7 @@ describe 'Trunk' do
|
|
|
79
79
|
nil,
|
|
80
80
|
))
|
|
81
81
|
|
|
82
|
-
actual = @client.trunking.v1.trunks('
|
|
82
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
83
83
|
|
|
84
84
|
expect(actual).to eq(true)
|
|
85
85
|
end
|
|
@@ -227,14 +227,14 @@ describe 'Trunk' do
|
|
|
227
227
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
228
228
|
|
|
229
229
|
expect {
|
|
230
|
-
@client.trunking.v1.trunks('
|
|
230
|
+
@client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
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: 'post',
|
|
237
|
-
url: 'https://trunking.twilio.com/v1/Trunks/
|
|
237
|
+
url: 'https://trunking.twilio.com/v1/Trunks/TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
238
238
|
))).to eq(true)
|
|
239
239
|
end
|
|
240
240
|
|
|
@@ -269,7 +269,7 @@ describe 'Trunk' do
|
|
|
269
269
|
]
|
|
270
270
|
))
|
|
271
271
|
|
|
272
|
-
actual = @client.trunking.v1.trunks('
|
|
272
|
+
actual = @client.trunking.v1.trunks('TRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
273
273
|
|
|
274
274
|
expect(actual).to_not eq(nil)
|
|
275
275
|
end
|
|
@@ -11,14 +11,14 @@ describe 'Composition' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.video.v1.compositions('
|
|
14
|
+
@client.video.v1.compositions('CJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
16
16
|
|
|
17
17
|
values = {}
|
|
18
18
|
expect(
|
|
19
19
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
20
20
|
method: 'get',
|
|
21
|
-
url: 'https://video.twilio.com/v1/Compositions/
|
|
21
|
+
url: 'https://video.twilio.com/v1/Compositions/CJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
22
22
|
))).to eq(true)
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -54,7 +54,7 @@ describe 'Composition' do
|
|
|
54
54
|
]
|
|
55
55
|
))
|
|
56
56
|
|
|
57
|
-
actual = @client.video.v1.compositions('
|
|
57
|
+
actual = @client.video.v1.compositions('CJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
58
58
|
|
|
59
59
|
expect(actual).to_not eq(nil)
|
|
60
60
|
end
|
|
@@ -151,14 +151,14 @@ describe 'Composition' do
|
|
|
151
151
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
152
152
|
|
|
153
153
|
expect {
|
|
154
|
-
@client.video.v1.compositions('
|
|
154
|
+
@client.video.v1.compositions('CJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
155
155
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
156
156
|
|
|
157
157
|
values = {}
|
|
158
158
|
expect(
|
|
159
159
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
160
160
|
method: 'delete',
|
|
161
|
-
url: 'https://video.twilio.com/v1/Compositions/
|
|
161
|
+
url: 'https://video.twilio.com/v1/Compositions/CJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
162
162
|
))).to eq(true)
|
|
163
163
|
end
|
|
164
164
|
|
|
@@ -168,7 +168,7 @@ describe 'Composition' do
|
|
|
168
168
|
nil,
|
|
169
169
|
))
|
|
170
170
|
|
|
171
|
-
actual = @client.video.v1.compositions('
|
|
171
|
+
actual = @client.video.v1.compositions('CJXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
172
172
|
|
|
173
173
|
expect(actual).to eq(true)
|
|
174
174
|
end
|
|
@@ -11,14 +11,14 @@ describe 'Recording' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.video.v1.recordings('
|
|
14
|
+
@client.video.v1.recordings('RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
16
16
|
|
|
17
17
|
values = {}
|
|
18
18
|
expect(
|
|
19
19
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
20
20
|
method: 'get',
|
|
21
|
-
url: 'https://video.twilio.com/v1/Recordings/
|
|
21
|
+
url: 'https://video.twilio.com/v1/Recordings/RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
22
22
|
))).to eq(true)
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -30,6 +30,8 @@ describe 'Recording' do
|
|
|
30
30
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
31
31
|
"status": "processing",
|
|
32
32
|
"date_created": "2015-07-30T20:00:00Z",
|
|
33
|
+
"date_updated": "2015-07-30T21:00:00Z",
|
|
34
|
+
"date_deleted": "2015-07-30T22:00:00Z",
|
|
33
35
|
"sid": "RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
34
36
|
"source_sid": "MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
35
37
|
"size": 0,
|
|
@@ -51,7 +53,7 @@ describe 'Recording' do
|
|
|
51
53
|
]
|
|
52
54
|
))
|
|
53
55
|
|
|
54
|
-
actual = @client.video.v1.recordings('
|
|
56
|
+
actual = @client.video.v1.recordings('RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
55
57
|
|
|
56
58
|
expect(actual).to_not eq(nil)
|
|
57
59
|
end
|
|
@@ -105,6 +107,8 @@ describe 'Recording' do
|
|
|
105
107
|
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
106
108
|
"status": "completed",
|
|
107
109
|
"date_created": "2015-07-30T20:00:00Z",
|
|
110
|
+
"date_updated": "2015-07-30T21:00:00Z",
|
|
111
|
+
"date_deleted": "2015-07-30T22:00:00Z",
|
|
108
112
|
"sid": "RTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
109
113
|
"source_sid": "MTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
110
114
|
"size": 23,
|
|
@@ -147,14 +151,14 @@ describe 'Recording' do
|
|
|
147
151
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
148
152
|
|
|
149
153
|
expect {
|
|
150
|
-
@client.video.v1.recordings('
|
|
154
|
+
@client.video.v1.recordings('RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
151
155
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
152
156
|
|
|
153
157
|
values = {}
|
|
154
158
|
expect(
|
|
155
159
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
156
160
|
method: 'delete',
|
|
157
|
-
url: 'https://video.twilio.com/v1/Recordings/
|
|
161
|
+
url: 'https://video.twilio.com/v1/Recordings/RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
158
162
|
))).to eq(true)
|
|
159
163
|
end
|
|
160
164
|
|
|
@@ -164,7 +168,7 @@ describe 'Recording' do
|
|
|
164
168
|
nil,
|
|
165
169
|
))
|
|
166
170
|
|
|
167
|
-
actual = @client.video.v1.recordings('
|
|
171
|
+
actual = @client.video.v1.recordings('RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
168
172
|
|
|
169
173
|
expect(actual).to eq(true)
|
|
170
174
|
end
|
|
@@ -11,15 +11,15 @@ describe 'RoomRecording' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.video.v1.rooms('
|
|
15
|
-
.recordings('
|
|
14
|
+
@client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.recordings('RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://video.twilio.com/v1/Rooms/
|
|
22
|
+
url: 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings/RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
23
23
|
))).to eq(true)
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -50,8 +50,8 @@ describe 'RoomRecording' do
|
|
|
50
50
|
]
|
|
51
51
|
))
|
|
52
52
|
|
|
53
|
-
actual = @client.video.v1.rooms('
|
|
54
|
-
.recordings('
|
|
53
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
54
|
+
.recordings('RTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
55
55
|
|
|
56
56
|
expect(actual).to_not eq(nil)
|
|
57
57
|
end
|
|
@@ -60,7 +60,7 @@ describe 'RoomRecording' do
|
|
|
60
60
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
61
61
|
|
|
62
62
|
expect {
|
|
63
|
-
@client.video.v1.rooms('
|
|
63
|
+
@client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
64
64
|
.recordings.list()
|
|
65
65
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ describe 'RoomRecording' do
|
|
|
68
68
|
expect(
|
|
69
69
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
70
70
|
method: 'get',
|
|
71
|
-
url: 'https://video.twilio.com/v1/Rooms/
|
|
71
|
+
url: 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Recordings',
|
|
72
72
|
))).to eq(true)
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -91,7 +91,7 @@ describe 'RoomRecording' do
|
|
|
91
91
|
]
|
|
92
92
|
))
|
|
93
93
|
|
|
94
|
-
actual = @client.video.v1.rooms('
|
|
94
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
95
95
|
.recordings.list()
|
|
96
96
|
|
|
97
97
|
expect(actual).to_not eq(nil)
|
|
@@ -138,7 +138,7 @@ describe 'RoomRecording' do
|
|
|
138
138
|
]
|
|
139
139
|
))
|
|
140
140
|
|
|
141
|
-
actual = @client.video.v1.rooms('
|
|
141
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
142
142
|
.recordings.list()
|
|
143
143
|
|
|
144
144
|
expect(actual).to_not eq(nil)
|
data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb
CHANGED
|
@@ -11,16 +11,16 @@ describe 'PublishedTrack' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.video.v1.rooms('
|
|
15
|
-
.participants('
|
|
16
|
-
.published_tracks('
|
|
14
|
+
@client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.published_tracks('MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://video.twilio.com/v1/Rooms/
|
|
23
|
+
url: 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PublishedTracks/MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -42,9 +42,9 @@ describe 'PublishedTrack' do
|
|
|
42
42
|
]
|
|
43
43
|
))
|
|
44
44
|
|
|
45
|
-
actual = @client.video.v1.rooms('
|
|
46
|
-
.participants('
|
|
47
|
-
.published_tracks('
|
|
45
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
46
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
47
|
+
.published_tracks('MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
48
48
|
|
|
49
49
|
expect(actual).to_not eq(nil)
|
|
50
50
|
end
|
|
@@ -53,8 +53,8 @@ describe 'PublishedTrack' do
|
|
|
53
53
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
54
54
|
|
|
55
55
|
expect {
|
|
56
|
-
@client.video.v1.rooms('
|
|
57
|
-
.participants('
|
|
56
|
+
@client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
57
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
58
58
|
.published_tracks.list()
|
|
59
59
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ describe 'PublishedTrack' do
|
|
|
62
62
|
expect(
|
|
63
63
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
64
64
|
method: 'get',
|
|
65
|
-
url: 'https://video.twilio.com/v1/Rooms/
|
|
65
|
+
url: 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PublishedTracks',
|
|
66
66
|
))).to eq(true)
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -85,8 +85,8 @@ describe 'PublishedTrack' do
|
|
|
85
85
|
]
|
|
86
86
|
))
|
|
87
87
|
|
|
88
|
-
actual = @client.video.v1.rooms('
|
|
89
|
-
.participants('
|
|
88
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
89
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
90
90
|
.published_tracks.list()
|
|
91
91
|
|
|
92
92
|
expect(actual).to_not eq(nil)
|
data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
CHANGED
|
@@ -11,8 +11,8 @@ describe 'SubscribedTrack' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.video.v1.rooms('
|
|
15
|
-
.participants('
|
|
14
|
+
@client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
16
|
.subscribed_tracks.list()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ describe 'SubscribedTrack' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://video.twilio.com/v1/Rooms/
|
|
23
|
+
url: 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SubscribedTracks',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -43,8 +43,8 @@ describe 'SubscribedTrack' do
|
|
|
43
43
|
]
|
|
44
44
|
))
|
|
45
45
|
|
|
46
|
-
actual = @client.video.v1.rooms('
|
|
47
|
-
.participants('
|
|
46
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
47
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
48
48
|
.subscribed_tracks.list()
|
|
49
49
|
|
|
50
50
|
expect(actual).to_not eq(nil)
|
|
@@ -81,8 +81,8 @@ describe 'SubscribedTrack' do
|
|
|
81
81
|
]
|
|
82
82
|
))
|
|
83
83
|
|
|
84
|
-
actual = @client.video.v1.rooms('
|
|
85
|
-
.participants('
|
|
84
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
85
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
86
86
|
.subscribed_tracks.list()
|
|
87
87
|
|
|
88
88
|
expect(actual).to_not eq(nil)
|
|
@@ -92,8 +92,8 @@ describe 'SubscribedTrack' do
|
|
|
92
92
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
93
93
|
|
|
94
94
|
expect {
|
|
95
|
-
@client.video.v1.rooms('
|
|
96
|
-
.participants('
|
|
95
|
+
@client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
96
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
97
97
|
.subscribed_tracks.update()
|
|
98
98
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
99
99
|
|
|
@@ -101,7 +101,7 @@ describe 'SubscribedTrack' do
|
|
|
101
101
|
expect(
|
|
102
102
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
103
103
|
method: 'post',
|
|
104
|
-
url: 'https://video.twilio.com/v1/Rooms/
|
|
104
|
+
url: 'https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/SubscribedTracks',
|
|
105
105
|
))).to eq(true)
|
|
106
106
|
end
|
|
107
107
|
|
|
@@ -123,8 +123,8 @@ describe 'SubscribedTrack' do
|
|
|
123
123
|
]
|
|
124
124
|
))
|
|
125
125
|
|
|
126
|
-
actual = @client.video.v1.rooms('
|
|
127
|
-
.participants('
|
|
126
|
+
actual = @client.video.v1.rooms('RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
127
|
+
.participants('PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
128
128
|
.subscribed_tracks.update()
|
|
129
129
|
|
|
130
130
|
expect(actual).to_not eq(nil)
|