Step Description | Expected result |
---|---|
In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. No records found in the table |
Click on the button “Add new API access” | New API access Page is displayed correctly |
Fill the form with following data (Client ID : “Client XYZ”, Client Name: “ClientName ABC”) Click on “Generate client secret & Save” button |
There is 1 application in the list The message “The API access and Client secret has been generated sucessfully” is displayed The message “Client secret: " is available The button Copy put the client secret in the clipboard |
In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. No records found in the table |
Click on the button “Add new API access” | New API access Page is displayed correctly |
* Fill the form with following data * Click on “Generate client secret & Save” button |
* The message “The API access and Client secret has been generated sucessfully” is displayed * The message “Client secret: " is displayed |
Return to BO > Advanced Parameters > Authorization Server and get the ID of the second row | Authorization Server Page is displayed correctly. 1 record found in the table |
Click on the edit row on the second row | Edit API access Page is displayed correctly |
Request with method PATCH the endpoint “https://[url of your shop]/admin-api/api-client/{apiClientId}” for updating the field “clientId” | The HTTP code is 200. The return data has multiples keys. The key clientId has the updated value. |
Reload the Edit page | Check that the input value for field “clientId” is updated |
Request with method PATCH the endpoint “https://[url of your shop]/admin-api/api-client/{apiClientId}” for updating the field “clientName” | The HTTP code is 200. The return data has multiples keys. The key clientName has the updated value. |
Reload the Edit page | Check that the input value for field “clientName” is updated |
Request with method PATCH the endpoint “https://[url of your shop]/admin-api/api-client/{apiClientId}” for updating the field “description” | The HTTP code is 200. The return data has multiples keys. The key description has the updated value. |
Reload the Edit page | Check that the input value for field “description” is updated |
Request with method PATCH the endpoint “https://[url of your shop]/admin-api/api-client/{apiClientId}” for updating the field “enabled” | The HTTP code is 200. The return data has multiples keys. The key enabled has the updated value. |
Reload the Edit page | Check that the input value for field “enabled” is updated |
Request with method PATCH the endpoint “https://[url of your shop]/admin-api/api-client/{apiClientId}” for updating the field “lifetime” | The HTTP code is 200. The return data has multiples keys. The key lifetime has the updated value. |
Reload the Edit page | Check that the input value for field “lifetime” is updated |
Request with method PATCH the endpoint “https://[url of your shop]/admin-api/api-client/{apiClientId}” for updating the field “scopes” | The HTTP code is 200. The return data has multiples keys. The key scopes has the updated value. |
Reload the Edit page | Check that the input value for field “scopes” is updated |
In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. 1 record found in the table |
On the first row, click on the button “Three points” | The dropdown is displayed |
Click on the Delete Button in the dropdown | A modal appeared |
Click on the Confirm Button in the modal | The message “Successful deletion” is displayed No records found in the table |
In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. 1 record found in the table |
On the first row, click on the button “Three points” | The dropdown is displayed |
Click on the Delete Button in the dropdown | A modal appeared |
Click on the Confirm Button in the modal | The message “Successful deletion” is displayed No records found in the table |