aboutsummaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2022-09-21 10:51:21 -0400
committerChris Evich <cevich@redhat.com>2022-09-21 14:14:55 -0400
commitba6f84666ba601480951248a48d233eff2880ec1 (patch)
treea5cff50ad7a4fd0d923f8dc97326a5b28261b54b /test/e2e
parent12655484e39eadbc0fa0607542aa4a49a21013a1 (diff)
downloadpodman-ba6f84666ba601480951248a48d233eff2880ec1.tar.gz
podman-ba6f84666ba601480951248a48d233eff2880ec1.tar.bz2
podman-ba6f84666ba601480951248a48d233eff2880ec1.zip
Fix a few missed io/ioutil -> os updates
Ref: https://github.com/containers/podman/pull/15871 Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/libpod_suite_test.go3
-rw-r--r--test/e2e/secret_test.go2
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})