diff --git a/go.mod b/go.mod index 1137ae6e..52830599 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,7 @@ require ( github.com/aserto-dev/go-authorizer v0.20.2 github.com/aserto-dev/go-directory v0.21.7 github.com/aserto-dev/go-directory-cli v0.20.13 - github.com/aserto-dev/go-edge-ds v0.21.8 + github.com/aserto-dev/go-edge-ds v0.21.9 github.com/aserto-dev/go-grpc v0.8.57 github.com/aserto-dev/header v0.0.5 github.com/aserto-dev/logger v0.0.4 diff --git a/go.sum b/go.sum index 0528b3e3..a8ba9e65 100644 --- a/go.sum +++ b/go.sum @@ -75,8 +75,8 @@ github.com/aserto-dev/go-directory v0.21.7 h1:eJXBz5zpOSmI99T+W0V4JufYeq87TbmiUt github.com/aserto-dev/go-directory v0.21.7/go.mod h1:xzUJUiyOcVj9B8Nd/nNYsIB0JSQps3IMuiPKejZkCnc= github.com/aserto-dev/go-directory-cli v0.20.13 h1:TepHQflnC8/czC7vhGe2wkP/EKgyJ/Q+S3fT6jrcVz8= github.com/aserto-dev/go-directory-cli v0.20.13/go.mod h1:wZUFVIF2gYZ7GfelEwy4ND5RX38kYqjVKEMvfo8A+xo= -github.com/aserto-dev/go-edge-ds v0.21.8 h1:iweQdItEt6rRPDBjOZu6ONF+93VvxmV1kzaWORrwqJs= -github.com/aserto-dev/go-edge-ds v0.21.8/go.mod h1:Y+i0v4GoTZA+KvTdTe6QQ8dkheM8wu05EArODelKdn4= +github.com/aserto-dev/go-edge-ds v0.21.9 h1:cfpSBT8xOYbIJJLhNMOvC22cItzuMXuxDc2tW2VBqjA= +github.com/aserto-dev/go-edge-ds v0.21.9/go.mod h1:Y+i0v4GoTZA+KvTdTe6QQ8dkheM8wu05EArODelKdn4= github.com/aserto-dev/go-grpc v0.8.57 h1:CjQVxZ2HkBvJrfCtaDeq2kZSn2yLmRel5kHCVzqRMLs= github.com/aserto-dev/go-grpc v0.8.57/go.mod h1:2FcclMDheTsEvYCY72o+EwTaoO0ti3/it4G6xIlzNIM= github.com/aserto-dev/go-http-metrics v0.10.1-20221024-1 h1:nONd24V5nyJ0IIw8QE+OKv30YuHOTNbJ4FsvczLaM8o= diff --git a/pkg/testing/assets/assertions.json b/pkg/testing/assets/assertions.json index 9c119db0..e69cf963 100644 --- a/pkg/testing/assets/assertions.json +++ b/pkg/testing/assets/assertions.json @@ -1,29 +1,29 @@ { "assertions": [ {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"admin"}},"expected":true}, - {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"evil_genius"}},"expected":true}, - {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"editor"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"viewer"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"evil_genius"}},"expected":true}, + {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"editor"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"rick@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"viewer"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"admin"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"editor"}},"expected":true}, - {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"viewer"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"admin"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"editor"}},"expected":true}, + {"check_relation":{"subject":{"type":"user","key":"morty@the-citadel.com"},"relation":{"name":"member"},"object":{"type":"group","key":"viewer"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"admin"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"editor"}},"expected":true}, - {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"viewer"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"admin"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"editor"}},"expected":true}, + {"check_relation":{"subject":{"type":"user","key":"summer@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"viewer"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"admin"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"editor"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"viewer"}},"expected":true}, + {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"admin"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"editor"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"beth@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"viewer"}},"expected":true}, - {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"admin"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"editor"}},"expected":false}, - {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member","object_type":"group"},"object":{"type":"group","key":"viewer"}},"expected":true}, + {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"admin"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"evil_genius"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"editor"}},"expected":false}, + {"check_relation":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"relation":{"name":"member"},"object":{"type":"group","key":"viewer"}},"expected":true}, {"check_permission":{"subject":{"type":"user","key":"jerry@the-smiths.com"},"permission":{"name":"owner"},"object":{"type":"group","key":"viewer"}},"expected":false} ]