# TEST: SECURITY-PM-03

## 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 using invalid OID format.

## 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-Me2dutVJIwY7OEfYyNf%2F-Me2f3Aa1b3Eqb0HNHvc%2F1.jpg?alt=media\&token=00efe706-16d9-4341-97ce-086956a0de0f)

2- Fill out all the fields appropriately and use the incorrect format for OID field and click the **Save** button.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me2dutVJIwY7OEfYyNf%2F-Me2gahaoXV9gxQ3zOqN%2F3.jpg?alt=media\&token=08181046-0453-49fc-b53b-93fd0512beb0)

## 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-Me2dutVJIwY7OEfYyNf%2F-Me2fEk8BqyT9VhR2m3p%2Fdnld1.jpg?alt=media\&token=9776a332-518c-4c3a-b098-94ba5f60aa8e)

2- Should show an error message below OID field indicating that OID format is invalid.

![](https://3421852694-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ0_pjgTp_kx4hqTZ3a%2F-Me2dutVJIwY7OEfYyNf%2F-Me2hPT4bO40ahlo8D9W%2F4.jpg?alt=media\&token=b0e62608-7d6c-4b84-a7b8-6614f8032b53)
