Skip to content

Commit

Permalink
Remove deprecated ioutil and use os instead
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Giese <tobias.giese@mercedes-benz.com>
  • Loading branch information
tobiasgiese committed Jul 27, 2022
1 parent 49ffd32 commit 5cda7ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/shared/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"flag"
"fmt"
"io/fs"
"io/ioutil"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -73,10 +72,10 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
return nil
}

sourceTemplate, err := ioutil.ReadFile(f)
sourceTemplate, err := os.ReadFile(f)
Expect(err).NotTo(HaveOccurred())

platformKustomization, err := ioutil.ReadFile(filepath.Join(e2eCtx.Settings.DataFolder, "ci-artifacts-platform-kustomization.yaml"))
platformKustomization, err := os.ReadFile(filepath.Join(e2eCtx.Settings.DataFolder, "ci-artifacts-platform-kustomization.yaml"))
Expect(err).NotTo(HaveOccurred())

ciTemplate, err := kubernetesversions.GenerateCIArtifactsInjectedTemplateForDebian(
Expand Down

0 comments on commit 5cda7ed

Please sign in to comment.