# TEST: SECURITY-PM-01

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

## 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-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 )&#x20;

![](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-Md4utTzrmShq9Gqe2ub%2F-Md5B4zVgVV5YzGwIr-Y%2F2.jpg?alt=media\&token=98477ded-62f0-4f91-b41a-d469600d36fb)

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)

&#x20;  &#x20;
