Ejemplo n.º 1
0
 public function runTests()
 {
     $this->startTimer();
     // Manually trigger setUp
     $this->setUp();
     $this->searchImages(self::IMAGE);
     // Servers
     $this->createServer();
     try {
         $this->updateServer();
         $this->retrieveServer();
         $this->serverMetadata();
         // Server actions
         //$this->changeServerPassword();
         $this->stopServer();
         $this->startServer();
         $this->resizeServer();
         $this->confirmServerResize();
         $this->rebuildServer();
         $this->createServerImage();
         $this->rebootServer();
         // Security groups
         $this->addSecurityGroupToServer();
         $this->listServerSecurityGroups();
         $this->removeServerSecurityGroup();
         // Volume attachments
         $this->attachVolumeToServer();
         $this->listVolumeAttachmentsForServer();
         $this->detachVolumeFromServer();
         // Flavors
         $this->createFlavor();
         $this->listFlavors();
         $this->getFlavor();
         // Images
         $this->listImages();
         $this->getImage();
         $this->imageMetadata();
         $this->deleteServerImage();
         // Keypairs
         $this->listKeypairs();
         $this->createKeypair();
         $this->getKeypair();
         $this->deleteKeypair();
         // Limits
         $this->getLimits();
         $this->getHypervisorsStatistics();
         // Console
         $this->getVncConsole();
     } finally {
         // Teardown
         $this->deleteServer();
         $this->deleteFlavor();
         $this->subnet->delete();
         $this->network->delete();
         $this->volume->delete();
     }
     $this->outputTimeTaken();
 }
Ejemplo n.º 2
0
 public function test_it_deletes()
 {
     $this->setupMock('DELETE', 'volumes/1', null, [], new Response(204));
     $this->volume->delete();
 }