File tree Expand file tree Collapse file tree 7 files changed +15
-22
lines changed Expand file tree Collapse file tree 7 files changed +15
-22
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
"strings"
9
8
@@ -54,8 +53,8 @@ var _ = Describe("Add Command", func() {
54
53
55
54
// copy if copy is true. otherwise it will be fresh empty config file
56
55
if copy {
57
- original , _ := ioutil .ReadFile ("../testdata/config.yaml" )
58
- ioutil .WriteFile (testConfigFile , original , 0644 )
56
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
57
+ os .WriteFile (testConfigFile , original , 0644 )
59
58
}
60
59
61
60
cmd .SetArgs (args ) // set the arg for each test case
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
9
8
. "github.com/onsi/ginkgo/v2"
@@ -56,8 +55,8 @@ var _ = Describe("Edit Command", func() {
56
55
57
56
// copy if copy is true. otherwise it will be fresh empty config file
58
57
if copy {
59
- oiginal , _ := ioutil .ReadFile ("../testdata/config.yaml" )
60
- ioutil .WriteFile (testConfigFile , oiginal , 0644 )
58
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
59
+ os .WriteFile (testConfigFile , original , 0644 )
61
60
}
62
61
63
62
cmd .SetArgs (args ) // set the arg for each test case
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
"strings"
9
8
@@ -54,8 +53,8 @@ var _ = Describe("Edit Command", func() {
54
53
55
54
// copy if copy is true. otherwise it will be fresh empty config file
56
55
if copy {
57
- oiginal , _ := ioutil .ReadFile ("../testdata/config.yaml" )
58
- ioutil .WriteFile (testConfigFile , oiginal , 0644 )
56
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
57
+ os .WriteFile (testConfigFile , original , 0644 )
59
58
}
60
59
61
60
cmd .SetArgs (args ) // set the arg for each test case
@@ -86,7 +85,7 @@ var _ = Describe("Edit Command", func() {
86
85
})
87
86
})
88
87
89
- When ("edit profile that is not exisiting " , func () {
88
+ When ("edit profile that is not existing " , func () {
90
89
profileName := "lab.cluster1"
91
90
envs := []string {"env1=var1" , "env2=var2" }
92
91
BeforeEach (func () {
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
"testing"
9
8
@@ -133,8 +132,8 @@ var _ = Describe("Root Command", func() {
133
132
134
133
// copy if copy is true. otherwise it will be fresh empty config file
135
134
if copy {
136
- oiginal , _ := ioutil .ReadFile ("../testdata/config.yaml" )
137
- ioutil .WriteFile (testConfigFile , oiginal , 0644 )
135
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
136
+ os .WriteFile (testConfigFile , original , 0644 )
138
137
}
139
138
140
139
cmd .SetArgs (args ) // set the arg for each test case
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
9
8
. "github.com/onsi/ginkgo/v2"
@@ -53,8 +52,8 @@ var _ = Describe("Show", func() {
53
52
54
53
// copy if copy is true. otherwise it will be fresh empty config file
55
54
if copy {
56
- oiginal , _ := ioutil .ReadFile ("../testdata/config.yaml" )
57
- ioutil .WriteFile (testConfigFile , oiginal , 0644 )
55
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
56
+ os .WriteFile (testConfigFile , original , 0644 )
58
57
}
59
58
60
59
cmd .SetArgs (args ) // set the arg for each test case
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
9
8
. "github.com/onsi/ginkgo/v2"
@@ -67,8 +66,8 @@ var _ = Describe("Start Command", func() {
67
66
68
67
// copy if copy is true. otherwise it will be fresh empty config file
69
68
if copy {
70
- oiginal , _ := ioutil .ReadFile ("../testdata/config.yaml" )
71
- ioutil .WriteFile (testConfigFile , oiginal , 0644 )
69
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
70
+ os .WriteFile (testConfigFile , original , 0644 )
72
71
}
73
72
74
73
cmd .SetArgs (args ) // set the arg for each test case
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"fmt"
6
- "io/ioutil"
7
6
"os"
8
7
9
8
. "github.com/onsi/ginkgo/v2"
@@ -54,8 +53,8 @@ var _ = Describe("Use", func() {
54
53
55
54
// copy if copy is true. otherwise it will be fresh empty config file
56
55
if copy {
57
- oiginal , _ := ioutil .ReadFile ("../testdata/config.yaml" )
58
- ioutil .WriteFile (testConfigFile , oiginal , 0644 )
56
+ original , _ := os .ReadFile ("../testdata/config.yaml" )
57
+ os .WriteFile (testConfigFile , original , 0644 )
59
58
}
60
59
61
60
cmd .SetArgs (args ) // set the arg for each test case
You can’t perform that action at this time.
0 commit comments