Updated test to use PerTagPolicy with default gql user tag

graph-rework-2
noah metz 2023-07-21 13:56:44 -06:00
parent 34549f471a
commit 767fc0bd3c
1 changed files with 1 additions and 1 deletions

@ -157,7 +157,7 @@ func TestGQLAuth(t * testing.T) {
key, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) key, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
fatalErr(t, err) fatalErr(t, err)
p1_r := NewSimplePolicy(RandID(), NewNodeActions(nil, []string{"*"})) p1_r := NewPerTagPolicy(RandID(), map[string]NodeActions{"gql": NewNodeActions(nil, []string{"*"})})
p1 := &p1_r p1 := &p1_r
gql_t_r := NewGQLThread(RandID(), "GQL Thread", "init", ":0", ecdh.P256(), key, nil, nil) gql_t_r := NewGQLThread(RandID(), "GQL Thread", "init", ":0", ecdh.P256(), key, nil, nil)