# TEST: SECURITY-DM-05

## 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 undeleting  a deleted device.

## **Pre-Conditions / Setup**

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

## Actions/Steps

1- Navigate to the Devices/Devices page and click the **Show Deleted** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJPpzv4f_3qTyot9TG%2F-MdKhcGoen37YlVHBvC4%2F14.jpg?alt=media\&token=43daed6a-380f-4ec9-8bf4-8dc46805cef8)

2- Click the **Un-Delete** button to undelete the device.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJPpzv4f_3qTyot9TG%2F-MdKjdFIyawDkEhVGugA%2F15-1.jpg?alt=media\&token=1d602607-c998-4e6b-85d2-5188f3997c86)

3- Click  **Ok** to confirm the undelete.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJPpzv4f_3qTyot9TG%2F-MdKkg3SPjk_28vLHh9T%2F16-1.jpg?alt=media\&token=d53cdea6-f3b1-4779-809e-b52d822254cc)

## Expected Behaviour

1- Deleted device ( Create-Device-Test1 ) should appear among the deleted applications.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJPpzv4f_3qTyot9TG%2F-MdKiRkr-MEW9BwyH01H%2F15.jpg?alt=media\&token=38fb68bb-2e0e-4dcc-ac91-1cd6c6fffdce)

2- Should display a message asking to confirm the undelete.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJPpzv4f_3qTyot9TG%2F-MdKkM2cCUHcwz9NG3jc%2F16.jpg?alt=media\&token=eda0b74a-04a9-4af7-8429-20ed01a927ef)

3-

* The undeleted device (Create-Device-Test1 ) should disappear from the deleted devices list page&#x20;
* The undeleted device (Create-Device-Test1) should reappear on the Devices/Devices page.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdJPpzv4f_3qTyot9TG%2F-MdKlf7OTFUgA-q2iyha%2F17.jpg?alt=media\&token=cad9f979-d54c-4d69-9537-068814f1e2bb)
