Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update
d-bytebase91e1f3f89de9
diff --git a/backend/tests/ghost_test.go b/backend/tests/ghost_test.goindex 09b2a46f21..f4eef583aa 100644--- a/backend/tests/ghost_test.go+++ b/backend/tests/ghost_test.go@@ -12,6 +12,7 @@ import ("testing""github.com/google/uuid"+ "google.golang.org/genproto/googleapis/type/expr""github.com/bytebase/bytebase/backend/common"api "github.com/bytebase/bytebase/backend/legacyapi"@@ -275,6 +276,16 @@ func TestGhostTenant(t *testing.T) {a.Equal(testTenantNumber, len(testDatabases))a.Equal(prodTenantNumber, len(prodDatabases))+ databaseGroup, err := ctl.databaseGroupServiceClient.CreateDatabaseGroup(ctx, &v1pb.CreateDatabaseGroupRequest{+ Parent: project.Name,+ DatabaseGroupId: "all",+ DatabaseGroup: &v1pb.DatabaseGroup{+ DatabasePlaceholder: "all",+ DatabaseExpr: &expr.Expr{Expression: "true"},+ },+ })+ a.NoError(err)+sheet1, err := ctl.sheetServiceClient.CreateSheet(ctx, &v1pb.CreateSheetRequest{Parent: project.Name,Sheet: &v1pb.Sheet{@@ -290,7 +301,7 @@ func TestGhostTenant(t *testing.T) {Id: uuid.NewString(),Config: &v1pb.Plan_Spec_ChangeDatabaseConfig{ChangeDatabaseConfig: &v1pb.Plan_ChangeDatabaseConfig{- Target: fmt.Sprintf("%s/deploymentConfigs/default", project.Name),+ Target: databaseGroup.Name,Sheet: sheet1.Name,Type: v1pb.Plan_ChangeDatabaseConfig_MIGRATE,},@@ -329,7 +340,7 @@ func TestGhostTenant(t *testing.T) {Id: uuid.NewString(),Config: &v1pb.Plan_Spec_ChangeDatabaseConfig{ChangeDatabaseConfig: &v1pb.Plan_ChangeDatabaseConfig{- Target: fmt.Sprintf("%s/deploymentConfigs/default", project.Name),+ Target: databaseGroup.Name,Sheet: sheet2.Name,Type: v1pb.Plan_ChangeDatabaseConfig_MIGRATE_GHOST,},diff --git a/backend/tests/tenant_test.go b/backend/tests/tenant_test.goindex 5ee991bfad..e7eb543a8c 100644--- a/backend/tests/tenant_test.go+++ b/backend/tests/tenant_test.go@@ -8,6 +8,7 @@ import ("github.com/google/uuid""github.com/stretchr/testify/require"+ expr "google.golang.org/genproto/googleapis/type/expr""github.com/bytebase/bytebase/backend/common"api "github.com/bytebase/bytebase/backend/legacyapi"@@ -139,10 +140,19 @@ func TestTenant(t *testing.T) {}}}-a.Equal(testTenantNumber, len(testDatabases))a.Equal(prodTenantNumber, len(prodDatabases))+ databaseGroup, err := ctl.databaseGroupServiceClient.CreateDatabaseGroup(ctx, &v1pb.CreateDatabaseGroupRequest{+ Parent: project.Name,+ DatabaseGroupId: "all",+ DatabaseGroup: &v1pb.DatabaseGroup{+ DatabasePlaceholder: "all",+ DatabaseExpr: &expr.Expr{Expression: "true"},+ },+ })+ a.NoError(err)+sheet, err := ctl.sheetServiceClient.CreateSheet(ctx, &v1pb.CreateSheetRequest{Parent: project.Name,Sheet: &v1pb.Sheet{@@ -159,7 +169,7 @@ func TestTenant(t *testing.T) {Id: uuid.NewString(),Config: &v1pb.Plan_Spec_ChangeDatabaseConfig{ChangeDatabaseConfig: &v1pb.Plan_ChangeDatabaseConfig{- Target: fmt.Sprintf("%s/deploymentConfigs/default", project.Name),+ Target: databaseGroup.Name,Sheet: sheet.Name,Type: v1pb.Plan_ChangeDatabaseConfig_MIGRATE,},