public function setupObjects()
 {
     parent::setupObjects();
     $response = new \Guzzle\Http\Message\Response(200, array('content-type' => 'application/json'), '{"metadata": {"foo": "bar"}}');
     $this->addMockSubscriber($response);
     $this->metadata = $this->server->metadata('foo');
 }
 public function setupObjects()
 {
     parent::setupObjects();
     $this->resource = $this->service->flavor();
 }
 public function setupObjects()
 {
     parent::setupObjects();
     $this->addMockSubscriber($this->makeResponse('{"volumeAttachment":{"device":"/dev/xvdb","serverId":"76ddf257-2771-4097-aab8-b07b52110376","id":"4ab50df6-7480-45df-8604-b1ee39fe857c","volumeId":"4ab50df6-7480-45df-8604-b1ee39fe857c"}}'));
     $this->attachment = $this->server->volumeAttachment('4ab50df6-7480-45df-8604-b1ee39fe857c');
 }
Exemple #4
0
 public function setupObjects()
 {
     parent::setupObjects();
     $this->addMockSubscriber($this->makeResponse('{"network":{"id":"public","ip":[{"version":4,"addr":"67.23.10.132"},{"version":6,"addr":"::babe:67.23.10.132"},{"version":4,"addr":"67.23.10.131"},{"version":6,"addr":"::babe:4317:0A83"}]}}'));
     $this->network = $this->service->network(NetworkConst::RAX_PUBLIC);
 }