@@ -153,7 +153,7 @@ public function testCreateEdgeRoleForDrupalDefaultRoleAndBaseUrl() {
153
153
->shouldBeCalledTimes (1 )
154
154
->willReturn ('{ "name": " ' . $ this ->org . '" } ' );
155
155
$ 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 ' ))
157
157
->shouldBeCalledTimes (1 )
158
158
->willReturn ($ response_org ->reveal ());
159
159
@@ -163,17 +163,17 @@ public function testCreateEdgeRoleForDrupalDefaultRoleAndBaseUrl() {
163
163
$ response_role ->getStatusCode ()->willReturn (404 );
164
164
$ exception = new ClientException ('Forbidden ' , $ request_role ->reveal (), $ response_role ->reveal ());
165
165
$ 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 ' ))
167
167
->willThrow ($ exception );
168
168
169
169
// The role should be created.
170
170
$ 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 ' ))
172
172
->shouldBeCalledTimes (1 );
173
173
174
174
// The permissions should be set.
175
175
$ 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 ' ))
177
177
->shouldBeCalledTimes (12 );
178
178
179
179
$ apigee_edge_management_cli_service = new ApigeeEdgeManagementCliService ($ this ->httpClient ->reveal ());
0 commit comments