spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb in twilio-ruby-5.7.2 vs spec/integration/taskrouter/v1/workspace/worker/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') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.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/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations',
+ url: 'https://taskrouter.twilio.com/v1/Workspaces/WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Workers/WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/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') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.reservations.list()
expect(actual).to_not eq(nil)
end
@@ -85,31 +85,31 @@
"reservations": []
}
]
))
- actual = @client.taskrouter.v1.workspaces('WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.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') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .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/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ url: 'https://taskrouter.twilio.com/v1/Workspaces/WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Workers/WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/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') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .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') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
+ @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .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/Workers/WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Reservations/WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ url: 'https://taskrouter.twilio.com/v1/Workspaces/WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Workers/WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/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') \
- .workers('WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .reservations('WRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').update()
+ actual = @client.taskrouter.v1.workspaces('WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .workers('WKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .reservations('WRXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file