@@ -3,7 +3,6 @@ package exec
33import (
44 "encoding/json"
55 "fmt"
6- "os"
76
87 ginkgo "github.com/onsi/ginkgo/v2"
98 . "github.com/onsi/gomega"
@@ -16,13 +15,6 @@ var _ = ginkgo.Describe("Exec Scraper - Git Checkout Integration", ginkgo.Ordere
1615 // Load fixture from fixtures directory
1716 scrapeConfig := getConfigSpec ("exec-git-checkout-test" )
1817
19- // Get absolute path to config-db repository for git checkout
20- repoPath , err := os .Getwd ()
21- Expect (err ).NotTo (HaveOccurred ())
22-
23- // Update checkout URL to use local repository via file:// protocol
24- scrapeConfig .Spec .Exec [0 ].Checkout .URL = fmt .Sprintf ("file://%s" , repoPath )
25-
2618 // Create context using DefaultContext from suite
2719 scraperCtx := api .NewScrapeContext (DefaultContext ).WithScrapeConfig (& scrapeConfig )
2820
@@ -43,7 +35,7 @@ var _ = ginkgo.Describe("Exec Scraper - Git Checkout Integration", ginkgo.Ordere
4335 configStr , ok := results [0 ].Config .(string )
4436 Expect (ok ).To (BeTrue (), "Config should be a string" )
4537 var config1 map [string ]any
46- err = json .Unmarshal ([]byte (configStr ), & config1 )
38+ err : = json .Unmarshal ([]byte (configStr ), & config1 )
4739 Expect (err ).NotTo (HaveOccurred ())
4840 Expect (config1 ["id" ]).To (Equal ("config-1" ))
4941 Expect (config1 ["type" ]).To (Equal ("Custom::Config" ))
0 commit comments