Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alishakawaguchi committed Oct 24, 2024
1 parent 41794bd commit f6e1087
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion backend/pkg/integration-test/integration-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ func (s *NeosyncApiTestClient) Setup(ctx context.Context, t *testing.T) error {
)

unauthdTransformersService := v1alpha1_transformersservice.New(
&v1alpha1_transformersservice.Config{},
&v1alpha1_transformersservice.Config{
IsPresidioEnabled: true,
IsNeosyncCloud: false,
},
neosyncdb.New(pgcontainer.DB, db_queries.New()),
unauthdUserService,
s.Mocks.Presidio.Entities,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ func GetSyncTests() []*workflow_testdata.IntegrationTest {
return []*workflow_testdata.IntegrationTest{
{
Name: "All datatypes passthrough",
Folder: "mysql/all-types",
Folder: "testdata/mysql/all-types",
SourceFilePaths: []string{"create.sql", "insert.sql"},
TargetFilePaths: []string{"create-dbs.sql"},
JobMappings: GetDefaultSyncJobMappings(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func GetSyncTests() []*workflow_testdata.IntegrationTest {
return []*workflow_testdata.IntegrationTest{
{
Name: "Composite key transformation + truncate",
Folder: "mysql/composite-keys",
Folder: "testdata/mysql/composite-keys",
SourceFilePaths: []string{"create.sql", "insert.sql"},
TargetFilePaths: []string{"create.sql", "insert.sql"},
JobMappings: getPkTransformerJobmappings(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func GetSyncTests() []*workflow_testdata.IntegrationTest {
return []*workflow_testdata.IntegrationTest{
{
Name: "Init Schema",
Folder: "mysql/init-schema",
Folder: "testdata/mysql/init-schema",
SourceFilePaths: []string{"create.sql", "insert.sql"},
TargetFilePaths: []string{"create-dbs.sql"},
JobMappings: getJobmappings(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func GetSyncTests() []*workflow_testdata.IntegrationTest {
return []*workflow_testdata.IntegrationTest{
{
Name: "multiple databases sync + init schema",
Folder: "mysql/multiple-dbs",
Folder: "testdata/mysql/multiple-dbs",
SourceFilePaths: []string{"create-dbs.sql", "create.sql", "insert.sql"},
TargetFilePaths: []string{"create-dbs.sql"},
JobMappings: GetDefaultSyncJobMappings(),
Expand Down

0 comments on commit f6e1087

Please sign in to comment.