-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…388) * [#365] Switch functional DeveloperAppAnalyticsTest: use mock client. * [#365] Move queueDeveloperAppResponse to ApigeeMockApiClientHelperTrait * [#365] Fix displayName call Co-authored-by: arshad <[email protected]>
- Loading branch information
1 parent
6afe49a
commit 84e256c
Showing
5 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
tests/modules/apigee_mock_api_client/tests/response-templates/app-analytics.json.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{# | ||
/** | ||
* @file | ||
* App analytics. | ||
* | ||
* Variables: none. | ||
*/ | ||
#} | ||
{ | ||
"Response" : { | ||
"TimeUnit" : [ ], | ||
"metaData" : { | ||
"errors" : [ ], | ||
"notices" : [ "Source:Postgres", "Table used: edge.api.faxgroupusenondn012.agg_app", "query served by:31c31eba-a1b8-4796-a17c-e64a82d2610c", "PG Host:uap-trial-us-central1-1:us-central1:rgce1uappg02s" ] | ||
}, | ||
"resultTruncated" : false | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
tests/modules/apigee_mock_api_client/tests/response-templates/developer-app.json.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{# | ||
/** | ||
* @file | ||
* Developer App include file. | ||
* | ||
* Usage: | ||
* @code {% include 'developer-app.json.twig' %} @endcode | ||
* | ||
* Variables: An "app" with the following properties or keys. | ||
* - appId: AppId. | ||
* - displayName: User-friendly display name of the Developer App. | ||
* - name: Machine name of the Developer App. | ||
* - developerId: ID of the developer/app owner. | ||
* - status: The Developer App status. | ||
*/ | ||
#} | ||
{ | ||
"appFamily": "default", | ||
"appId": "{{ app.appId }}", | ||
"attributes": [ | ||
{ | ||
"name": "DisplayName", | ||
"value": "{{ app.displayName }}" | ||
} | ||
], | ||
"developerId": "{{ app.developerId }}", | ||
"name": "{{ app.name }}", | ||
"status": "{{ app.status|default('approved') }}", | ||
"createdAt" : 1540110813284, | ||
"createdBy" : "{{ app.createdBy|default('[email protected]') }}", | ||
"lastModifiedAt" : 1540110813284, | ||
"lastModifiedBy" : "{{ app.lastModifiedBy|default('[email protected]') }}", | ||
"scopes" : [ ], | ||
"credentials" : [ ] | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/modules/apigee_mock_api_client/tests/response-templates/get-developer-app.json.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{# | ||
/** | ||
* @file | ||
* GET /v1/organizations/{org_name}/developers/{developer_email_or_id}/apps/{app_name} | ||
* | ||
* Variables: | ||
* - org_name: The name of the org. | ||
* - developer_email_or_id: The developer email or id. | ||
* - app_name: The machine name of the app. | ||
*/ | ||
#} | ||
{% include 'developer-app.json.twig' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters