Create integration tests of basic workflows
Basic test scenarios
-
Create & Delete ApplicationRegistration without checking OIDC parts -
Create & Delete ApplicationRegistration checking OIDC parts -
Create and modify AppReg -
Create duplicate AppReg
Create & Delete ApplicationRegistration
This scenario creates a new ApplicationRegistration with random values, then uses a new instance of internal/authzapireq.AuthzClient to GET the Application from the API and confirm that it's there. Verify the Status.ID is correct.
- How to get random application from the API?
GET /Application?filter=applicationIdentifier:<givenRandomIdentifier>
After confirming, it deletes the ApplicationRegistration and with the AuthzClient it confirms that it's gone.
Variant: check OIDC
In a 2nd test, after creating the ApplicationRegistration verify that a corresponding OIDC registration is created as well. Verify Status.IDOIDC is correct.
After deleting, verify that the OIDC registration is gone.
Create & modify AppReg
Fetch from the API after creating. Modify, then check
- Modifications went through
- Status updated accordingly, if the modification should be reflected there
Create duplicate AppReg and verify permanent provisioning error on 2nd
API Resources
Edited by Konstantinos Samaras-Tsakiris