Skip to content

Commit d8f12a0

Browse files
committed
Fix Networking Service tests
1 parent ace0dd1 commit d8f12a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/Networking/v2/Extensions/SecurityGroups/ServiceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function setUp()
2626
public function test_it_lists_secgroups()
2727
{
2828
$this->client
29-
->request('GET', 'security-groups', ['headers' => []])
29+
->request('GET', 'v2.0/security-groups', ['headers' => []])
3030
->shouldBeCalled()
3131
->willReturn($this->getFixture('SecurityGroups'));
3232

@@ -50,7 +50,7 @@ public function test_it_creates_secgroup()
5050

5151
$expectedJson = ['security_group' => $options];
5252

53-
$this->setupMock('POST', 'security-groups', $expectedJson, [], new Response(201));
53+
$this->setupMock('POST', 'v2.0/security-groups', $expectedJson, [], new Response(201));
5454

5555
$n = $this->service->createSecurityGroup($options);
5656
$this->assertInstanceOf(SecurityGroup::class, $n);
@@ -64,7 +64,7 @@ public function test_it_gets_secgroup()
6464
public function test_it_lists_secgrouprules()
6565
{
6666
$this->client
67-
->request('GET', 'security-group-rules', ['headers' => []])
67+
->request('GET', 'v2.0/security-group-rules', ['headers' => []])
6868
->shouldBeCalled()
6969
->willReturn($this->getFixture('SecurityGroupRules'));
7070

@@ -102,7 +102,7 @@ public function test_it_creates_secgrouprule()
102102
"security_group_id" => "a7734e61-b545-452d-a3cd-0189cbd9747a",
103103
]];
104104

105-
$this->setupMock('POST', 'security-group-rules', $expectedJson, [], new Response(201));
105+
$this->setupMock('POST', 'v2.0/security-group-rules', $expectedJson, [], new Response(201));
106106

107107
$n = $this->service->createSecurityGroupRule($options);
108108
$this->assertInstanceOf(SecurityGroupRule::class, $n);

0 commit comments

Comments
 (0)