# TEST: SECURITY-DM-02

## 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 locking an existing device.

## **Pre-Conditions / Setup**

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

## Actions/Steps

1- Click the **Lock** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdIyk0iqB1IDka8SOCZ%2F-MdJCretG208nnQVN9C9%2F6.jpg?alt=media\&token=7bc7d9d7-33c8-4cfe-a354-b9fde868709d)

2- Click  **Ok** to confirm the lock.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdIyk0iqB1IDka8SOCZ%2F-MdJF-TM0E9CH9rXCMHg%2F7-1.jpg?alt=media\&token=57d5a37f-6051-4419-ab15-c237dee5a991)

## Expected Behaviour

1- - Should display a message asking to confirm the lock.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdIyk0iqB1IDka8SOCZ%2F-MdJEcL_dk3fH2sLJ8j4%2F7.jpg?alt=media\&token=4d579108-46c9-45e3-9ec0-446709ab60b4)

2- Should appear the Status of the device changed to locked.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdIyk0iqB1IDka8SOCZ%2F-MdJFb3W-XG4LH0a20-F%2F8.jpg?alt=media\&token=44be001e-43ec-4750-87bb-00fdfb796656)
