@@ -153,7 +153,7 @@ public function testCreateEdgeRoleForDrupalDefaultRoleAndBaseUrl() {
153153 ->shouldBeCalledTimes (1 )
154154 ->willReturn ('{ "name": " ' . $ this ->org . '" } ' );
155155 $ this ->httpClient
156- ->get (Argument::exact (ApigeeClientInterface::DEFAULT_ENDPOINT . '/o/ ' . $ this ->org ), Argument::type ('array ' ))
156+ ->get (Argument::exact (ApigeeClientInterface::EDGE_ENDPOINT . '/o/ ' . $ this ->org ), Argument::type ('array ' ))
157157 ->shouldBeCalledTimes (1 )
158158 ->willReturn ($ response_org ->reveal ());
159159
@@ -163,17 +163,17 @@ public function testCreateEdgeRoleForDrupalDefaultRoleAndBaseUrl() {
163163 $ response_role ->getStatusCode ()->willReturn (404 );
164164 $ exception = new ClientException ('Forbidden ' , $ request_role ->reveal (), $ response_role ->reveal ());
165165 $ this ->httpClient
166- ->get (Argument::exact (ApigeeClientInterface::DEFAULT_ENDPOINT . '/o/ ' . $ this ->org . '/userroles/ ' . ApigeeEdgeManagementCliServiceInterface::DEFAULT_ROLE_NAME ), Argument::type ('array ' ))
166+ ->get (Argument::exact (ApigeeClientInterface::EDGE_ENDPOINT . '/o/ ' . $ this ->org . '/userroles/ ' . ApigeeEdgeManagementCliServiceInterface::DEFAULT_ROLE_NAME ), Argument::type ('array ' ))
167167 ->willThrow ($ exception );
168168
169169 // The role should be created.
170170 $ this ->httpClient
171- ->post (Argument::exact (ApigeeClientInterface::DEFAULT_ENDPOINT . '/o/ ' . $ this ->org . '/userroles ' ), Argument::type ('array ' ))
171+ ->post (Argument::exact (ApigeeClientInterface::EDGE_ENDPOINT . '/o/ ' . $ this ->org . '/userroles ' ), Argument::type ('array ' ))
172172 ->shouldBeCalledTimes (1 );
173173
174174 // The permissions should be set.
175175 $ this ->httpClient
176- ->post (Argument::exact (ApigeeClientInterface::DEFAULT_ENDPOINT . '/o/ ' . $ this ->org . '/userroles/ ' . ApigeeEdgeManagementCliServiceInterface::DEFAULT_ROLE_NAME . '/permissions ' ), Argument::type ('array ' ))
176+ ->post (Argument::exact (ApigeeClientInterface::EDGE_ENDPOINT . '/o/ ' . $ this ->org . '/userroles/ ' . ApigeeEdgeManagementCliServiceInterface::DEFAULT_ROLE_NAME . '/permissions ' ), Argument::type ('array ' ))
177177 ->shouldBeCalledTimes (12 );
178178
179179 $ apigee_edge_management_cli_service = new ApigeeEdgeManagementCliService ($ this ->httpClient ->reveal ());
0 commit comments