@@ -3,7 +3,7 @@ package injection
33import (
44 "testing"
55
6- "github.com/Dynatrace/dynatrace-bootstrapper/cmd"
6+ "github.com/Dynatrace/dynatrace-bootstrapper/cmd/k8sinit "
77 "github.com/Dynatrace/dynatrace-operator/cmd/bootstrapper"
88 "github.com/Dynatrace/dynatrace-operator/pkg/api/exp"
99 "github.com/Dynatrace/dynatrace-operator/pkg/api/latest/dynakube"
@@ -148,7 +148,7 @@ func TestCreateInitContainerBase(t *testing.T) {
148148
149149 initContainer := wh .createInitContainerBase (pod , * dk )
150150
151- assert .NotContains (t , initContainer .Args , "--" + cmd .SuppressErrorsFlag )
151+ assert .NotContains (t , initContainer .Args , "--" + k8sinit .SuppressErrorsFlag )
152152 })
153153
154154 t .Run ("should not set suppress-error arg - according to pod" , func (t * testing.T ) {
@@ -159,7 +159,7 @@ func TestCreateInitContainerBase(t *testing.T) {
159159
160160 initContainer := wh .createInitContainerBase (pod , * dk )
161161
162- assert .NotContains (t , initContainer .Args , "--" + cmd .SuppressErrorsFlag )
162+ assert .NotContains (t , initContainer .Args , "--" + k8sinit .SuppressErrorsFlag )
163163 })
164164
165165 t .Run ("should set suppress-error arg - default" , func (t * testing.T ) {
@@ -170,7 +170,7 @@ func TestCreateInitContainerBase(t *testing.T) {
170170
171171 initContainer := wh .createInitContainerBase (pod , * dk )
172172
173- assert .Contains (t , initContainer .Args , "--" + cmd .SuppressErrorsFlag )
173+ assert .Contains (t , initContainer .Args , "--" + k8sinit .SuppressErrorsFlag )
174174 })
175175
176176 t .Run ("should set suppress-error arg - unknown value" , func (t * testing.T ) {
@@ -181,7 +181,7 @@ func TestCreateInitContainerBase(t *testing.T) {
181181
182182 initContainer := wh .createInitContainerBase (pod , * dk )
183183
184- assert .Contains (t , initContainer .Args , "--" + cmd .SuppressErrorsFlag )
184+ assert .Contains (t , initContainer .Args , "--" + k8sinit .SuppressErrorsFlag )
185185
186186 dk = getTestDynakube ()
187187 dk .Annotations = map [string ]string {}
@@ -190,7 +190,7 @@ func TestCreateInitContainerBase(t *testing.T) {
190190
191191 initContainer = wh .createInitContainerBase (pod , * dk )
192192
193- assert .Contains (t , initContainer .Args , "--" + cmd .SuppressErrorsFlag )
193+ assert .Contains (t , initContainer .Args , "--" + k8sinit .SuppressErrorsFlag )
194194 })
195195}
196196
0 commit comments