diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-21 22:02:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 22:02:30 +0200 |
commit | ecaefee43495eed3e387b5cdbd416d85ddaa2254 (patch) | |
tree | a5cff50ad7a4fd0d923f8dc97326a5b28261b54b /test/e2e | |
parent | 12655484e39eadbc0fa0607542aa4a49a21013a1 (diff) | |
parent | ba6f84666ba601480951248a48d233eff2880ec1 (diff) | |
download | podman-ecaefee43495eed3e387b5cdbd416d85ddaa2254.tar.gz podman-ecaefee43495eed3e387b5cdbd416d85ddaa2254.tar.bz2 podman-ecaefee43495eed3e387b5cdbd416d85ddaa2254.zip |
Merge pull request #15890 from cevich/more_ioutil_fixes
Fix a few missed io/ioutil -> os updates
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/libpod_suite_test.go | 3 | ||||
-rw-r--r-- | test/e2e/secret_test.go | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go index ecb7a2278..b797fbb89 100644 --- a/test/e2e/libpod_suite_test.go +++ b/test/e2e/libpod_suite_test.go @@ -5,7 +5,6 @@ package integration import ( "fmt" - "io/ioutil" "os" "path/filepath" @@ -48,7 +47,7 @@ func (p *PodmanTestIntegration) setDefaultRegistriesConfigEnv() { func (p *PodmanTestIntegration) setRegistriesConfigEnv(b []byte) { outfile := filepath.Join(p.TempDir, "registries.conf") os.Setenv("CONTAINERS_REGISTRIES_CONF", outfile) - err := ioutil.WriteFile(outfile, b, 0644) + err := os.WriteFile(outfile, b, 0644) Expect(err).ToNot(HaveOccurred()) } diff --git a/test/e2e/secret_test.go b/test/e2e/secret_test.go index e28d415db..286815e67 100644 --- a/test/e2e/secret_test.go +++ b/test/e2e/secret_test.go @@ -311,7 +311,7 @@ var _ = Describe("Podman secret", func() { It("podman secret with labels", func() { secretFilePath := filepath.Join(podmanTest.TempDir, "secret") - err := ioutil.WriteFile(secretFilePath, []byte("mysecret"), 0755) + err := os.WriteFile(secretFilePath, []byte("mysecret"), 0755) Expect(err).To(BeNil()) session := podmanTest.Podman([]string{"secret", "create", "--label", "foo=bar", "a", secretFilePath}) |