> For the complete documentation index, see [llms.txt](https://help.santesuite.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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/test-security-am-02.md).

# TEST: SECURITY-AM-02

Testing the successful locking an application.

## References

* [Application Management](broken://pages/-LyJMkkX_xrto5sCaNnM)

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when locking an existing application.

## **Pre-Conditions / Setup**

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

## 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-MdHat7wlUvjBhv1MM9b%2F-MdHo_7dLpLY5-RnEaaD%2F6.jpg?alt=media\&token=d764db15-747e-4e3a-8f1a-62ebbbdd5c65)

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-MdHat7wlUvjBhv1MM9b%2F-MdHrR6NhdhiF1-OMvXu%2F8.jpg?alt=media\&token=2059b863-d8fa-4bf3-9f0a-7b297ff864cc)

## 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-MdHat7wlUvjBhv1MM9b%2F-MdHpWONnSq-aKSHIX2a%2F7.jpg?alt=media\&token=27f8fdb7-6d98-4393-a743-181922054116)

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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-MdHat7wlUvjBhv1MM9b%2F-MdHsIXy8nw56PZICn_Z%2F9.jpg?alt=media\&token=f78f9a42-6cd3-46f6-ac43-b10ebde6eef7)
