# TEST: SECURITY-PM-02

## References

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

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when creating a new policy leaving the OID and/or Name fields blank.

## Pre-Conditions / Setup

1. User must be logged into an account with policies granted for creating policies.
2. Navigate to **Administration Panel / Security / Policies / Index**.

## Actions/Steps

1- Click the **Create** button&#x20;

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me0Qgt73Vi7BcKkzLEV%2F-Me0TIoaEdRUKuBGjlVh%2F1.jpg?alt=media\&token=2fede1e2-3f7a-45a0-9995-c9a239ad7746)

2- Leave OID filed and Name field blank and click the **Save** button.( OID field and Name field are required fields )&#x20;

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me0UfAcaF0wcMWF63B4%2F-Me0VclXju0PJcPKKWtn%2Fdnld2.jpg?alt=media\&token=f87906dc-5807-481a-83c1-514df019f54f)

## Expected Behaviour

1- Should navigate to the new Create Policy page.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me0TUvAsU6S0YWcpJdM%2F-Me0UNd7O5tFFEiB62Sj%2Fdnld1.jpg?alt=media\&token=606379f9-0f4a-43d6-b24e-327170704c6e)

2- Should show an error message below OID field and Name field indicating that required field is missing.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me0UfAcaF0wcMWF63B4%2F-Me0WVu1dNGFIh4vch2H%2F2.jpg?alt=media\&token=29ca8567-8932-4341-88bf-17e52dd4951b)

&#x20;
