Skip to content

Commit

Permalink
ci: use certificate auth on native
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrinds committed Apr 7, 2023
1 parent af1cbca commit af8d2aa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions integration/test/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,16 @@ func RemoveDir(dir string) error {
}

func UseCertFile(harvestHome string) {
harvestFile := "harvest.yml"
// Copy harvest_cert_2023.yml from /u/ to local
harvestCertFile := "harvest_cert_2023.yml"
RemoveSafely(harvestFile)
err := CopyFile(harvestCertFile, harvestFile)
if err != nil {
PanicIfNotNil(err)
}
harvestFile := "harvest.yml"
Run("cp", "-p", GetConfigDir()+"/"+harvestCertFile, harvestHome, harvestFile)
Run("certer", "-ip", "10.193.48.11")

path := harvestHome + "/cert"
log.Info().Str("path", path).Msg("Copy certificate files")
if FileExists(path) {
err = RemoveDir(path)
err := RemoveDir(path)
PanicIfNotNil(err)
}
Run("mkdir", "-p", path)
Expand Down

0 comments on commit af8d2aa

Please sign in to comment.