Web Server Testing
Testing Connecting to RapID from your Web Server
This section outlines the behaviour of using each test identifier on a specific SDK method or Web API endpoint. See the relevant Web API and SDK sections for details of methods and return values.
Requesting a Credential
Requesting a credential using the test anonymous identifiers outlined here will return a static RequestId
unique to your company.
This is important as these are required to be able to perform a reseed for the test identifiers. Using the test identifiers to request a credential using the
Web API or one of the SDKs will result in the behaviour below.
Anonymous Identifier | RequestId |
---|---|
TestCertificateRequestValid1 | Returns your RequestId for TestCertificateRequestValid1 |
TestCertificateRequestValid2 | Returns your RequestId for TestCertificateRequestValid2 |
TestCertificateRequestValid3 | Returns your RequestId for TestCertificateRequestValid3 |
TestCertificateRequestValid4 | Returns your RequestId for TestCertificateRequestValid4 |
TestCertificateRequestValid5 | Returns your RequestId for TestCertificateRequestValid5 |
TestCertificateRequestExpired | Returns your RequestId for TestCertificateRequestExpired |
TestCertificateRequestCollected | Returns your RequestId for TestCertificateRequestCollected |
TestGracePeriodRequest | Returns your RequestId for TestGracePeriodRequest |
TestExpiredCertificateRequest | Returns your RequestId for TestExpiredCertificateRequest |
TestNoMoreLicenses | Returns an error simulating that you have run out of licenses. |
Note: The TestNoMoreLicenses is only valid for a request operation as this will return a "no more licenses" error.
As such you will never get a RequestId
for this anonymous identifier as you cannot collect it.
Updating a Credential
Updating a credential allows you to prevent it being collected or automatically renewed. Updating a resource targeted by a test credential in the Web API or in one of the SDKs will result in the behaviour below.
Anonymous Identifier | RequestId |
---|---|
TestCertificateRequestValid1 | Will successfully update and allow or prevent collection |
TestCertificateRequestValid2 | Will successfully update and allow or prevent collection |
TestCertificateRequestValid3 | Will successfully update and allow or prevent collection |
TestCertificateRequestValid4 | Will successfully update and allow or prevent collection |
TestCertificateRequestValid5 | Will successfully update and allow or prevent collection |
TestCertificateRequestExpired | Will successfully update and allow or prevent collection |
TestCertificateRequestCollected | Will successfully update and allow or prevent collection |
TestGracePeriodRequest | Will successfully update and allow or prevent collection |
TestExpiredCertificateRequest | Will successfully update and allow or prevent collection |
TestNoMoreLicenses | Will return an error indicating the record does not exist |
Requesting a Replacement Credential
At this time, there are no specific test identifiers for testing the replacement of credentials. The use of your initial free licenses is required for this purpose. Also note that replacement credentials do not consume licenses.