@@ -14,7 +14,7 @@ import (
1414 xpresource "github.com/crossplane/crossplane-runtime/v2/pkg/resource"
1515 xpfake "github.com/crossplane/crossplane-runtime/v2/pkg/resource/fake"
1616 "github.com/crossplane/crossplane-runtime/v2/pkg/test"
17- xpv1 "github.com/crossplane/crossplane/apis/v2/core/v2"
17+ xpv2 "github.com/crossplane/crossplane/apis/v2/core/v2"
1818 "github.com/google/go-cmp/cmp"
1919 "github.com/google/go-cmp/cmp/cmpopts"
2020 "github.com/pkg/errors"
@@ -200,7 +200,7 @@ func TestObserve(t *testing.T) {
200200 }
201201 type want struct {
202202 obs managed.ExternalObservation
203- condition * xpv1 .Condition
203+ condition * xpv2 .Condition
204204 err error
205205 }
206206 cases := map [string ]struct {
@@ -222,7 +222,7 @@ func TestObserve(t *testing.T) {
222222 obj : & fake.Terraformed {
223223 Managed : xpfake.Managed {
224224 Manageable : xpfake.Manageable {
225- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
225+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
226226 },
227227 },
228228 },
@@ -242,7 +242,7 @@ func TestObserve(t *testing.T) {
242242 obj : & fake.Terraformed {
243243 Managed : xpfake.Managed {
244244 Manageable : xpfake.Manageable {
245- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
245+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
246246 },
247247 },
248248 },
@@ -259,7 +259,7 @@ func TestObserve(t *testing.T) {
259259 obj : & fake.Terraformed {
260260 Managed : xpfake.Managed {
261261 Manageable : xpfake.Manageable {
262- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
262+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
263263 },
264264 },
265265 },
@@ -283,14 +283,14 @@ func TestObserve(t *testing.T) {
283283 args : args {
284284 obj : & fake.Terraformed {
285285 Managed : xpfake.Managed {
286- ConditionedStatus : xpv1 .ConditionedStatus {
286+ ConditionedStatus : xpv2 .ConditionedStatus {
287287 // empty
288288 },
289289 ObjectMeta : metav1.ObjectMeta {
290290 Annotations : exampleCriticalAnnotations ,
291291 },
292292 Manageable : xpfake.Manageable {
293- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
293+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
294294 },
295295 },
296296 },
@@ -321,11 +321,11 @@ func TestObserve(t *testing.T) {
321321 ObjectMeta : metav1.ObjectMeta {
322322 Annotations : exampleCriticalAnnotations ,
323323 },
324- ConditionedStatus : xpv1 .ConditionedStatus {
325- Conditions : []xpv1 .Condition {xpv1 .Available ()},
324+ ConditionedStatus : xpv2 .ConditionedStatus {
325+ Conditions : []xpv2 .Condition {xpv2 .Available ()},
326326 },
327327 Manageable : xpfake.Manageable {
328- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
328+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
329329 },
330330 },
331331 },
@@ -350,11 +350,11 @@ func TestObserve(t *testing.T) {
350350 args : args {
351351 obj : & fake.Terraformed {
352352 Managed : xpfake.Managed {
353- ConditionedStatus : xpv1 .ConditionedStatus {
354- Conditions : []xpv1 .Condition {xpv1 .Available ()},
353+ ConditionedStatus : xpv2 .ConditionedStatus {
354+ Conditions : []xpv2 .Condition {xpv2 .Available ()},
355355 },
356356 Manageable : xpfake.Manageable {
357- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
357+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
358358 },
359359 },
360360 },
@@ -381,10 +381,10 @@ func TestObserve(t *testing.T) {
381381 obj : & fake.Terraformed {
382382 Managed : xpfake.Managed {
383383 Manageable : xpfake.Manageable {
384- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionObserve },
384+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionObserve },
385385 },
386- ConditionedStatus : xpv1 .ConditionedStatus {
387- Conditions : []xpv1 .Condition {xpv1 .Available ()},
386+ ConditionedStatus : xpv2 .ConditionedStatus {
387+ Conditions : []xpv2 .Condition {xpv2 .Available ()},
388388 },
389389 },
390390 },
@@ -409,10 +409,10 @@ func TestObserve(t *testing.T) {
409409 obj : & fake.Terraformed {
410410 Managed : xpfake.Managed {
411411 Manageable : xpfake.Manageable {
412- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionObserve },
412+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionObserve },
413413 },
414- ConditionedStatus : xpv1 .ConditionedStatus {
415- Conditions : []xpv1 .Condition {xpv1 .Available ()},
414+ ConditionedStatus : xpv2 .ConditionedStatus {
415+ Conditions : []xpv2 .Condition {xpv2 .Available ()},
416416 },
417417 },
418418 },
@@ -432,10 +432,10 @@ func TestObserve(t *testing.T) {
432432 obj : & fake.Terraformed {
433433 Managed : xpfake.Managed {
434434 Manageable : xpfake.Manageable {
435- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionObserve },
435+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionObserve },
436436 },
437- ConditionedStatus : xpv1 .ConditionedStatus {
438- Conditions : []xpv1 .Condition {xpv1 .Available ()},
437+ ConditionedStatus : xpv2 .ConditionedStatus {
438+ Conditions : []xpv2 .Condition {xpv2 .Available ()},
439439 },
440440 },
441441 },
@@ -458,9 +458,9 @@ func TestObserve(t *testing.T) {
458458 obj : & fake.Terraformed {
459459 Managed : xpfake.Managed {
460460 Manageable : xpfake.Manageable {
461- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionObserve },
461+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionObserve },
462462 },
463- ConditionedStatus : xpv1 .ConditionedStatus {
463+ ConditionedStatus : xpv2 .ConditionedStatus {
464464 // empty
465465 },
466466 ObjectMeta : metav1.ObjectMeta {
@@ -494,9 +494,9 @@ func TestObserve(t *testing.T) {
494494 obj : & fake.Terraformed {
495495 Managed : xpfake.Managed {
496496 Manageable : xpfake.Manageable {
497- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionAll },
497+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionAll },
498498 },
499- ConditionedStatus : xpv1 .ConditionedStatus {
499+ ConditionedStatus : xpv2 .ConditionedStatus {
500500 // empty
501501 },
502502 ObjectMeta : metav1.ObjectMeta {
@@ -537,11 +537,11 @@ func TestObserve(t *testing.T) {
537537 },
538538 obj : & fake.Terraformed {
539539 Managed : xpfake.Managed {
540- ConditionedStatus : xpv1 .ConditionedStatus {
540+ ConditionedStatus : xpv2 .ConditionedStatus {
541541 // empty
542542 },
543543 Manageable : xpfake.Manageable {
544- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionCreate },
544+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionCreate },
545545 },
546546 },
547547 },
@@ -573,7 +573,7 @@ func TestObserve(t *testing.T) {
573573 obj : & fake.Terraformed {
574574 Managed : xpfake.Managed {
575575 Manageable : xpfake.Manageable {
576- Policy : xpv1 .ManagementPolicies {xpv1 .ManagementActionCreate },
576+ Policy : xpv2 .ManagementPolicies {xpv2 .ManagementActionCreate },
577577 },
578578 },
579579 },
@@ -610,8 +610,8 @@ func TestObserve(t *testing.T) {
610610 }
611611}
612612
613- func available () * xpv1 .Condition {
614- c := xpv1 .Available ()
613+ func available () * xpv2 .Condition {
614+ c := xpv2 .Available ()
615615 return & c
616616}
617617
0 commit comments