@@ -2,7 +2,6 @@ package codefresh
22
33import (
44 "fmt"
5- "io/ioutil"
65 "log"
76 "os"
87 "regexp"
@@ -49,7 +48,7 @@ func TestCleanUpStepFromTransientValues(t *testing.T) {
4948
5049func TestNormalizeYamlStringStepTypes (t * testing.T ) {
5150 testFile := "../test_data/step_types/testStepWithRuntimeData.yaml"
52- yamlString , err := ioutil .ReadFile (testFile )
51+ yamlString , err := os .ReadFile (testFile )
5352 if err != nil {
5453 t .Errorf ("Unable to open test file %s. Err: #%v " , testFile , err )
5554 }
@@ -85,7 +84,7 @@ func TestSortVersions(t *testing.T) {
8584
8685func TestExtractSteps (t * testing.T ) {
8786 testFile := "../test_data/step_types/testStepTypesOrder.yaml"
88- yamlString , err := ioutil .ReadFile (testFile )
87+ yamlString , err := os .ReadFile (testFile )
8988 if err != nil {
9089 t .Errorf ("Unable to read file %s" , testFile )
9190 }
@@ -112,11 +111,11 @@ func TestAccCodefreshStepTypes(t *testing.T) {
112111 }
113112 name := accountName + "/" + stepTypesNamePrefix + acctest .RandString (10 )
114113 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" )
116115 if err != nil {
117116 log .Fatal (err )
118117 }
119- contentStepsV2 , err := ioutil .ReadFile ("../test_data/step_types/testStepsTemplate.yaml" )
118+ contentStepsV2 , err := os .ReadFile ("../test_data/step_types/testStepsTemplate.yaml" )
120119 if err != nil {
121120 log .Fatal (err )
122121 }
0 commit comments