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,16 +11,16 @@ describe 'Message' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.ip_messaging.v1.services('
|
15
|
-
.channels('
|
16
|
-
.messages('
|
14
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
16
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://ip-messaging.twilio.com/v1/Services/
|
23
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
26
26
|
|
@@ -46,9 +46,9 @@ describe 'Message' do
|
|
46
46
|
]
|
47
47
|
))
|
48
48
|
|
49
|
-
actual = @client.ip_messaging.v1.services('
|
50
|
-
.channels('
|
51
|
-
.messages('
|
49
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
50
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
51
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
52
52
|
|
53
53
|
expect(actual).to_not eq(nil)
|
54
54
|
end
|
@@ -57,8 +57,8 @@ describe 'Message' do
|
|
57
57
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
58
58
|
|
59
59
|
expect {
|
60
|
-
@client.ip_messaging.v1.services('
|
61
|
-
.channels('
|
60
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
61
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
62
62
|
.messages.create(body: 'body')
|
63
63
|
}.to raise_exception(Twilio::REST::TwilioError)
|
64
64
|
|
@@ -66,7 +66,7 @@ describe 'Message' do
|
|
66
66
|
expect(
|
67
67
|
@holodeck.has_request?(Holodeck::Request.new(
|
68
68
|
method: 'post',
|
69
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
69
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages',
|
70
70
|
data: values,
|
71
71
|
))).to eq(true)
|
72
72
|
end
|
@@ -93,8 +93,8 @@ describe 'Message' do
|
|
93
93
|
]
|
94
94
|
))
|
95
95
|
|
96
|
-
actual = @client.ip_messaging.v1.services('
|
97
|
-
.channels('
|
96
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
97
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
98
98
|
.messages.create(body: 'body')
|
99
99
|
|
100
100
|
expect(actual).to_not eq(nil)
|
@@ -122,8 +122,8 @@ describe 'Message' do
|
|
122
122
|
]
|
123
123
|
))
|
124
124
|
|
125
|
-
actual = @client.ip_messaging.v1.services('
|
126
|
-
.channels('
|
125
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
126
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
127
127
|
.messages.create(body: 'body')
|
128
128
|
|
129
129
|
expect(actual).to_not eq(nil)
|
@@ -133,8 +133,8 @@ describe 'Message' do
|
|
133
133
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
134
134
|
|
135
135
|
expect {
|
136
|
-
@client.ip_messaging.v1.services('
|
137
|
-
.channels('
|
136
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
137
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
138
138
|
.messages.list()
|
139
139
|
}.to raise_exception(Twilio::REST::TwilioError)
|
140
140
|
|
@@ -142,7 +142,7 @@ describe 'Message' do
|
|
142
142
|
expect(
|
143
143
|
@holodeck.has_request?(Holodeck::Request.new(
|
144
144
|
method: 'get',
|
145
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
145
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages',
|
146
146
|
))).to eq(true)
|
147
147
|
end
|
148
148
|
|
@@ -181,8 +181,8 @@ describe 'Message' do
|
|
181
181
|
]
|
182
182
|
))
|
183
183
|
|
184
|
-
actual = @client.ip_messaging.v1.services('
|
185
|
-
.channels('
|
184
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
185
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
186
186
|
.messages.list()
|
187
187
|
|
188
188
|
expect(actual).to_not eq(nil)
|
@@ -207,8 +207,8 @@ describe 'Message' do
|
|
207
207
|
]
|
208
208
|
))
|
209
209
|
|
210
|
-
actual = @client.ip_messaging.v1.services('
|
211
|
-
.channels('
|
210
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
211
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
212
212
|
.messages.list()
|
213
213
|
|
214
214
|
expect(actual).to_not eq(nil)
|
@@ -218,16 +218,16 @@ describe 'Message' do
|
|
218
218
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
219
219
|
|
220
220
|
expect {
|
221
|
-
@client.ip_messaging.v1.services('
|
222
|
-
.channels('
|
223
|
-
.messages('
|
221
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
222
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
223
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
224
224
|
}.to raise_exception(Twilio::REST::TwilioError)
|
225
225
|
|
226
226
|
values = {}
|
227
227
|
expect(
|
228
228
|
@holodeck.has_request?(Holodeck::Request.new(
|
229
229
|
method: 'delete',
|
230
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
230
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
231
231
|
))).to eq(true)
|
232
232
|
end
|
233
233
|
|
@@ -237,9 +237,9 @@ describe 'Message' do
|
|
237
237
|
nil,
|
238
238
|
))
|
239
239
|
|
240
|
-
actual = @client.ip_messaging.v1.services('
|
241
|
-
.channels('
|
242
|
-
.messages('
|
240
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
241
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
242
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
243
243
|
|
244
244
|
expect(actual).to eq(true)
|
245
245
|
end
|
@@ -248,16 +248,16 @@ describe 'Message' do
|
|
248
248
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
249
249
|
|
250
250
|
expect {
|
251
|
-
@client.ip_messaging.v1.services('
|
252
|
-
.channels('
|
253
|
-
.messages('
|
251
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
252
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
253
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
254
254
|
}.to raise_exception(Twilio::REST::TwilioError)
|
255
255
|
|
256
256
|
values = {}
|
257
257
|
expect(
|
258
258
|
@holodeck.has_request?(Holodeck::Request.new(
|
259
259
|
method: 'post',
|
260
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
260
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
261
261
|
))).to eq(true)
|
262
262
|
end
|
263
263
|
|
@@ -283,9 +283,9 @@ describe 'Message' do
|
|
283
283
|
]
|
284
284
|
))
|
285
285
|
|
286
|
-
actual = @client.ip_messaging.v1.services('
|
287
|
-
.channels('
|
288
|
-
.messages('
|
286
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
287
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
288
|
+
.messages('IMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
289
289
|
|
290
290
|
expect(actual).to_not eq(nil)
|
291
291
|
end
|
@@ -11,15 +11,15 @@ describe 'Channel' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.ip_messaging.v1.services('
|
15
|
-
.channels('
|
14
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://ip-messaging.twilio.com/v1/Services/
|
22
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -51,8 +51,8 @@ describe 'Channel' do
|
|
51
51
|
]
|
52
52
|
))
|
53
53
|
|
54
|
-
actual = @client.ip_messaging.v1.services('
|
55
|
-
.channels('
|
54
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
55
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
56
56
|
|
57
57
|
expect(actual).to_not eq(nil)
|
58
58
|
end
|
@@ -61,15 +61,15 @@ describe 'Channel' do
|
|
61
61
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
62
62
|
|
63
63
|
expect {
|
64
|
-
@client.ip_messaging.v1.services('
|
65
|
-
.channels('
|
64
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
65
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://ip-messaging.twilio.com/v1/Services/
|
72
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
73
73
|
))).to eq(true)
|
74
74
|
end
|
75
75
|
|
@@ -79,8 +79,8 @@ describe 'Channel' do
|
|
79
79
|
nil,
|
80
80
|
))
|
81
81
|
|
82
|
-
actual = @client.ip_messaging.v1.services('
|
83
|
-
.channels('
|
82
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
83
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
84
84
|
|
85
85
|
expect(actual).to eq(true)
|
86
86
|
end
|
@@ -89,7 +89,7 @@ describe 'Channel' do
|
|
89
89
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
90
90
|
|
91
91
|
expect {
|
92
|
-
@client.ip_messaging.v1.services('
|
92
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
93
93
|
.channels.create()
|
94
94
|
}.to raise_exception(Twilio::REST::TwilioError)
|
95
95
|
|
@@ -97,7 +97,7 @@ describe 'Channel' do
|
|
97
97
|
expect(
|
98
98
|
@holodeck.has_request?(Holodeck::Request.new(
|
99
99
|
method: 'post',
|
100
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
100
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
101
101
|
))).to eq(true)
|
102
102
|
end
|
103
103
|
|
@@ -129,7 +129,7 @@ describe 'Channel' do
|
|
129
129
|
]
|
130
130
|
))
|
131
131
|
|
132
|
-
actual = @client.ip_messaging.v1.services('
|
132
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
133
133
|
.channels.create()
|
134
134
|
|
135
135
|
expect(actual).to_not eq(nil)
|
@@ -139,7 +139,7 @@ describe 'Channel' do
|
|
139
139
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
140
140
|
|
141
141
|
expect {
|
142
|
-
@client.ip_messaging.v1.services('
|
142
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
143
143
|
.channels.list()
|
144
144
|
}.to raise_exception(Twilio::REST::TwilioError)
|
145
145
|
|
@@ -147,7 +147,7 @@ describe 'Channel' do
|
|
147
147
|
expect(
|
148
148
|
@holodeck.has_request?(Holodeck::Request.new(
|
149
149
|
method: 'get',
|
150
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
150
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels',
|
151
151
|
))).to eq(true)
|
152
152
|
end
|
153
153
|
|
@@ -192,7 +192,7 @@ describe 'Channel' do
|
|
192
192
|
]
|
193
193
|
))
|
194
194
|
|
195
|
-
actual = @client.ip_messaging.v1.services('
|
195
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
196
196
|
.channels.list()
|
197
197
|
|
198
198
|
expect(actual).to_not eq(nil)
|
@@ -217,7 +217,7 @@ describe 'Channel' do
|
|
217
217
|
]
|
218
218
|
))
|
219
219
|
|
220
|
-
actual = @client.ip_messaging.v1.services('
|
220
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
221
221
|
.channels.list()
|
222
222
|
|
223
223
|
expect(actual).to_not eq(nil)
|
@@ -227,15 +227,15 @@ describe 'Channel' do
|
|
227
227
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
228
228
|
|
229
229
|
expect {
|
230
|
-
@client.ip_messaging.v1.services('
|
231
|
-
.channels('
|
230
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
231
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
232
232
|
}.to raise_exception(Twilio::REST::TwilioError)
|
233
233
|
|
234
234
|
values = {}
|
235
235
|
expect(
|
236
236
|
@holodeck.has_request?(Holodeck::Request.new(
|
237
237
|
method: 'post',
|
238
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
238
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Channels/CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
239
239
|
))).to eq(true)
|
240
240
|
end
|
241
241
|
|
@@ -267,8 +267,8 @@ describe 'Channel' do
|
|
267
267
|
]
|
268
268
|
))
|
269
269
|
|
270
|
-
actual = @client.ip_messaging.v1.services('
|
271
|
-
.channels('
|
270
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
271
|
+
.channels('CHXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
272
272
|
|
273
273
|
expect(actual).to_not eq(nil)
|
274
274
|
end
|
@@ -11,15 +11,15 @@ describe 'Role' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.ip_messaging.v1.services('
|
15
|
-
.roles('
|
14
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://ip-messaging.twilio.com/v1/Services/
|
22
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -46,8 +46,8 @@ describe 'Role' do
|
|
46
46
|
]
|
47
47
|
))
|
48
48
|
|
49
|
-
actual = @client.ip_messaging.v1.services('
|
50
|
-
.roles('
|
49
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
50
|
+
.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
51
51
|
|
52
52
|
expect(actual).to_not eq(nil)
|
53
53
|
end
|
@@ -56,15 +56,15 @@ describe 'Role' do
|
|
56
56
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
57
57
|
|
58
58
|
expect {
|
59
|
-
@client.ip_messaging.v1.services('
|
60
|
-
.roles('
|
59
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
60
|
+
.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
61
61
|
}.to raise_exception(Twilio::REST::TwilioError)
|
62
62
|
|
63
63
|
values = {}
|
64
64
|
expect(
|
65
65
|
@holodeck.has_request?(Holodeck::Request.new(
|
66
66
|
method: 'delete',
|
67
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
67
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
68
68
|
))).to eq(true)
|
69
69
|
end
|
70
70
|
|
@@ -74,8 +74,8 @@ describe 'Role' do
|
|
74
74
|
nil,
|
75
75
|
))
|
76
76
|
|
77
|
-
actual = @client.ip_messaging.v1.services('
|
78
|
-
.roles('
|
77
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
78
|
+
.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
79
79
|
|
80
80
|
expect(actual).to eq(true)
|
81
81
|
end
|
@@ -84,7 +84,7 @@ describe 'Role' do
|
|
84
84
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
85
85
|
|
86
86
|
expect {
|
87
|
-
@client.ip_messaging.v1.services('
|
87
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
88
88
|
.roles.create(friendly_name: 'friendly_name', type: 'channel', permission: ['permission'])
|
89
89
|
}.to raise_exception(Twilio::REST::TwilioError)
|
90
90
|
|
@@ -96,7 +96,7 @@ describe 'Role' do
|
|
96
96
|
expect(
|
97
97
|
@holodeck.has_request?(Holodeck::Request.new(
|
98
98
|
method: 'post',
|
99
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
99
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles',
|
100
100
|
data: values,
|
101
101
|
))).to eq(true)
|
102
102
|
end
|
@@ -124,7 +124,7 @@ describe 'Role' do
|
|
124
124
|
]
|
125
125
|
))
|
126
126
|
|
127
|
-
actual = @client.ip_messaging.v1.services('
|
127
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
128
128
|
.roles.create(friendly_name: 'friendly_name', type: 'channel', permission: ['permission'])
|
129
129
|
|
130
130
|
expect(actual).to_not eq(nil)
|
@@ -134,7 +134,7 @@ describe 'Role' do
|
|
134
134
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
135
135
|
|
136
136
|
expect {
|
137
|
-
@client.ip_messaging.v1.services('
|
137
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
138
138
|
.roles.list()
|
139
139
|
}.to raise_exception(Twilio::REST::TwilioError)
|
140
140
|
|
@@ -142,7 +142,7 @@ describe 'Role' do
|
|
142
142
|
expect(
|
143
143
|
@holodeck.has_request?(Holodeck::Request.new(
|
144
144
|
method: 'get',
|
145
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
145
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles',
|
146
146
|
))).to eq(true)
|
147
147
|
end
|
148
148
|
|
@@ -182,7 +182,7 @@ describe 'Role' do
|
|
182
182
|
]
|
183
183
|
))
|
184
184
|
|
185
|
-
actual = @client.ip_messaging.v1.services('
|
185
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
186
186
|
.roles.list()
|
187
187
|
|
188
188
|
expect(actual).to_not eq(nil)
|
@@ -207,7 +207,7 @@ describe 'Role' do
|
|
207
207
|
]
|
208
208
|
))
|
209
209
|
|
210
|
-
actual = @client.ip_messaging.v1.services('
|
210
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
211
211
|
.roles.list()
|
212
212
|
|
213
213
|
expect(actual).to_not eq(nil)
|
@@ -217,15 +217,15 @@ describe 'Role' do
|
|
217
217
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
218
218
|
|
219
219
|
expect {
|
220
|
-
@client.ip_messaging.v1.services('
|
221
|
-
.roles('
|
220
|
+
@client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
221
|
+
.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(permission: ['permission'])
|
222
222
|
}.to raise_exception(Twilio::REST::TwilioError)
|
223
223
|
|
224
224
|
values = {'Permission' => Twilio.serialize_list(['permission']) { |e| e }, }
|
225
225
|
expect(
|
226
226
|
@holodeck.has_request?(Holodeck::Request.new(
|
227
227
|
method: 'post',
|
228
|
-
url: 'https://ip-messaging.twilio.com/v1/Services/
|
228
|
+
url: 'https://ip-messaging.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Roles/RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
229
229
|
data: values,
|
230
230
|
))).to eq(true)
|
231
231
|
end
|
@@ -253,8 +253,8 @@ describe 'Role' do
|
|
253
253
|
]
|
254
254
|
))
|
255
255
|
|
256
|
-
actual = @client.ip_messaging.v1.services('
|
257
|
-
.roles('
|
256
|
+
actual = @client.ip_messaging.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
257
|
+
.roles('RLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update(permission: ['permission'])
|
258
258
|
|
259
259
|
expect(actual).to_not eq(nil)
|
260
260
|
end
|