# TEST: SECURITY-DM-06

## 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 assigning a policy to an existing device.

## **Pre-Conditions / Setup**

1. User must be logged into an account with policies granted for assigning policies to devices.
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-MdKmDrDQnF4y6rtT1YQ%2F-MdKnV9FemxxP158xaED%2F18.jpg?alt=media\&token=15eb4aa6-b545-4b00-a542-c97bfcc81a4d)

2- Choose the to be added policy ( for example: Create Local Users ) from the dropdown list and click the **+** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKmDrDQnF4y6rtT1YQ%2F-MdKontTGlGD2bNxPIes%2F20.jpg?alt=media\&token=495014d0-b5fb-463c-b8fa-ec23e7da0819)

## 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- Assigned policy ( Create Local Users ) should appear under the Assigned Policies tab.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdKmDrDQnF4y6rtT1YQ%2F-MdKpNcKiZJ29w23idOV%2F21.jpg?alt=media\&token=c8f06387-5b10-49d7-a185-1114dccb4c48)
