@@ -12,9 +12,9 @@ defmodule Diffo.Test.Instance.ShelfInstance do
1212 alias Diffo.Provider.BaseInstance
1313 alias Diffo.Provider.Instance.Relationship
1414 alias Diffo.Provider.Extension.Characteristic
15+ alias Diffo.Provider.Extension.Pool
1516 alias Diffo.Provider.Assigner
1617 alias Diffo.Provider.Assignment
17- alias Diffo.Provider.AssignableValue
1818 alias Diffo.Test.Servo
1919 alias Diffo.Test.Characteristic.ShelfCharacteristic
2020 alias Diffo.Test.Characteristic.DeploymentClass
@@ -53,10 +53,13 @@ defmodule Diffo.Test.Instance.ShelfInstance do
5353
5454 characteristics do
5555 characteristic :shelf , ShelfCharacteristic
56- characteristic :slots , AssignableValue
5756 characteristic :shelves , { :array , ShelfCharacteristic }
5857 end
5958
59+ pools do
60+ pool :slots , :slot
61+ end
62+
6063 parties do
6164 party :facilitator , Organization
6265 party :overseer , Person
@@ -97,6 +100,7 @@ defmodule Diffo.Test.Instance.ShelfInstance do
97100 change after_action ( fn changeset , result , _context ->
98101 with { :ok , result } <-
99102 Characteristic . update_all ( result , changeset , characteristics ( ) ) ,
103+ { :ok , result } <- Pool . update_pools ( result , changeset , pools ( ) ) ,
100104 { :ok , result } <- Servo . get_shelf_by_id ( result . id ) ,
101105 do: { :ok , result }
102106 end )
@@ -118,7 +122,7 @@ defmodule Diffo.Test.Instance.ShelfInstance do
118122 argument :assignment , :struct , constraints: [ instance_of: Assignment ]
119123
120124 change after_action ( fn changeset , result , _context ->
121- with { :ok , result } <- Assigner . assign ( result , changeset , :slots , :slot ) ,
125+ with { :ok , result } <- Assigner . assign ( result , changeset , :slots ) ,
122126 { :ok , result } <- Servo . get_shelf_by_id ( result . id ) ,
123127 do: { :ok , result }
124128 end )
0 commit comments