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
@@ -39,16 +39,6 @@ describe 'PhoneNumber' do
|
|
39
39
|
"name": "verizon",
|
40
40
|
"type": "mobile"
|
41
41
|
},
|
42
|
-
"fraud": {
|
43
|
-
"error_code": null,
|
44
|
-
"advanced_line_type": "voip",
|
45
|
-
"is_prepaid": false,
|
46
|
-
"mobile_country_code": "310",
|
47
|
-
"mobile_network_code": "456",
|
48
|
-
"carrier_name": "verizon",
|
49
|
-
"caller_name": "Delicious Cheese Cake",
|
50
|
-
"caller_type": "CONSUMER"
|
51
|
-
},
|
52
42
|
"country_code": "US",
|
53
43
|
"national_format": "(510) 867-5309",
|
54
44
|
"phone_number": "+15108675309",
|
@@ -11,7 +11,7 @@ describe 'AlphaSender' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.messaging.v1.services('
|
14
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
15
|
.alpha_senders.create(alpha_sender: 'alpha_sender')
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -19,7 +19,7 @@ describe 'AlphaSender' do
|
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'post',
|
22
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
22
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AlphaSenders',
|
23
23
|
data: values,
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
@@ -41,7 +41,7 @@ describe 'AlphaSender' do
|
|
41
41
|
]
|
42
42
|
))
|
43
43
|
|
44
|
-
actual = @client.messaging.v1.services('
|
44
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
45
45
|
.alpha_senders.create(alpha_sender: 'alpha_sender')
|
46
46
|
|
47
47
|
expect(actual).to_not eq(nil)
|
@@ -51,7 +51,7 @@ describe 'AlphaSender' do
|
|
51
51
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
52
52
|
|
53
53
|
expect {
|
54
|
-
@client.messaging.v1.services('
|
54
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
55
55
|
.alpha_senders.list()
|
56
56
|
}.to raise_exception(Twilio::REST::TwilioError)
|
57
57
|
|
@@ -59,7 +59,7 @@ describe 'AlphaSender' do
|
|
59
59
|
expect(
|
60
60
|
@holodeck.has_request?(Holodeck::Request.new(
|
61
61
|
method: 'get',
|
62
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
62
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AlphaSenders',
|
63
63
|
))).to eq(true)
|
64
64
|
end
|
65
65
|
|
@@ -93,7 +93,7 @@ describe 'AlphaSender' do
|
|
93
93
|
]
|
94
94
|
))
|
95
95
|
|
96
|
-
actual = @client.messaging.v1.services('
|
96
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
97
97
|
.alpha_senders.list()
|
98
98
|
|
99
99
|
expect(actual).to_not eq(nil)
|
@@ -103,15 +103,15 @@ describe 'AlphaSender' do
|
|
103
103
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
104
104
|
|
105
105
|
expect {
|
106
|
-
@client.messaging.v1.services('
|
107
|
-
.alpha_senders('
|
106
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
107
|
+
.alpha_senders('AIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
108
108
|
}.to raise_exception(Twilio::REST::TwilioError)
|
109
109
|
|
110
110
|
values = {}
|
111
111
|
expect(
|
112
112
|
@holodeck.has_request?(Holodeck::Request.new(
|
113
113
|
method: 'get',
|
114
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
114
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AlphaSenders/AIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
115
115
|
))).to eq(true)
|
116
116
|
end
|
117
117
|
|
@@ -132,8 +132,8 @@ describe 'AlphaSender' do
|
|
132
132
|
]
|
133
133
|
))
|
134
134
|
|
135
|
-
actual = @client.messaging.v1.services('
|
136
|
-
.alpha_senders('
|
135
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
136
|
+
.alpha_senders('AIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
137
137
|
|
138
138
|
expect(actual).to_not eq(nil)
|
139
139
|
end
|
@@ -142,15 +142,15 @@ describe 'AlphaSender' do
|
|
142
142
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
143
143
|
|
144
144
|
expect {
|
145
|
-
@client.messaging.v1.services('
|
146
|
-
.alpha_senders('
|
145
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
146
|
+
.alpha_senders('AIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
147
147
|
}.to raise_exception(Twilio::REST::TwilioError)
|
148
148
|
|
149
149
|
values = {}
|
150
150
|
expect(
|
151
151
|
@holodeck.has_request?(Holodeck::Request.new(
|
152
152
|
method: 'delete',
|
153
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
153
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AlphaSenders/AIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
154
154
|
))).to eq(true)
|
155
155
|
end
|
156
156
|
|
@@ -160,8 +160,8 @@ describe 'AlphaSender' do
|
|
160
160
|
nil,
|
161
161
|
))
|
162
162
|
|
163
|
-
actual = @client.messaging.v1.services('
|
164
|
-
.alpha_senders('
|
163
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
164
|
+
.alpha_senders('AIXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
165
165
|
|
166
166
|
expect(actual).to eq(true)
|
167
167
|
end
|
@@ -11,15 +11,15 @@ describe 'PhoneNumber' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.messaging.v1.services('
|
15
|
-
.phone_numbers.create(phone_number_sid: '
|
14
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.phone_numbers.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
|
-
values = {'PhoneNumberSid' => '
|
18
|
+
values = {'PhoneNumberSid' => 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'post',
|
22
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
22
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers',
|
23
23
|
data: values,
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
@@ -42,8 +42,8 @@ describe 'PhoneNumber' do
|
|
42
42
|
]
|
43
43
|
))
|
44
44
|
|
45
|
-
actual = @client.messaging.v1.services('
|
46
|
-
.phone_numbers.create(phone_number_sid: '
|
45
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
46
|
+
.phone_numbers.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
47
47
|
|
48
48
|
expect(actual).to_not eq(nil)
|
49
49
|
end
|
@@ -70,8 +70,8 @@ describe 'PhoneNumber' do
|
|
70
70
|
]
|
71
71
|
))
|
72
72
|
|
73
|
-
actual = @client.messaging.v1.services('
|
74
|
-
.phone_numbers.create(phone_number_sid: '
|
73
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
74
|
+
.phone_numbers.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
75
75
|
|
76
76
|
expect(actual).to_not eq(nil)
|
77
77
|
end
|
@@ -80,15 +80,15 @@ describe 'PhoneNumber' do
|
|
80
80
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
81
81
|
|
82
82
|
expect {
|
83
|
-
@client.messaging.v1.services('
|
84
|
-
.phone_numbers('
|
83
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
84
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
85
85
|
}.to raise_exception(Twilio::REST::TwilioError)
|
86
86
|
|
87
87
|
values = {}
|
88
88
|
expect(
|
89
89
|
@holodeck.has_request?(Holodeck::Request.new(
|
90
90
|
method: 'delete',
|
91
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
91
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
92
92
|
))).to eq(true)
|
93
93
|
end
|
94
94
|
|
@@ -98,8 +98,8 @@ describe 'PhoneNumber' do
|
|
98
98
|
nil,
|
99
99
|
))
|
100
100
|
|
101
|
-
actual = @client.messaging.v1.services('
|
102
|
-
.phone_numbers('
|
101
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
102
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
103
103
|
|
104
104
|
expect(actual).to eq(true)
|
105
105
|
end
|
@@ -108,7 +108,7 @@ describe 'PhoneNumber' do
|
|
108
108
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
109
109
|
|
110
110
|
expect {
|
111
|
-
@client.messaging.v1.services('
|
111
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
112
112
|
.phone_numbers.list()
|
113
113
|
}.to raise_exception(Twilio::REST::TwilioError)
|
114
114
|
|
@@ -116,7 +116,7 @@ describe 'PhoneNumber' do
|
|
116
116
|
expect(
|
117
117
|
@holodeck.has_request?(Holodeck::Request.new(
|
118
118
|
method: 'get',
|
119
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
119
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers',
|
120
120
|
))).to eq(true)
|
121
121
|
end
|
122
122
|
|
@@ -151,7 +151,7 @@ describe 'PhoneNumber' do
|
|
151
151
|
]
|
152
152
|
))
|
153
153
|
|
154
|
-
actual = @client.messaging.v1.services('
|
154
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
155
155
|
.phone_numbers.list()
|
156
156
|
|
157
157
|
expect(actual).to_not eq(nil)
|
@@ -161,15 +161,15 @@ describe 'PhoneNumber' do
|
|
161
161
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
162
162
|
|
163
163
|
expect {
|
164
|
-
@client.messaging.v1.services('
|
165
|
-
.phone_numbers('
|
164
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
165
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
166
166
|
}.to raise_exception(Twilio::REST::TwilioError)
|
167
167
|
|
168
168
|
values = {}
|
169
169
|
expect(
|
170
170
|
@holodeck.has_request?(Holodeck::Request.new(
|
171
171
|
method: 'get',
|
172
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
172
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
173
173
|
))).to eq(true)
|
174
174
|
end
|
175
175
|
|
@@ -191,8 +191,8 @@ describe 'PhoneNumber' do
|
|
191
191
|
]
|
192
192
|
))
|
193
193
|
|
194
|
-
actual = @client.messaging.v1.services('
|
195
|
-
.phone_numbers('
|
194
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
195
|
+
.phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
196
196
|
|
197
197
|
expect(actual).to_not eq(nil)
|
198
198
|
end
|
@@ -11,15 +11,15 @@ describe 'ShortCode' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.messaging.v1.services('
|
15
|
-
.short_codes.create(short_code_sid: '
|
14
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.short_codes.create(short_code_sid: 'SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
18
|
-
values = {'ShortCodeSid' => '
|
18
|
+
values = {'ShortCodeSid' => 'SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'post',
|
22
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
22
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes',
|
23
23
|
data: values,
|
24
24
|
))).to eq(true)
|
25
25
|
end
|
@@ -42,8 +42,8 @@ describe 'ShortCode' do
|
|
42
42
|
]
|
43
43
|
))
|
44
44
|
|
45
|
-
actual = @client.messaging.v1.services('
|
46
|
-
.short_codes.create(short_code_sid: '
|
45
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
46
|
+
.short_codes.create(short_code_sid: 'SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
47
47
|
|
48
48
|
expect(actual).to_not eq(nil)
|
49
49
|
end
|
@@ -52,15 +52,15 @@ describe 'ShortCode' do
|
|
52
52
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
53
53
|
|
54
54
|
expect {
|
55
|
-
@client.messaging.v1.services('
|
56
|
-
.short_codes('
|
55
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
56
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
57
57
|
}.to raise_exception(Twilio::REST::TwilioError)
|
58
58
|
|
59
59
|
values = {}
|
60
60
|
expect(
|
61
61
|
@holodeck.has_request?(Holodeck::Request.new(
|
62
62
|
method: 'delete',
|
63
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
63
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes/SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
64
64
|
))).to eq(true)
|
65
65
|
end
|
66
66
|
|
@@ -70,8 +70,8 @@ describe 'ShortCode' do
|
|
70
70
|
nil,
|
71
71
|
))
|
72
72
|
|
73
|
-
actual = @client.messaging.v1.services('
|
74
|
-
.short_codes('
|
73
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
74
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
75
75
|
|
76
76
|
expect(actual).to eq(true)
|
77
77
|
end
|
@@ -80,7 +80,7 @@ describe 'ShortCode' do
|
|
80
80
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
81
81
|
|
82
82
|
expect {
|
83
|
-
@client.messaging.v1.services('
|
83
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
84
84
|
.short_codes.list()
|
85
85
|
}.to raise_exception(Twilio::REST::TwilioError)
|
86
86
|
|
@@ -88,7 +88,7 @@ describe 'ShortCode' do
|
|
88
88
|
expect(
|
89
89
|
@holodeck.has_request?(Holodeck::Request.new(
|
90
90
|
method: 'get',
|
91
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
91
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes',
|
92
92
|
))).to eq(true)
|
93
93
|
end
|
94
94
|
|
@@ -123,7 +123,7 @@ describe 'ShortCode' do
|
|
123
123
|
]
|
124
124
|
))
|
125
125
|
|
126
|
-
actual = @client.messaging.v1.services('
|
126
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
127
127
|
.short_codes.list()
|
128
128
|
|
129
129
|
expect(actual).to_not eq(nil)
|
@@ -133,15 +133,15 @@ describe 'ShortCode' do
|
|
133
133
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
134
134
|
|
135
135
|
expect {
|
136
|
-
@client.messaging.v1.services('
|
137
|
-
.short_codes('
|
136
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
137
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
138
138
|
}.to raise_exception(Twilio::REST::TwilioError)
|
139
139
|
|
140
140
|
values = {}
|
141
141
|
expect(
|
142
142
|
@holodeck.has_request?(Holodeck::Request.new(
|
143
143
|
method: 'get',
|
144
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
144
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/ShortCodes/SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
145
145
|
))).to eq(true)
|
146
146
|
end
|
147
147
|
|
@@ -163,8 +163,8 @@ describe 'ShortCode' do
|
|
163
163
|
]
|
164
164
|
))
|
165
165
|
|
166
|
-
actual = @client.messaging.v1.services('
|
167
|
-
.short_codes('
|
166
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
167
|
+
.short_codes('SCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
168
168
|
|
169
169
|
expect(actual).to_not eq(nil)
|
170
170
|
end
|
@@ -65,14 +65,14 @@ describe 'Service' do
|
|
65
65
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
66
66
|
|
67
67
|
expect {
|
68
|
-
@client.messaging.v1.services('
|
68
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
69
69
|
}.to raise_exception(Twilio::REST::TwilioError)
|
70
70
|
|
71
71
|
values = {}
|
72
72
|
expect(
|
73
73
|
@holodeck.has_request?(Holodeck::Request.new(
|
74
74
|
method: 'post',
|
75
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
75
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
76
76
|
))).to eq(true)
|
77
77
|
end
|
78
78
|
|
@@ -109,7 +109,7 @@ describe 'Service' do
|
|
109
109
|
]
|
110
110
|
))
|
111
111
|
|
112
|
-
actual = @client.messaging.v1.services('
|
112
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
113
113
|
|
114
114
|
expect(actual).to_not eq(nil)
|
115
115
|
end
|
@@ -184,14 +184,14 @@ describe 'Service' do
|
|
184
184
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
185
185
|
|
186
186
|
expect {
|
187
|
-
@client.messaging.v1.services('
|
187
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
188
188
|
}.to raise_exception(Twilio::REST::TwilioError)
|
189
189
|
|
190
190
|
values = {}
|
191
191
|
expect(
|
192
192
|
@holodeck.has_request?(Holodeck::Request.new(
|
193
193
|
method: 'get',
|
194
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
194
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
195
195
|
))).to eq(true)
|
196
196
|
end
|
197
197
|
|
@@ -228,7 +228,7 @@ describe 'Service' do
|
|
228
228
|
]
|
229
229
|
))
|
230
230
|
|
231
|
-
actual = @client.messaging.v1.services('
|
231
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
232
232
|
|
233
233
|
expect(actual).to_not eq(nil)
|
234
234
|
end
|
@@ -237,14 +237,14 @@ describe 'Service' do
|
|
237
237
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
238
238
|
|
239
239
|
expect {
|
240
|
-
@client.messaging.v1.services('
|
240
|
+
@client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
241
241
|
}.to raise_exception(Twilio::REST::TwilioError)
|
242
242
|
|
243
243
|
values = {}
|
244
244
|
expect(
|
245
245
|
@holodeck.has_request?(Holodeck::Request.new(
|
246
246
|
method: 'delete',
|
247
|
-
url: 'https://messaging.twilio.com/v1/Services/
|
247
|
+
url: 'https://messaging.twilio.com/v1/Services/MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
248
248
|
))).to eq(true)
|
249
249
|
end
|
250
250
|
|
@@ -254,7 +254,7 @@ describe 'Service' do
|
|
254
254
|
nil,
|
255
255
|
))
|
256
256
|
|
257
|
-
actual = @client.messaging.v1.services('
|
257
|
+
actual = @client.messaging.v1.services('MGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
258
258
|
|
259
259
|
expect(actual).to eq(true)
|
260
260
|
end
|
@@ -11,14 +11,14 @@ describe 'Alert' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.monitor.v1.alerts('
|
14
|
+
@client.monitor.v1.alerts('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://monitor.twilio.com/v1/Alerts/
|
21
|
+
url: 'https://monitor.twilio.com/v1/Alerts/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
22
22
|
))).to eq(true)
|
23
23
|
end
|
24
24
|
|
@@ -48,7 +48,7 @@ describe 'Alert' do
|
|
48
48
|
]
|
49
49
|
))
|
50
50
|
|
51
|
-
actual = @client.monitor.v1.alerts('
|
51
|
+
actual = @client.monitor.v1.alerts('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
52
52
|
|
53
53
|
expect(actual).to_not eq(nil)
|
54
54
|
end
|
@@ -57,14 +57,14 @@ describe 'Alert' do
|
|
57
57
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
58
58
|
|
59
59
|
expect {
|
60
|
-
@client.monitor.v1.alerts('
|
60
|
+
@client.monitor.v1.alerts('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://monitor.twilio.com/v1/Alerts/
|
67
|
+
url: 'https://monitor.twilio.com/v1/Alerts/NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
68
68
|
))).to eq(true)
|
69
69
|
end
|
70
70
|
|
@@ -74,7 +74,7 @@ describe 'Alert' do
|
|
74
74
|
nil,
|
75
75
|
))
|
76
76
|
|
77
|
-
actual = @client.monitor.v1.alerts('
|
77
|
+
actual = @client.monitor.v1.alerts('NOXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
78
78
|
|
79
79
|
expect(actual).to eq(true)
|
80
80
|
end
|