File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments