File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
tests/integration/Compute/v2 Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ public function runTests()
184
184
// Hypervisors
185
185
$ this ->listHypervisors ();
186
186
$ this ->getHypervisorsStatistics ();
187
+ $ this ->getHypervisor ();
187
188
188
189
// Console
189
190
$ this ->getVncConsole ();
@@ -560,6 +561,21 @@ private function listHypervisors()
560
561
$ this ->logStep ('Listed all available hypervisors ' );
561
562
}
562
563
564
+ private function getHypervisor ()
565
+ {
566
+ $ replacements = [
567
+ '{hypervisorId} ' => '1 ' ,
568
+ ];
569
+
570
+ require_once $ this ->sampleFile ($ replacements , 'hypervisors/get_hypervisor.php ' );
571
+
572
+ /**@var Hypervisor $hypervisor */
573
+ $ this ->assertInstanceOf (Hypervisor::class, $ hypervisor );
574
+ $ this ->assertEquals ($ replacements ['{hypervisorId} ' ], $ hypervisor ->id );
575
+
576
+ $ this ->logStep ('Retrieved details for hypervisor id {hypervisorId} ' , $ replacements );
577
+ }
578
+
563
579
private function getHypervisorsStatistics ()
564
580
{
565
581
require_once $ this ->sampleFile ([], 'hypervisors/get_hypervisors_statistics.php ' );
You can’t perform that action at this time.
0 commit comments