fix: compatibility for cockroach v22.1 (#3754)

* fix: compatability for cockroach v22.1

* update cr version in docs and compose

* bind dev cockroach to 127.0.0.1

* Revert "bind dev cockroach to 127.0.0.1"

This reverts commit 1c7c6304ae6682801f8475a8eac91569442b6b8d.

* remove --listen-addr flag

* use v2.0.0-v2-alpha.16

* use v2.0.0-v2-alpha.17

Co-authored-by: Elio Bischof <[email protected]>
This commit is contained in:
Livio Amstutz
2022-06-01 11:41:01 +02:00
committed by GitHub
co-authored by Elio Bischof
parent 66b6ef7f04
commit 32afa77b97
7 changed files with 19 additions and 17 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ func Test_verifyUser(t *testing.T) {
args: args{
db: prepareDB(t,
expectExists("SELECT EXISTS(SELECT username FROM [show roles] WHERE username = $1)", false, "zitadel-user"),
expectExec("CREATE USER $1 WITH PASSWORD $2", sql.ErrTxDone, "zitadel-user", nil),
expectExec("CREATE USER zitadel-user WITH PASSWORD $1", sql.ErrTxDone, nil),
),
username: "zitadel-user",
password: "",
@@ -43,7 +43,7 @@ func Test_verifyUser(t *testing.T) {
args: args{
db: prepareDB(t,
expectExists("SELECT EXISTS(SELECT username FROM [show roles] WHERE username = $1)", false, "zitadel-user"),
expectExec("CREATE USER $1 WITH PASSWORD $2", nil, "zitadel-user", nil),
expectExec("CREATE USER zitadel-user WITH PASSWORD $1", nil, nil),
),
username: "zitadel-user",
password: "",
@@ -55,7 +55,7 @@ func Test_verifyUser(t *testing.T) {
args: args{
db: prepareDB(t,
expectExists("SELECT EXISTS(SELECT username FROM [show roles] WHERE username = $1)", false, "zitadel-user"),
expectExec("CREATE USER $1 WITH PASSWORD $2", nil, "zitadel-user", "password"),
expectExec("CREATE USER zitadel-user WITH PASSWORD $1", nil, "password"),
),
username: "zitadel-user",
password: "password",