spec/integration/ip_messaging/v1/credential_spec.rb in twilio-ruby-5.41.0 vs spec/integration/ip_messaging/v1/credential_spec.rb in twilio-ruby-5.42.0
- old
+ new
@@ -17,11 +17,11 @@
}.to raise_exception(Twilio::REST::TwilioError)
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://chat.twilio.com/v1/Credentials',
+ url: 'https://ip-messaging.twilio.com/v1/Credentials',
))).to eq(true)
end
it "receives read_full responses" do
@holodeck.mock(Twilio::Response.new(
@@ -35,19 +35,19 @@
"friendly_name": "Test slow create",
"type": "apn",
"sandbox": "False",
"date_created": "2015-10-07T17:50:01Z",
"date_updated": "2015-10-07T17:50:01Z",
- "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "url": "https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
],
"meta": {
"page": 0,
"page_size": 1,
- "first_page_url": "https://chat.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "first_page_url": "https://ip-messaging.twilio.com/v1/Credentials?PageSize=1&Page=0",
"previous_page_url": null,
- "url": "https://chat.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "url": "https://ip-messaging.twilio.com/v1/Credentials?PageSize=1&Page=0",
"next_page_url": null,
"key": "credentials"
}
}
]
@@ -65,13 +65,13 @@
{
"credentials": [],
"meta": {
"page": 0,
"page_size": 1,
- "first_page_url": "https://chat.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "first_page_url": "https://ip-messaging.twilio.com/v1/Credentials?PageSize=1&Page=0",
"previous_page_url": null,
- "url": "https://chat.twilio.com/v1/Credentials?PageSize=1&Page=0",
+ "url": "https://ip-messaging.twilio.com/v1/Credentials?PageSize=1&Page=0",
"next_page_url": null,
"key": "credentials"
}
}
]
@@ -91,11 +91,11 @@
values = {'Type' => 'gcm', }
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
- url: 'https://chat.twilio.com/v1/Credentials',
+ url: 'https://ip-messaging.twilio.com/v1/Credentials',
data: values,
))).to eq(true)
end
it "receives create responses" do
@@ -108,11 +108,11 @@
"friendly_name": "Test slow create",
"type": "apn",
"sandbox": "False",
"date_created": "2015-10-07T17:50:01Z",
"date_updated": "2015-10-07T17:50:01Z",
- "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "url": "https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
actual = @client.ip_messaging.v1.credentials.create(type: 'gcm')
@@ -128,11 +128,11 @@
}.to raise_exception(Twilio::REST::TwilioError)
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://chat.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
+ url: 'https://ip-messaging.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives fetch responses" do
@holodeck.mock(Twilio::Response.new(
@@ -144,11 +144,11 @@
"friendly_name": "Test slow create",
"type": "apn",
"sandbox": "False",
"date_created": "2015-10-07T17:50:01Z",
"date_updated": "2015-10-07T17:50:01Z",
- "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "url": "https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
actual = @client.ip_messaging.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
@@ -164,11 +164,11 @@
}.to raise_exception(Twilio::REST::TwilioError)
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
- url: 'https://chat.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
+ url: 'https://ip-messaging.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives update responses" do
@holodeck.mock(Twilio::Response.new(
@@ -180,11 +180,11 @@
"friendly_name": "Test slow create",
"type": "apn",
"sandbox": "False",
"date_created": "2015-10-07T17:50:01Z",
"date_updated": "2015-10-07T17:50:01Z",
- "url": "https://chat.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+ "url": "https://ip-messaging.twilio.com/v1/Credentials/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
actual = @client.ip_messaging.v1.credentials('CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
@@ -200,10 +200,10 @@
}.to raise_exception(Twilio::REST::TwilioError)
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'delete',
- url: 'https://chat.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
+ url: 'https://ip-messaging.twilio.com/v1/Credentials/CRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives delete responses" do
@holodeck.mock(Twilio::Response.new(
\ No newline at end of file