Skip to content

Commit

Permalink
policy formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMure committed Sep 16, 2024
1 parent 7cead1b commit 646127a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions delegate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/libp2p/go-libp2p/core/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/ucan-wg/go-ucan"
"github.com/ucan-wg/go-ucan/capability/command"
"github.com/ucan-wg/go-ucan/capability/policy"
Expand All @@ -30,16 +31,16 @@ const (
subJectCmd = "/foo/bar"
subjectPol = `
[
["==", ".status", "draft"],
["all", ".reviewer", [
["like", ".email", "*@example.com"]]
],
["any", ".tags", [
["==", ".status", "draft"],
["all", ".reviewer", [
["like", ".email", "*@example.com"]
]],
["any", ".tags", [
["or", [
["==", ".", "news"],
["==", ".", "press"]]
]]
]
["==", ".", "press"]
]]
]]
]
`
)
Expand Down

0 comments on commit 646127a

Please sign in to comment.