Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ka committed Jan 21, 2024
1 parent ddf7d31 commit 71d9140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/sample/Networking/v2/FloatingIpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testCreate(): FloatingIpData
$data->externalNetwork->waitUntilActive();
$data->internalNetwork->waitUntilActive();

$data->router = $this->getServiceLayer3()->createRouter([
$data->router = $this->getService()->createRouter([
'name' => $this->randomStr(),
'externalGatewayInfo' => [
'networkId' => $data->externalNetwork->id,
Expand Down Expand Up @@ -161,7 +161,7 @@ public function testDelete(FloatingIpData $data)
'{id}' => $data->floatingIp->id,
]);

foreach ($this->getServiceLayer3()->listFloatingIps() as $floatingIp) {
foreach ($this->getService()->listFloatingIps() as $floatingIp) {
if ($floatingIp->id == $data->floatingIp->id) {
$this->fail('Floating IP still exists');
}
Expand Down
5 changes: 0 additions & 5 deletions tests/sample/Networking/v2/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ protected function getService(): Service
return $this->getCachedService(Service::class);
}

protected function getServiceLayer3(): \OpenStack\Networking\v2\Extensions\Layer3\Service
{
return $this->getCachedService(\OpenStack\Networking\v2\Extensions\Layer3\Service::class);
}

protected function sampleFile(string $path, array $replacements = []): string
{
return parent::sampleFile("Networking/v2/$path", $replacements);
Expand Down

0 comments on commit 71d9140

Please sign in to comment.