(ns1, ns2 string)
| 68 | } |
| 69 | |
| 70 | func RandomTupleWithSubjectSet(ns1, ns2 string) *ketoapi.RelationTuple { |
| 71 | return &ketoapi.RelationTuple{ |
| 72 | Namespace: ns1, |
| 73 | Object: randx.MustString(8, randx.AlphaNum), |
| 74 | Relation: randx.MustString(8, randx.AlphaNum), |
| 75 | SubjectSet: &ketoapi.SubjectSet{ |
| 76 | Namespace: ns2, |
| 77 | Object: randx.MustString(8, randx.AlphaNum), |
| 78 | }, |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | func RandomTupleWithSubjectID(ns1 string) *ketoapi.RelationTuple { |
| 83 | return &ketoapi.RelationTuple{ |
no outgoing calls