@@ -2,7 +2,6 @@ package codefresh
2
2
3
3
import (
4
4
"fmt"
5
- "io/ioutil"
6
5
"log"
7
6
"os"
8
7
"regexp"
@@ -49,7 +48,7 @@ func TestCleanUpStepFromTransientValues(t *testing.T) {
49
48
50
49
func TestNormalizeYamlStringStepTypes (t * testing.T ) {
51
50
testFile := "../test_data/step_types/testStepWithRuntimeData.yaml"
52
- yamlString , err := ioutil .ReadFile (testFile )
51
+ yamlString , err := os .ReadFile (testFile )
53
52
if err != nil {
54
53
t .Errorf ("Unable to open test file %s. Err: #%v " , testFile , err )
55
54
}
@@ -85,7 +84,7 @@ func TestSortVersions(t *testing.T) {
85
84
86
85
func TestExtractSteps (t * testing.T ) {
87
86
testFile := "../test_data/step_types/testStepTypesOrder.yaml"
88
- yamlString , err := ioutil .ReadFile (testFile )
87
+ yamlString , err := os .ReadFile (testFile )
89
88
if err != nil {
90
89
t .Errorf ("Unable to read file %s" , testFile )
91
90
}
@@ -112,11 +111,11 @@ func TestAccCodefreshStepTypes(t *testing.T) {
112
111
}
113
112
name := accountName + "/" + stepTypesNamePrefix + acctest .RandString (10 )
114
113
resourceName := "codefresh_step_types.test"
115
- contentStepsV1 , err := ioutil .ReadFile ("../test_data/step_types/testSteps.yaml" )
114
+ contentStepsV1 , err := os .ReadFile ("../test_data/step_types/testSteps.yaml" )
116
115
if err != nil {
117
116
log .Fatal (err )
118
117
}
119
- contentStepsV2 , err := ioutil .ReadFile ("../test_data/step_types/testStepsTemplate.yaml" )
118
+ contentStepsV2 , err := os .ReadFile ("../test_data/step_types/testStepsTemplate.yaml" )
120
119
if err != nil {
121
120
log .Fatal (err )
122
121
}
0 commit comments