Skip to content

Commit

Permalink
MOSIP-36023
Browse files Browse the repository at this point in the history
Signed-off-by: Jayesh Kharode <[email protected]>
  • Loading branch information
Jayesh Kharode committed Sep 25, 2024
1 parent 856f0a9 commit d90c678
Show file tree
Hide file tree
Showing 17 changed files with 143 additions and 254 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DeactivateOIDCClient:
Pms_DeactivateOIDCClient_all_Valid_Smoke_sid:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -24,7 +24,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Retry_with_same_policy_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -51,7 +51,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_Requesttime_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -77,7 +77,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_client_id_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -103,7 +103,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_clientName_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -129,7 +129,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_status_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -155,7 +155,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_logoUri_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -181,7 +181,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_redirectUris_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -207,7 +207,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_grantTypes_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -233,7 +233,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_clientNameLangMap_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -259,7 +259,7 @@ DeactivateOIDCClient:
}'

Pms_DeactivateOIDCClient_Missing_clientAuthMethods_Neg:
endPoint: /v1/partnermanager/oauth/client/{client_id}
endPoint: /v1/partnermanager/oauth/clients/{client_id}
description: Deactivating The Oidc Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllActivePolicyGroups:
Pms_GetAllActivePolicyGroups_All_Valid_Smoke:
endPoint: /v1/policymanager/policies/getAllPolicyGroups
endPoint: /v1/policymanager/policies/policy-groups
description: Fetching all the active PolicyGroups
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -12,7 +12,7 @@ GetAllActivePolicyGroups:
output: ' {
}'
Pms_GetAllActivePolicyGroups_without_auth:
endPoint: /v1/policymanager/policies/getAllPolicyGroups
endPoint: /v1/policymanager/policies/policy-groups
description: Fetching all the active PolicyGroups without token
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -29,7 +29,7 @@ GetAllActivePolicyGroups:
]
}'
Pms_GetAllActivePolicyGroups_Invalid_auth:
endPoint: /v1/policymanager/policies/getAllPolicyGroups
endPoint: /v1/policymanager/policies/policy-groups
description: Fetching all the active PolicyGroups with invalid token
role: regproc
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllApiKeyForAuthPartner:
Pms_GetAllApiKeyForAuthPartner_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/getAllApiKeysForAuthPartners
endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners
description: Fetching all the API Key available for Auth Partner
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -12,7 +12,7 @@ GetAllApiKeyForAuthPartner:
output: '{
}'
Pms_GetAllApiKeyForAuthPartner_without_auth:
endPoint: /v1/partnermanager/partners/getAllApiKeysForAuthPartners
endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners
description: Fetching all the API Key available for Auth Partner without token
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -29,7 +29,7 @@ GetAllApiKeyForAuthPartner:
]
}'
Pms_GetAllApiKeyForAuthPartner_invalid_auth:
endPoint: /v1/partnermanager/partners/getAllApiKeysForAuthPartners
endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners
description: Fetching all the API Key available for Auth Partner with invalid token
role: regproc
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllApiKeyForAuthPartner:
Pms_GetAllApiKeyForAuthPartner:
endPoint: /v1/partnermanager/partners/getAllApiKeysForAuthPartners
endPoint: /v1/partnermanager/partners/api-keys-for-auth-partners
description: Fetching all the API Key available for Auth Partner
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllApprovedAuthPartnerPolicy:
Pms_GetAllApprovedAuthPartnerPolicy_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/getAllApprovedAuthPartnerPolicies
endPoint: /v1/partnermanager/partners/auth-partners-policies
description: Fetching all Approved Auth Partner Policies
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllApprovedAuthPartnerPolicy:
Pms_GetAllApprovedAuthPartnerPolicy_without_auth:
endPoint: /v1/partnermanager/partners/getAllApprovedAuthPartnerPolicies
endPoint: /v1/partnermanager/partners/auth-partners-policies
description: Fetching all Approved Auth Partner Policies without token
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -17,7 +17,7 @@ GetAllApprovedAuthPartnerPolicy:
]
}'
Pms_GetAllApprovedAuthPartnerPolicy_invalid_auth:
endPoint: /v1/partnermanager/partners/getAllApprovedAuthPartnerPolicies
endPoint: /v1/partnermanager/partners/auth-partners-policies
description: Fetching all Approved Auth Partner Policies with invalid token
role: regproc
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllApprovedPartnerId:
Pms_GetAllApprovedPartnerId_allValid_smoke:
endPoint: /v1/partnermanager/partners/getAllApprovedPartnerIdsWithPolicyGroups
endPoint: /v1/partnermanager/partners/approved-partner-ids-with-policy-groups
description: Fetching all approved Partner Id
role: partnerrevamp
restMethod: get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllApprovedPartnerId:
Pms_GetAllApprovedPartnerId_without_auth:
endPoint: /v1/partnermanager/partners/getAllApprovedPartnerIdsWithPolicyGroups
endPoint: /v1/partnermanager/partners/approved-partner-ids-with-policy-groups
description: Fetching all approved Partner Id without token
role: batch
restMethod: get
Expand All @@ -16,7 +16,7 @@ GetAllApprovedPartnerId:
]
}'
Pms_GetAllApprovedPartnerId_invalid_auth:
endPoint: /v1/partnermanager/partners/getAllApprovedPartnerIdsWithPolicyGroups
endPoint: /v1/partnermanager/partners/approved-partner-ids-with-policy-groups
description: Fetching all approved Partner Id with invalid token
role: regproc
restMethod: get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllCertificate:
Pms_GetAllCertificate_allValid_smoke:
endPoint: /v1/partnermanager/partners/getAllCertificateDetails
endPoint: /v1/partnermanager/partners/partner-certificates
description: Fetching all the API certificates of the Logged in Partner
role: partnerrevamp
restMethod: get
Expand All @@ -15,7 +15,7 @@ GetAllCertificate:
}'

Pms_GetAllCertificate_allValid_smoke:
endPoint: /v1/partnermanager/partners/getAllCertificateDetails
endPoint: /v1/partnermanager/partners/partner-certificates
description: Fetching all the API certificates of the Loggedin Partner
role: partnerrevamp
restMethod: get
Expand All @@ -29,7 +29,7 @@ GetAllCertificate:
"isCertificateAvailable": true
}'
Pms_GetAllCertificate_without_auth:
endPoint: /v1/partnermanager/partners/getAllCertificateDetails
endPoint: /v1/partnermanager/partners/partner-certificates
description: Fetching all the API certificates of the partner without login
role: batch
restMethod: get
Expand All @@ -45,7 +45,7 @@ GetAllCertificate:
]
}'
Pms_GetAllCertificate_invalid_auth:
endPoint: /v1/partnermanager/partners/getAllCertificateDetails
endPoint: /v1/partnermanager/partners/partner-certificates
description: Fetching all the API certificates of the partner invalid partner
role: regproc
restMethod: get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllCertificate:
Pms_GetAllCertificate_beforecertifiactes_upload:
endPoint: /v1/partnermanager/partners/getAllCertificateDetails
endPoint: /v1/partnermanager/partners/partner-certificates
description: Fetching all the API certificates of the Logged in Partner
role: partnerrevamp
restMethod: get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllOidcClient:
Pms_GetAllOidcClient_All_Valid_Smoke:
endPoint: /v1/partnermanager/getAllOidcClients
endPoint: /v1/partnermanager/oauth/clients
description: Fetching all OIDC Clients of the loggedin Partner
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllOidcClient:
Pms_GetAllOidcClient_without_Auth:
endPoint: /v1/partnermanager/getAllOidcClients
endPoint: /v1/partnermanager/oauth/clients
description: Fetching all OIDC Clients of the loggedin Partner
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -17,7 +17,7 @@ GetAllOidcClient:
]
}'
Pms_GetAllOidcClient_Invalid_Auth:
endPoint: /v1/partnermanager/getAllOidcClients
endPoint: /v1/partnermanager/oauth/clients
description: Fetching all OIDC Clients of the loggedin Partner
role: regproc
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllRequestedPolicies:
Pms_GetAllRequestedPolicies_All_Valid_Smoke:
endPoint: /v1/partnermanager/partners/getAllRequestedPolicies
endPoint: /v1/partnermanager/partners/policy-requests
description: Fetching all the Requested Policies
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GetAllRequestedPolicies:
Pms_GetAllRequestedPolicies_without_auth:
endPoint: /v1/partnermanager/partners/getAllRequestedPolicies
endPoint: /v1/partnermanager/partners/policy-requests
description: Fetching all the Requested Policies without login token
role: batch
checkErrorsOnlyInResponse: true
Expand All @@ -17,7 +17,7 @@ GetAllRequestedPolicies:
]
}'
Pms_GetAllRequestedPolicies_invalid_auth:
endPoint: /v1/partnermanager/partners/getAllRequestedPolicies
endPoint: /v1/partnermanager/partners/policy-requests
description: Fetching all the Requested Policies with invalid role
role: regproc
checkErrorsOnlyInResponse: true
Expand Down
21 changes: 10 additions & 11 deletions apitest/src/main/resources/pms/OIDCClient/OIDCClient.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CreateOIDCClient:
Pms_CreateOIDCClient_all_Valid_Smoke_sid:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -23,10 +23,9 @@ CreateOIDCClient:
"status": "ACTIVE"
}'
Pms_CreateOIDCClient_invalid_policyID:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client with invalid policyid
role: partnerrevamp
checkErrorsOnlyInResponse: true
restMethod: post
inputTemplate: pms/OIDCClient/oIDCClient
outputTemplate: pms/error
Expand All @@ -49,7 +48,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_invalid_logoUri:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client with invalid logoUri
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -75,7 +74,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_invalid_RedirectUri:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client with invalid redirectUri
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -101,7 +100,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_invalid_auth:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client without token
role: regproc
checkErrorsOnlyInResponse: true
Expand All @@ -127,7 +126,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_without_publickey:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client without publickkey
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -153,7 +152,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_invalid_granttypes:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client with invalid granttypes
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -179,7 +178,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_without_granttypes:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client without granttypes
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -205,7 +204,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_without_name:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client without name field
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand All @@ -231,7 +230,7 @@ CreateOIDCClient:
]
}'
Pms_CreateOIDCClient_invalid_publickey:
endPoint: /v1/partnermanager/oauth/client
endPoint: /v1/partnermanager/oauth/clients
description: Creating OAUTH Client with invalid publickkey
role: partnerrevamp
checkErrorsOnlyInResponse: true
Expand Down
Loading

0 comments on commit d90c678

Please sign in to comment.