-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Update to Rego v1 + add explicit --addr param for OPA fixture. (#…
…96) Signed-off-by: Philip Conrad <philip@chariot-chaser.net>
- Loading branch information
1 parent
7364cba
commit 6b5e7d7
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package system | ||
|
||
import rego.v1 | ||
|
||
# This is used to exercise the default query functionality. | ||
|
||
msg := "this is the default path" | ||
|
||
main := x { | ||
main := x if { | ||
x := {"msg": msg, "echo": input} | ||
} else { | ||
} else if { | ||
x := {"msg": msg} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package this["is/allowed"].pkg | ||
|
||
import rego.v1 | ||
|
||
allow := true |