spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb in twilio-ruby-5.7.2 vs spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb in twilio-ruby-5.8.0
- old
+ new
@@ -9,20 +9,20 @@
describe 'Reservation' do
it "can read" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.reservations.list()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations',
+ url: 'https://taskrouter.twilio.com/v1/Workspaces/WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Tasks/WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Reservations',
))).to eq(true)
end
it "receives read_full responses" do
@holodeck.mock(Twilio::Response.new(
@@ -59,12 +59,12 @@
]
}
]
))
- actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.reservations.list()
expect(actual).to_not eq(nil)
end
@@ -85,31 +85,31 @@
"reservations": []
}
]
))
- actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.reservations.list()
expect(actual).to_not eq(nil)
end
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .reservations('WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ url: 'https://taskrouter.twilio.com/v1/Workspaces/WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Tasks/WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Reservations/WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives fetch responses" do
@holodeck.mock(Twilio::Response.new(
@@ -133,31 +133,31 @@
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .reservations('WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
expect(actual).to_not eq(nil)
end
it "can update" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
+ @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .reservations('WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
- url: 'https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Tasks/WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ url: 'https://taskrouter.twilio.com/v1/Workspaces/WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Tasks/WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Reservations/WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives update responses" do
@holodeck.mock(Twilio::Response.new(
@@ -181,12 +181,12 @@
"workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .tasks('WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .tasks('WTXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .reservations('WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file