Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 3, 2024
1 parent 2df65f5 commit 61d67eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions cmd/cloudx/identity/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ func TestListIdentities(t *testing.T) {
t.Run("is not able to list identities if not authenticated and quiet flag", func(t *testing.T) {
configDir := testhelpers.NewConfigDir(t)
cmd := testhelpers.ConfigAwareCmd(configDir)
_, _, err := cmd.Exec(nil, "list", "identities", "--quiet", "--project", project, "--page-size=5")
_, _, err := cmd.Exec(nil, "list", "identities", "--quiet", "--project", project, "--page-size=5", "--consistency", "eventual")
require.ErrorIs(t, err, client.ErrNoConfigQuiet)
})

for _, proc := range []string{"list", "ls"} {
t.Run(fmt.Sprintf("is able to %s identities", proc), func(t *testing.T) {
stdout, stderr, err := defaultCmd.Exec(nil, proc, "identities", "--format", "json", "--project", project, "--page-size=5")
stdout, stderr, err := defaultCmd.Exec(nil, proc, "identities", "--format", "json", "--project", project, "--page-size=5", "--consistency", "eventual")
require.NoError(t, err, stderr)
out := gjson.Parse(stdout)
assert.True(t, gjson.Valid(stdout))
Expand All @@ -40,7 +40,7 @@ func TestListIdentities(t *testing.T) {

t.Run("is able to list identities after authenticating", func(t *testing.T) {
cmd, r := testhelpers.WithReAuth(t, defaultEmail, defaultPassword)
stdout, stderr, err := cmd.Exec(r, "ls", "identities", "--format", "json", "--project", project, "--page-size=5")
stdout, stderr, err := cmd.Exec(r, "ls", "identities", "--format", "json", "--project", project, "--page-size=5", "--consistency", "eventual")
require.NoError(t, err, stderr)
assert.True(t, gjson.Valid(stdout))
out := gjson.Parse(stdout)
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ require (
github.com/ory/gochimp3 v0.0.0-20200417124117-ccd242db3655
github.com/ory/graceful v0.1.4-0.20230301144740-e222150c51d0
github.com/ory/herodot v0.10.3-0.20230807143059-27cd6936499b
github.com/ory/hydra-client-go v1.11.9-0.20221102130300-f558e85344c8
github.com/ory/hydra-client-go/v2 v2.2.0-rc.3
github.com/ory/hydra/v2 v2.2.0-rc.3.0.20231228130905-8e9492998d16
github.com/ory/jsonschema/v3 v3.0.8
github.com/ory/keto v0.11.1-alpha.0.0.20231228131228-b2c3464bdc4f
github.com/ory/kratos v1.0.1-0.20231228143708-ae8cbdc27ff1
github.com/ory/kratos v1.0.1-0.20240103152350-42b034d032e6
github.com/ory/x v0.0.608
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/pkg/errors v0.9.1
Expand Down Expand Up @@ -215,7 +215,6 @@ require (
github.com/ory/fosite v0.44.1-0.20231218095112-ac9ae4bd99d7 // indirect
github.com/ory/go-acc v0.2.9-0.20230103102148-6b1c9a70dbbe // indirect
github.com/ory/go-convenience v0.1.0 // indirect
github.com/ory/hydra-client-go/v2 v2.2.0-rc.3 // indirect
github.com/ory/keto/proto v0.11.1-alpha.0 // indirect
github.com/ory/kratos-client-go v1.0.0 // indirect
github.com/ory/mail/v3 v3.0.0 // indirect
Expand Down
7 changes: 2 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,6 @@ github.com/ory/graceful v0.1.4-0.20230301144740-e222150c51d0 h1:VMUeLRfQD14fOMvh
github.com/ory/graceful v0.1.4-0.20230301144740-e222150c51d0/go.mod h1:hg2iCy+LCWOXahBZ+NQa4dk8J2govyQD79rrqrgMyY8=
github.com/ory/herodot v0.10.3-0.20230807143059-27cd6936499b h1:AEUyF55UrqTuhJh72I9azACdJrRrDBBjK/XWgVxuQvY=
github.com/ory/herodot v0.10.3-0.20230807143059-27cd6936499b/go.mod h1:MMNmY6MG1uB6fnXYFaHoqdV23DTWctlPsmRCeq/2+wc=
github.com/ory/hydra-client-go v1.11.9-0.20221102130300-f558e85344c8 h1:lxE11nBH6k0DvE1GMhWnZewGLAqVMSDj7cUhdHr9BHI=
github.com/ory/hydra-client-go v1.11.9-0.20221102130300-f558e85344c8/go.mod h1:4YuBuwUEC4yiyDrnKjGYc1tB3gUXan4ZiUYMjXJbfxA=
github.com/ory/hydra-client-go/v2 v2.2.0-rc.3 h1:0AT8RYiPhT/+brKMSIX/0guSlDK3tg1AcXZgrb5F/tw=
github.com/ory/hydra-client-go/v2 v2.2.0-rc.3/go.mod h1:BS2mJTU+3d+Ii4JXLHlXcjS/BBSIu8OEH0AO71rAVt0=
github.com/ory/hydra/v2 v2.2.0-rc.3.0.20231228130905-8e9492998d16 h1:/apGQeFxt/1UZHNdXmfv6Qb8Y0o9cadDr4rFXJqE8Hw=
Expand All @@ -908,8 +906,8 @@ github.com/ory/keto v0.11.1-alpha.0.0.20231228131228-b2c3464bdc4f h1:yAsriF/AhB+
github.com/ory/keto v0.11.1-alpha.0.0.20231228131228-b2c3464bdc4f/go.mod h1:pZP9ao8GJ4r3dvNtoXZqXR1cZHSJa2x4VFKQaPH5myg=
github.com/ory/keto/proto v0.11.1-alpha.0.0.20231229091411-ac44cabd79b7 h1:qHgWDFJ642DUYj7fMUs7pRTqr1oM7Hqw26qnxB9lvlk=
github.com/ory/keto/proto v0.11.1-alpha.0.0.20231229091411-ac44cabd79b7/go.mod h1:6RagCXA7X1hhFSVjcy13ruIo8Dq/nj4J0mcN92qL+hY=
github.com/ory/kratos v1.0.1-0.20231228143708-ae8cbdc27ff1 h1:pO3Qo0DIQDvT7QsC+EWb2kOetMrTfiJtMUKf7wj0UmA=
github.com/ory/kratos v1.0.1-0.20231228143708-ae8cbdc27ff1/go.mod h1:8CnmDmBUkWeGSd9fB9MG+sH5Y8msJVVl+avY2TZgTDI=
github.com/ory/kratos v1.0.1-0.20240103152350-42b034d032e6 h1:lf0HTAi0XEkM9wyDrJ3DOpTV1O+cyW+GNK9Ni1AA+jA=
github.com/ory/kratos v1.0.1-0.20240103152350-42b034d032e6/go.mod h1:8CnmDmBUkWeGSd9fB9MG+sH5Y8msJVVl+avY2TZgTDI=
github.com/ory/kratos-client-go v1.0.0 h1:mm32FMJrt4pBv2KEuhuNtiewJApc8c1Kmz0+WFHhOMA=
github.com/ory/kratos-client-go v1.0.0/go.mod h1:a2Tl4cgQAxsjR59w3EfnH5hengabjXUHiEVDzdqiZI0=
github.com/ory/mail v2.3.1+incompatible/go.mod h1:87D9/1gB6ewElQoN0lXJ0ayfqcj3cW3qCTXh+5E9mfU=
Expand Down Expand Up @@ -1373,7 +1371,6 @@ golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.0.0-20210810183815-faf39c7919d5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.15.0 h1:s8pnnxNVzjWyrvYdFUQq5llS1PX2zhPXmccZv99h7uQ=
Expand Down

0 comments on commit 61d67eb

Please sign in to comment.