Пример #1
0
 private function detachVolumeFromServer()
 {
     $replacements = ['{serverId}' => $this->serverId, '{volumeAttachmentId}' => $this->volumeAttachmentId];
     require_once $this->sampleFile($replacements, 'servers/detach_volume_attachment.php');
     $this->volume->waitUntil('available');
     $this->logStep('Detached volume attachments for server {serverId}', $replacements);
 }
Пример #2
0
 public function test_it_resets_metadata()
 {
     $expectedJson = ['metadata' => ['key1' => 'val1']];
     $this->setupMock('PUT', 'volumes/1/metadata', $expectedJson, [], 'GET_metadata');
     $this->volume->resetMetadata(['key1' => 'val1']);
 }
Пример #3
0
 public function test_it_deletes()
 {
     $this->setupMock('DELETE', 'volumes/1', null, [], new Response(204));
     $this->volume->delete();
 }