stable

Clone or download

Read-only

Add REST tests to cover access keys authentication

As a side effect of the tests, two REST routes to create new keys and to retrieve existing keys informations has been added to avoid doing weird things during the setup of the REST tests. This is part of story #12266: use an API key rather than a login / password Change-Id: I6a5cec11f9c89e531d84a09dba7bc86b16e9dab6

Modified Files

Name
M src/common/REST/ResourcesInjector.class.php +5 −2 Go to diff View file
A src/common/User/AccessKey/REST/AccessKeyResource.php +113 −0 Go to diff View file
A src/common/User/AccessKey/REST/UserAccessKeyCreationRepresentation.php +36 −0 Go to diff View file
A src/common/User/AccessKey/REST/UserAccessKeyRepresentation.php +61 −0 Go to diff View file
M src/common/User/REST/v1/UserResource.php +55 −1 Go to diff View file
A tests/rest/tests/AccessKeyTest.php +121 −0 Go to diff View file