> 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/security-policy-management-tests/test-security-pm-01.md).

# TEST: SECURITY-PM-01

Testing the successful creation of a new policy.

## References

* [Security Policy Management](broken://pages/-LyJMeXTqUGM9ThfTS7k)

## Discussion

This is a basic test to demonstrate that the UI components appear and operate correctly when creating a new policy.

## 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

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Md4utTzrmShq9Gqe2ub%2F-Md59tofFzLZAXZJGJEF%2F1.jpg?alt=media\&token=4396615e-8c7e-43be-8218-fdc677d38e87)

2- Fill out the fields appropriately and click the **Save** button.(keep in mind that OID field and Name field are required fields )

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Md4utTzrmShq9Gqe2ub%2F-Md5FP4wUXq4JaS4O-ql%2F3.jpg?alt=media\&token=dd3f43f0-0718-4ccf-b382-38c96e443ff3)

## 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 navigate to Policy Management Index page.
* Should momentarily display success message in the top right corner
* Should appear New Policy(**Create-Policy-Test**) in the table of policies on the Index page with properties matching those put in the form required to create a new policy.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Md4utTzrmShq9Gqe2ub%2F-Md5Lj2PMtstPQst0df-%2F4.jpg?alt=media\&token=d004c7b0-5f8d-45f6-8ee3-15c23399b2e4)
