PXD-252 ⁃ As a developer, I want to update the existing Fence Web services, so that proper validation can be executed regarding the Service Account parent GCP Project. #249
Given a invalid scenario, when a request is received to register a service account, and the service account is a Google System managed Service Account, I expect the fence web service to display a HTTP error status code of 400 with an error message.
HTTP Status Code : 400 ( Confirm the Error code with ALEX)
Error Message : "" ( Confirm the Error code with ALEX)
**
Given a valid scenario, when a request is received to register a service account, and the service account is a Compute Default Service Account, I expect the Fence web service to display a HTTP error status code of 200 with a valid message.
HTTP Status Code : 200 ( Confirm the Error code with ALEX)
Message : "" ( Confirm the Error code with ALEX)
**
Given a valid scenario, when a request is received to register a service account, and the service account is a User-managed Service Account, I expect the fence web service to display a HTTP error status code of 200 with a valid message.
HTTP Status Code : 200 ( Confirm the Error code with ALEX)
Message : "" ( Confirm the Error code with ALEX)
Given a invalid scenario, to register a service account, and the service account is a User-managed Service Account or Compute Default Service Account, Then I expect the fence web service not to update the access for that service account, but display a HTTP error status code of 500 with a valid error message.
Request : id
Response:
HTTP Status Code : 500
Message : "Internal Error : Unable to connect to the Fence Web service"
============================================ END OF A/C========================================================
**
**
Given a valid scenario, when a request is received to register a service account, and the service account is a User-managed Service Account, I expect the fence web service to display a HTTP error status code of 200 with a valid message.
Given a invalid scenario, to register a service account, and the service account is a User-managed Service Account or Compute Default Service Account, Then I expect the fence web service not to update the access for that service account, but display a HTTP error status code of 500 with a valid error message.
============================================ END OF A/C========================================================