Skip to content

Commit e2cae2b

Browse files
committed
tweaks to test
1 parent 70c4a40 commit e2cae2b

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

pkg/provisioning/service_test.go

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func TestService_Delete(t *testing.T) {
480480
is.NoErr(err)
481481
}
482482

483-
func TestService_ReloadYaml(t *testing.T) {
483+
func TestService_UpsertYaml(t *testing.T) {
484484
is := is.New(t)
485485
ctx, cancel := context.WithCancel(context.Background())
486486
defer cancel()
@@ -633,17 +633,10 @@ pipelines:
633633
is.Equal(pipeline.Config.Name, "Test Pipeline")
634634
is.Equal(pipeline.Config.Description, tc.description)
635635

636-
// Get the destination connector and verify its path setting
637-
destConnID := ""
638-
for _, connID := range pipeline.ConnectorIDs {
639-
conn, err := connService.Get(ctx, connID)
640-
is.NoErr(err)
641-
if conn.ID == "test-pipeline:destination" {
642-
destConnID = conn.ID
643-
is.Equal(conn.Config.Settings["path"], tc.outputPath)
644-
}
645-
}
646-
is.True(destConnID != "")
636+
// Get the destination connector directly and verify its path setting
637+
destConn, err := connService.Get(ctx, "test-pipeline:destination")
638+
is.NoErr(err)
639+
is.Equal(destConn.Config.Settings["path"], tc.outputPath)
647640
}
648641
}
649642

0 commit comments

Comments
 (0)