|
| 1 | +@endpoint(org-authorized-clients) @endpoint(org-authorized-clients-v2) |
| 2 | +Feature: Org Authorized Clients |
| 3 | + Manage OAuth2 client authorizations at the organization level. |
| 4 | + |
| 5 | + Background: |
| 6 | + Given a valid "apiKeyAuth" key in the system |
| 7 | + And a valid "appKeyAuth" key in the system |
| 8 | + And an instance of "OrgAuthorizedClients" API |
| 9 | + |
| 10 | + @generated @skip @team:DataDog/delegated-auth-login |
| 11 | + Scenario: Delete a user authorization for a client returns "No Content" response |
| 12 | + Given new "DeleteOrgAuthorizedClientUserAuthorization" request |
| 13 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 14 | + And request contains "user_authorized_client_id" parameter from "REPLACE.ME" |
| 15 | + When the request is sent |
| 16 | + Then the response status is 204 No Content |
| 17 | + |
| 18 | + @generated @skip @team:DataDog/delegated-auth-login |
| 19 | + Scenario: Delete a user authorization for a client returns "Not Found" response |
| 20 | + Given new "DeleteOrgAuthorizedClientUserAuthorization" request |
| 21 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 22 | + And request contains "user_authorized_client_id" parameter from "REPLACE.ME" |
| 23 | + When the request is sent |
| 24 | + Then the response status is 404 Not Found |
| 25 | + |
| 26 | + @generated @skip @team:DataDog/delegated-auth-login |
| 27 | + Scenario: Delete a user's authorizations for a client returns "No Content" response |
| 28 | + Given new "DeleteOrgAuthorizedClientAllUserAuthorizations" request |
| 29 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 30 | + And request contains "user_id" parameter from "REPLACE.ME" |
| 31 | + When the request is sent |
| 32 | + Then the response status is 204 No Content |
| 33 | + |
| 34 | + @generated @skip @team:DataDog/delegated-auth-login |
| 35 | + Scenario: Delete a user's authorizations for a client returns "Not Found" response |
| 36 | + Given new "DeleteOrgAuthorizedClientAllUserAuthorizations" request |
| 37 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 38 | + And request contains "user_id" parameter from "REPLACE.ME" |
| 39 | + When the request is sent |
| 40 | + Then the response status is 404 Not Found |
| 41 | + |
| 42 | + @generated @skip @team:DataDog/delegated-auth-login |
| 43 | + Scenario: Delete an org authorized client returns "No Content" response |
| 44 | + Given new "DeleteOrgAuthorizedClient" request |
| 45 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 46 | + When the request is sent |
| 47 | + Then the response status is 204 No Content |
| 48 | + |
| 49 | + @generated @skip @team:DataDog/delegated-auth-login |
| 50 | + Scenario: Delete an org authorized client returns "Not Found" response |
| 51 | + Given new "DeleteOrgAuthorizedClient" request |
| 52 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 53 | + When the request is sent |
| 54 | + Then the response status is 404 Not Found |
| 55 | + |
| 56 | + @generated @skip @team:DataDog/delegated-auth-login |
| 57 | + Scenario: Get an org authorized client returns "Not Found" response |
| 58 | + Given new "GetOrgAuthorizedClient" request |
| 59 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 60 | + When the request is sent |
| 61 | + Then the response status is 404 Not Found |
| 62 | + |
| 63 | + @generated @skip @team:DataDog/delegated-auth-login |
| 64 | + Scenario: Get an org authorized client returns "OK" response |
| 65 | + Given new "GetOrgAuthorizedClient" request |
| 66 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 67 | + When the request is sent |
| 68 | + Then the response status is 200 OK |
| 69 | + |
| 70 | + @generated @skip @team:DataDog/delegated-auth-login |
| 71 | + Scenario: List org authorized clients returns "OK" response |
| 72 | + Given new "ListOrgAuthorizedClients" request |
| 73 | + When the request is sent |
| 74 | + Then the response status is 200 OK |
| 75 | + |
| 76 | + @generated @skip @team:DataDog/delegated-auth-login @with-pagination |
| 77 | + Scenario: List org authorized clients returns "OK" response with pagination |
| 78 | + Given new "ListOrgAuthorizedClients" request |
| 79 | + When the request with pagination is sent |
| 80 | + Then the response status is 200 OK |
| 81 | + |
| 82 | + @generated @skip @team:DataDog/delegated-auth-login |
| 83 | + Scenario: List user authorizations for a client returns "Not Found" response |
| 84 | + Given new "ListOrgAuthorizedClientUserAuthorizations" request |
| 85 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 86 | + When the request is sent |
| 87 | + Then the response status is 404 Not Found |
| 88 | + |
| 89 | + @generated @skip @team:DataDog/delegated-auth-login |
| 90 | + Scenario: List user authorizations for a client returns "OK" response |
| 91 | + Given new "ListOrgAuthorizedClientUserAuthorizations" request |
| 92 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 93 | + When the request is sent |
| 94 | + Then the response status is 200 OK |
| 95 | + |
| 96 | + @generated @skip @team:DataDog/delegated-auth-login @with-pagination |
| 97 | + Scenario: List user authorizations for a client returns "OK" response with pagination |
| 98 | + Given new "ListOrgAuthorizedClientUserAuthorizations" request |
| 99 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 100 | + When the request with pagination is sent |
| 101 | + Then the response status is 200 OK |
| 102 | + |
| 103 | + @generated @skip @team:DataDog/delegated-auth-login |
| 104 | + Scenario: Update an org authorized client returns "Bad Request" response |
| 105 | + Given new "UpdateOrgAuthorizedClient" request |
| 106 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 107 | + And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}} |
| 108 | + When the request is sent |
| 109 | + Then the response status is 400 Bad Request |
| 110 | + |
| 111 | + @generated @skip @team:DataDog/delegated-auth-login |
| 112 | + Scenario: Update an org authorized client returns "Not Found" response |
| 113 | + Given new "UpdateOrgAuthorizedClient" request |
| 114 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 115 | + And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}} |
| 116 | + When the request is sent |
| 117 | + Then the response status is 404 Not Found |
| 118 | + |
| 119 | + @generated @skip @team:DataDog/delegated-auth-login |
| 120 | + Scenario: Update an org authorized client returns "OK" response |
| 121 | + Given new "UpdateOrgAuthorizedClient" request |
| 122 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 123 | + And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}} |
| 124 | + When the request is sent |
| 125 | + Then the response status is 200 OK |
| 126 | + |
| 127 | + @generated @skip @team:DataDog/delegated-auth-login |
| 128 | + Scenario: Update an org authorized client returns "Unprocessable Entity" response |
| 129 | + Given new "UpdateOrgAuthorizedClient" request |
| 130 | + And request contains "org_authorized_client_id" parameter from "REPLACE.ME" |
| 131 | + And body with value {"data": {"attributes": {"disabled": true}, "id": "00000000-0000-0000-0000-000000000001", "type": "org_authorized_clients"}} |
| 132 | + When the request is sent |
| 133 | + Then the response status is 422 Unprocessable Entity |
0 commit comments