@@ -432,24 +432,21 @@ func CreateTestProjectFromZipAndChdir(t *testing.T, projectPath string) (string,
432432// Make sure to call this function before running any tests that require the analyzer manager binary.
433433func PrepareAnalyzerManagerResource () (err error ) {
434434 if localPath := os .Getenv (configTests .TestJfrogLocalAnalyzerManagerDirEnvVar ); localPath != "" {
435- // Copy the analyzer manager binary to the current JFrog Home.
436435 amLocalPath , err := jas .GetAnalyzerManagerDirAbsolutePath ()
437436 if err != nil {
438437 return fmt .Errorf ("failed to get analyzer manager local path: %w" , err )
439438 }
440- // if exists, no need to copy
441439 if exist , err := fileutils .IsDirExists (amLocalPath , false ); err != nil || exist {
442440 return err
443441 }
444442 if err := biutils .CopyDir (localPath , amLocalPath , true , []string {}); err != nil {
445443 return fmt .Errorf ("failed to copy analyzer manager from %s to %s: %w" , localPath , amLocalPath , err )
446444 }
447445 }
448- // Download the analyzer manager binary if it doesn't exist to current JFrog Home.
449446 return jas .DownloadAnalyzerManagerIfNeeded (0 )
450447}
451448
452- func PrepareIndexerResource (details * config.ServerDetails ) (err error ) {
449+ func PrepareIndexerAppResource (details * config.ServerDetails ) (err error ) {
453450 manager , version , err := xrayUtils .CreateXrayServiceManagerAndGetVersion (details )
454451 if err != nil {
455452 return fmt .Errorf ("failed to create Xray service manager: %w" , err )
0 commit comments