@@ -28,11 +28,6 @@ import (
28
28
"testing"
29
29
"time"
30
30
31
- "github.com/darkowlzz/controller-check/status"
32
- "github.com/fluxcd/pkg/apis/meta"
33
- "github.com/fluxcd/pkg/helmtestserver"
34
- "github.com/fluxcd/pkg/runtime/conditions"
35
- "github.com/fluxcd/pkg/runtime/patch"
36
31
. "github.com/onsi/gomega"
37
32
helmgetter "helm.sh/helm/v3/pkg/getter"
38
33
corev1 "k8s.io/api/core/v1"
@@ -44,6 +39,12 @@ import (
44
39
"sigs.k8s.io/controller-runtime/pkg/client/fake"
45
40
fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"
46
41
42
+ "github.com/fluxcd/pkg/apis/meta"
43
+ "github.com/fluxcd/pkg/helmtestserver"
44
+ "github.com/fluxcd/pkg/runtime/conditions"
45
+ conditionscheck "github.com/fluxcd/pkg/runtime/conditions/check"
46
+ "github.com/fluxcd/pkg/runtime/patch"
47
+
47
48
sourcev1 "github.com/fluxcd/source-controller/api/v1beta2"
48
49
"github.com/fluxcd/source-controller/internal/helm/getter"
49
50
"github.com/fluxcd/source-controller/internal/helm/repository"
@@ -101,8 +102,8 @@ func TestHelmRepositoryReconciler_Reconcile(t *testing.T) {
101
102
}, timeout ).Should (BeTrue ())
102
103
103
104
// Check if the object status is valid.
104
- condns := & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
105
- checker := status .NewChecker (testEnv .Client , condns )
105
+ condns := & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
106
+ checker := conditionscheck .NewChecker (testEnv .Client , condns )
106
107
checker .CheckErr (ctx , obj )
107
108
108
109
// kstatus client conformance check.
@@ -1165,8 +1166,8 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
1165
1166
}, timeout ).Should (BeTrue ())
1166
1167
1167
1168
// Check if the object status is valid.
1168
- condns := & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1169
- checker := status .NewChecker (testEnv .Client , condns )
1169
+ condns := & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1170
+ checker := conditionscheck .NewChecker (testEnv .Client , condns )
1170
1171
checker .CheckErr (ctx , obj )
1171
1172
1172
1173
// kstatus client conformance check.
@@ -1217,8 +1218,8 @@ func TestHelmRepositoryReconciler_ReconcileTypeUpdatePredicateFilter(t *testing.
1217
1218
}, timeout ).Should (BeTrue ())
1218
1219
1219
1220
// Check if the object status is valid.
1220
- condns = & status .Conditions {NegativePolarity : helmRepositoryOCINegativeConditions }
1221
- checker = status .NewChecker (testEnv .Client , condns )
1221
+ condns = & conditionscheck .Conditions {NegativePolarity : helmRepositoryOCINegativeConditions }
1222
+ checker = conditionscheck .NewChecker (testEnv .Client , condns )
1222
1223
checker .CheckErr (ctx , obj )
1223
1224
1224
1225
g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
@@ -1282,8 +1283,8 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
1282
1283
}, timeout ).Should (BeTrue ())
1283
1284
1284
1285
// Check if the object status is valid.
1285
- condns := & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1286
- checker := status .NewChecker (testEnv .Client , condns )
1286
+ condns := & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1287
+ checker := conditionscheck .NewChecker (testEnv .Client , condns )
1287
1288
checker .CheckErr (ctx , obj )
1288
1289
1289
1290
// kstatus client conformance check.
@@ -1314,8 +1315,8 @@ func TestHelmRepositoryReconciler_ReconcileSpecUpdatePredicateFilter(t *testing.
1314
1315
}, timeout ).Should (BeTrue ())
1315
1316
1316
1317
// Check if the object status is valid.
1317
- condns = & status .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1318
- checker = status .NewChecker (testEnv .Client , condns )
1318
+ condns = & conditionscheck .Conditions {NegativePolarity : helmRepositoryReadyCondition .NegativePolarity }
1319
+ checker = conditionscheck .NewChecker (testEnv .Client , condns )
1319
1320
checker .CheckErr (ctx , obj )
1320
1321
1321
1322
g .Expect (testEnv .Delete (ctx , obj )).To (Succeed ())
0 commit comments