mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:57:31 +00:00
feat(storage): read only transactions (#6417)
feat(storage): read only transactions for queries (#6415) * fix: tests * bastle wie en grosse * fix(database): scan as callback * fix tests * fix merge failures * remove as of system time * refactor: remove unused test * refacotr: remove unused lines
This commit is contained in:
@@ -1115,7 +1115,7 @@ func Test_AppsPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*App)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
@@ -1140,7 +1140,7 @@ func Test_AppPrepare(t *testing.T) {
|
||||
name: "prepareAppQuery no result",
|
||||
prepare: prepareAppQuery,
|
||||
want: want{
|
||||
sqlExpectations: mockQueries(
|
||||
sqlExpectations: mockQueriesScanErr(
|
||||
expectedAppQuery,
|
||||
nil,
|
||||
nil,
|
||||
@@ -1747,7 +1747,7 @@ func Test_AppPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*App)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
@@ -1833,7 +1833,7 @@ func Test_AppIDsPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*App)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
@@ -1858,7 +1858,7 @@ func Test_ProjectIDByAppPrepare(t *testing.T) {
|
||||
name: "prepareProjectIDByAppQuery no result",
|
||||
prepare: prepareProjectIDByAppQuery,
|
||||
want: want{
|
||||
sqlExpectations: mockQueries(
|
||||
sqlExpectations: mockQueriesScanErr(
|
||||
expectedProjectIDByAppQuery,
|
||||
nil,
|
||||
nil,
|
||||
@@ -1899,7 +1899,7 @@ func Test_ProjectIDByAppPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: "",
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
@@ -1924,7 +1924,7 @@ func Test_ProjectByAppPrepare(t *testing.T) {
|
||||
name: "prepareProjectByAppQuery no result",
|
||||
prepare: prepareProjectByAppQuery,
|
||||
want: want{
|
||||
sqlExpectations: mockQueries(
|
||||
sqlExpectations: mockQueriesScanErr(
|
||||
expectedProjectByAppQuery,
|
||||
nil,
|
||||
nil,
|
||||
@@ -2097,7 +2097,7 @@ func Test_ProjectByAppPrepare(t *testing.T) {
|
||||
return nil, true
|
||||
},
|
||||
},
|
||||
object: nil,
|
||||
object: (*Project)(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
Reference in New Issue
Block a user