# TEST: SECURITY-DM-07

## References

* [Device Management](https://help.santesuite.org/installation/installation-1/deployment/installing-software/santedb-server/installation-qualification/security-administration-testing/test-cases-for-ui-1/device-management-tests/broken-reference)

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when resetting a device's secret.

## **Pre-Conditions / Setup**

1. User must be logged into an account with policies granted for resetting devices secrets.
2. Navigate to **Administration Panel / Security / Devices / Devices**.

## Actions/Steps

1- Click the **Edit** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKqNXCujTTgU7_hQgl%2F-MdKrX_36wLs3ooGMQI_%2F18.jpg?alt=media\&token=41d7fa3f-cdc4-4e0c-b823-34b5e01120d1)

2- Under the Security Properties tab, click the Device Secret **Reset** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKqNXCujTTgU7_hQgl%2F-MdKtX9e950wbLI7ibwT%2F19-1.jpg?alt=media\&token=18d7a55f-8a7b-403f-935c-737dea71cce6)

3- Click  **Ok** to confirm the secret reset.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKqNXCujTTgU7_hQgl%2F-MdKuxKBVGlSQSgx2V7J%2F22-1.jpg?alt=media\&token=a4171b65-5e60-4586-b046-809fde285038)

## Expected Behaviour

1- Should navigate to the Devices/Edit Device page

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKmDrDQnF4y6rtT1YQ%2F-MdKo-O-b8MxaqgPgQdt%2F19.jpg?alt=media\&token=db638a40-e9de-40f4-8f1e-d43525e00f3a)

2- Should display a message asking to confirm the secret reset.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKqNXCujTTgU7_hQgl%2F-MdKuUKF5Xb98FWjgw7v%2F22.jpg?alt=media\&token=93f57018-3260-47c1-82fc-80c0239dd764)

3- Should display the new Device Secret.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKqNXCujTTgU7_hQgl%2F-MdKw-g9vAbHxHTA21MT%2F23.jpg?alt=media\&token=57dba65f-ceaf-4418-b29c-bf6d2d10f94c)
