-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored Management API tests and various improvements (#25)
Highlights: * Block installation of the latest vimeo/psalm. vimeo/psalm#1016 * Introducing new API and HTTP clients for testing. * Updated Management API tests to use the new test API- and HTTP clients. * Explode entity CRUD operation trait and interface to smaller components per operation. * Added missing organization property to Company entity. * Added more details about the actual behavior of the Company membership API. * Introducing new base class and interface for developer- and company entity. * Refactored basic and Management API tests. * Bump minimum version of php-http/client-common to >=1.8.1. 1.8.0 contains a regression bug: php-http/client-common#112 * Add new required patch to php-http/client-common. php-http/client-common#113 * Disable process timeout to prevent failing test runs caused by PHPUnit executed via a Composer command. * Removed useless PHP nightly builds from testing matrix. * Added test to getDeveloperByApp. * Introducing new base exception interface for our client. * Introducing API client specific RuntimeException class. * Throw more meaningful exceptions when an entity property has an incorrect value. * Be more type-strict by replacing array arguments on data object's setters with type strict variable-length arguments. * Fix implementation of getProperties(). (BC breaking change.)
- Loading branch information
Showing
175 changed files
with
6,047 additions
and
2,615 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
/* | ||
* Copyright 2018 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Apigee\Edge\Api\Management\Entity; | ||
|
||
use Apigee\Edge\Entity\CommonEntityPropertiesAwareTrait; | ||
use Apigee\Edge\Entity\Entity; | ||
use Apigee\Edge\Entity\Property\AppsPropertyAwareTrait; | ||
use Apigee\Edge\Entity\Property\AttributesPropertyAwareTrait; | ||
use Apigee\Edge\Entity\Property\StatusPropertyAwareTrait; | ||
|
||
/** | ||
* Base class for developer- and company entities. | ||
*/ | ||
abstract class AppOwner extends Entity implements AppOwnerInterface | ||
{ | ||
use AttributesPropertyAwareTrait; | ||
use AppsPropertyAwareTrait; | ||
use CommonEntityPropertiesAwareTrait; | ||
use StatusPropertyAwareTrait; | ||
} |
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,39 @@ | ||
<?php | ||
|
||
/* | ||
* Copyright 2018 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Apigee\Edge\Api\Management\Entity; | ||
|
||
use Apigee\Edge\Entity\CommonEntityPropertiesInterface; | ||
use Apigee\Edge\Entity\EntityInterface; | ||
use Apigee\Edge\Entity\Property\AppsPropertyInterface; | ||
use Apigee\Edge\Entity\Property\AttributesPropertyInterface; | ||
use Apigee\Edge\Entity\Property\StatusPropertyInterface; | ||
|
||
/** | ||
* Interface AppOwnerInterface. | ||
*/ | ||
interface AppOwnerInterface extends EntityInterface, | ||
AttributesPropertyInterface, | ||
AppsPropertyInterface, | ||
CommonEntityPropertiesInterface, | ||
StatusPropertyInterface | ||
{ | ||
public const STATUS_ACTIVE = 'active'; | ||
|
||
public const STATUS_INACTIVE = 'inactive'; | ||
} |
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
Oops, something went wrong.