mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Updated some tests
This commit is contained in:
parent
39dd2e7bed
commit
8e349cabd9
2 changed files with 3 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ func TestCreateABACPolicyEnforcer(t *testing.T) {
|
|||
t.Errorf("Result was not false!")
|
||||
}
|
||||
|
||||
result, err = enf.S.Decision(enf.CTX, sdk.DecisionOptions{Path: "/featurebase/authz/allow", Input: map[string]interface{}{"method": "SELECT", "path": "index_a", "user": "fletcher"}})
|
||||
result, err = enf.S.Decision(enf.CTX, sdk.DecisionOptions{Path: "/featurebase/authz/allow", Input: map[string]interface{}{"method": "SELECT", "index": "index_a", "user": "fletcher"}})
|
||||
|
||||
if err != nil {
|
||||
t.Errorf("Error testing OPA decision: %s", err)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ default allow = false
|
|||
|
||||
allow {
|
||||
input.method = "SELECT"
|
||||
input.path = "index_a"
|
||||
input.index = "index_a"
|
||||
input.user = "fletcher"
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue