Skip to content

Commit 7ed8540

Browse files
authored
Merge pull request #41 from j-fuentes/doc-preflight-test
Update manual now that 'preflight package test' is a feature
2 parents dde2e5f + 0241315 commit 7ed8540

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/how_to_write_packages.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,10 @@ test_explicit_image_tag_latest_tag {
186186
}
187187
```
188188

189-
Soon, Preflight will be able to run Rego tests inside Preflight packages (#26), but unfortunately this is not possible yet.
190-
191-
To run our tests, we must use the [OPA command line](https://www.openpolicyagent.org/docs/latest/#running-opa) like this:
189+
To run the tests, you can execute preflight as follows:
192190

193191
```
194-
opa test -v --explain=notes ./preflight-packages/examples.jetstack.io/podsbestpractices
192+
preflight package test ./preflight-packages/examples.jetstack.io/podsbestpractices
195193
```
196194

197195
## Lint your packages

0 commit comments

Comments
 (0)