# TEST: SECURITY-AM-05

## References

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

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when undeleting  a deleted application.

## Pre-Conditions / Setup

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

## Actions/Steps

1- Navigate to the Applications/List 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-MdI4c1BCTyAu5ubVzxZ%2F-MdI5lglz7IzpaPAkhpE%2F17.jpg?alt=media\&token=abf0c0fe-41a4-4f9e-80c8-a73de2bf99e6)

2- Click the **Un-Delete** button to undelete the application

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdI4c1BCTyAu5ubVzxZ%2F-MdI7V4oykjtId9bzYzb%2F18-1.jpg?alt=media\&token=83d5eab8-3095-4397-aa13-c1a315707907)

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-MdI4c1BCTyAu5ubVzxZ%2F-MdI8bdExyi-k4jl9LwO%2F18-3.jpg?alt=media\&token=0b5166f2-5aa9-4bcc-b608-bac421f1e09d)

## Expected Behaviour

1- Deleted application ( Create-Application-Test ) should appear among the deleted applications

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdI4c1BCTyAu5ubVzxZ%2F-MdI76x7KSfqvqN_BWgS%2F18.jpg?alt=media\&token=65174e4e-ae84-49c6-b137-e9965ae5aea6)

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-MdI4c1BCTyAu5ubVzxZ%2F-MdI8E6j6PZ6Fw28YKHv%2F18-2.jpg?alt=media\&token=a124b7e3-00fb-4d54-a04e-f8555f0ab784)

3-

* The undeleted application (Create-Application-Test ) should disappear from the deleted applications list page&#x20;
* The undeleted application (Create-Application-Test) should reappear on the Applications/List page.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdI4c1BCTyAu5ubVzxZ%2F-MdIAD83md1dIEgIM9Ox%2F18-4.jpg?alt=media\&token=7ca6b2c3-76b3-458b-a25f-68cdda0bdebc)
