> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metlo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generating Auth Tests

After making a testing config you can generate auth tests for your endpoints in just a couple steps.

### Specifying Entities

The first step is to specify the entities for your endpoint's datafields:

<img src="https://mintcdn.com/metlo/bLaSw1tiF6Fz1nHn/images/entity_select.png?fit=max&auto=format&n=bLaSw1tiF6Fz1nHn&q=85&s=c6602c1fe81970b356fd5cf942fe0a36" alt="entity_select" width="3808" height="2414" data-path="images/entity_select.png" />

## Making your Test

After you specify your entities you can generate a test using the `VALIDATE_AUTH_RULES` template.
You can do this in the UI on the testing tab for your endpoint:

<img src="https://mintcdn.com/metlo/bLaSw1tiF6Fz1nHn/images/validate_auth_rules_template.png?fit=max&auto=format&n=bLaSw1tiF6Fz1nHn&q=85&s=3bcf9c4ec8c8120d1b8649d46c4d57fe" alt="validate_auth_rules" width="3808" height="2414" data-path="images/validate_auth_rules_template.png" />

Or you can generate a test using the Metlo CLI:

```bash theme={null}
metlo test generate -t VALIDATE_AUTH_RULES -e <your-endpoint-uuid>
```
