diff --git a/pkg/tarmak/cluster/cluster_test.go b/pkg/tarmak/cluster/cluster_test.go index 1ec5910433..c17e081dd7 100644 --- a/pkg/tarmak/cluster/cluster_test.go +++ b/pkg/tarmak/cluster/cluster_test.go @@ -60,6 +60,8 @@ func newFakeCluster(t *testing.T, cluster *clusterv1alpha1.Cluster) *fakeCluster c.fakeProvider.EXPECT().Cloud().Return("provider").AnyTimes() c.fakeProvider.EXPECT().Name().Return("provider-name").AnyTimes() + c.fakeConfig.EXPECT().Force().Return(false).AnyTimes() + c.fakeTarmak.EXPECT().Config().AnyTimes().Return(c.fakeConfig) return c diff --git a/pkg/tarmak/tarmak_test.go b/pkg/tarmak/tarmak_test.go index 8c4ba2a5db..382d2d140b 100644 --- a/pkg/tarmak/tarmak_test.go +++ b/pkg/tarmak/tarmak_test.go @@ -64,6 +64,7 @@ func (tt *testTarmak) fakeAWSProvider(name string) { } tt.fakeConfig.EXPECT().Provider(name).AnyTimes().Return(&tarmakv1alpha1.Provider{}, nil) + tt.fakeConfig.EXPECT().Force().Return(false).AnyTimes() } func (tt *testTarmak) addEnvironment(env *tarmakv1alpha1.Environment) {