@@ -50,13 +50,15 @@ var _ = Describe("AggregatesController", func() {
5050 "availability_zone": "",
5151 "deleted": false,
5252 "id": 100001,
53+ "uuid": "uuid-100001",
5354 "hosts": ["hv-test"]
5455 },
5556 {
5657 "name": "test-aggregate3",
5758 "availability_zone": "",
5859 "deleted": false,
5960 "id": 99,
61+ "uuid": "uuid-99",
6062 "hosts": ["hv-test"]
6163 }
6264 ]
@@ -69,7 +71,8 @@ var _ = Describe("AggregatesController", func() {
6971 "name": "test-aggregate3",
7072 "availability_zone": "",
7173 "deleted": false,
72- "id": 99
74+ "id": 99,
75+ "uuid": "uuid-99"
7376 }
7477}`
7578
@@ -82,7 +85,8 @@ var _ = Describe("AggregatesController", func() {
8285 "hosts": [
8386 "hv-test"
8487 ],
85- "id": 42
88+ "id": 42,
89+ "uuid": "uuid-42"
8690 }
8791}`
8892 )
@@ -159,6 +163,7 @@ var _ = Describe("AggregatesController", func() {
159163 "availability_zone": "",
160164 "deleted": false,
161165 "id": 42,
166+ "uuid": "uuid-42",
162167 "hosts": []
163168 }
164169 ]
@@ -190,6 +195,7 @@ var _ = Describe("AggregatesController", func() {
190195 updated := & kvmv1.Hypervisor {}
191196 Expect (aggregatesController .Client .Get (ctx , hypervisorName , updated )).To (Succeed ())
192197 Expect (updated .Status .Aggregates ).To (ContainElements ("test-aggregate1" ))
198+ Expect (updated .Status .AggregateUUIDs ).To (ContainElements ("uuid-42" ))
193199 Expect (meta .IsStatusConditionTrue (updated .Status .Conditions , kvmv1 .ConditionTypeAggregatesUpdated )).To (BeTrue ())
194200 })
195201 })
@@ -232,6 +238,7 @@ var _ = Describe("AggregatesController", func() {
232238 updated := & kvmv1.Hypervisor {}
233239 Expect (aggregatesController .Client .Get (ctx , hypervisorName , updated )).To (Succeed ())
234240 Expect (updated .Status .Aggregates ).To (BeEmpty ())
241+ Expect (updated .Status .AggregateUUIDs ).To (BeEmpty ())
235242 Expect (meta .IsStatusConditionTrue (updated .Status .Conditions , kvmv1 .ConditionTypeAggregatesUpdated )).To (BeTrue ())
236243 })
237244 })
0 commit comments