@@ -27,7 +27,7 @@ import (
27
27
"github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/account"
28
28
manifestloader "github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/manifest/loader"
29
29
"github.com/spf13/afero"
30
- "github.com/stretchr/testify/assert "
30
+ "github.com/stretchr/testify/require "
31
31
"os"
32
32
"strings"
33
33
"testing"
@@ -56,9 +56,9 @@ func RunAccountTestCase(t *testing.T, path string, manifestFileName string, name
56
56
// createAccountClientsFromManifest creates a map of accountInfo --> account client for a given manifest
57
57
func createAccountClientsFromManifest (t * testing.T , fs afero.Fs , manifestFileName string ) map [account.AccountInfo ]* accounts.Client {
58
58
m , errs := manifestloader .Load (& manifestloader.Context {Fs : fs , ManifestPath : manifestFileName , Opts : manifestloader.Options {RequireAccounts : true }})
59
- assert .NoError (t , errors .Join (errs ... ))
59
+ require .NoError (t , errors .Join (errs ... ))
60
60
accClients , err := dynatrace .CreateAccountClients (m .Accounts )
61
- assert .NoError (t , err )
61
+ require .NoError (t , err )
62
62
return accClients
63
63
}
64
64
@@ -67,13 +67,13 @@ func createAccountClientsFromManifest(t *testing.T, fs afero.Fs, manifestFileNam
67
67
func randomizeYAMLResources (t * testing.T , fs afero.Fs , name string ) string {
68
68
randStr := integrationtest .GenerateTestSuffix (t , name )
69
69
ff , err := files .FindYamlFiles (fs , "." )
70
- assert .NoError (t , err )
70
+ require .NoError (t , err )
71
71
for _ , file := range ff {
72
72
fileContent , err := afero .ReadFile (fs , file )
73
- assert .NoError (t , err )
73
+ require .NoError (t , err )
74
74
fileContentRandomized := randomizeFn (randStr )(string (fileContent ))
75
75
err = afero .WriteFile (fs , file , []byte (fileContentRandomized ), 0644 )
76
- assert .NoError (t , err )
76
+ require .NoError (t , err )
77
77
}
78
78
return randStr
79
79
}
0 commit comments