try {
MarconiApi api = api(server.getUrl("/").toString(), "openstack-marconi");
QueueApi queueApi = api.getQueueApiForZoneAndClient("DFW", CLIENT_ID);
Queues queues = queueApi.list(limit(6));
while (queues.nextMarker().isPresent()) {
assertEquals(queues.size(), 6);
for (Queue queue : queues) {
assertNotNull(queue.getName());
assertFalse(queue.getMetadata().isPresent());
}
queues = queueApi.list(queues.nextListQueuesOptions());
}
assertEquals(server.getRequestCount(), 4);
assertEquals(server.takeRequest().getRequestLine(), "POST /tokens HTTP/1.1");
assertEquals(server.takeRequest().getRequestLine(), "GET /v1/123123/queues?limit=6 HTTP/1.1");