Skip to content

Commit 72415fa

Browse files
committed
fix: test whether explicitly selected services are forwarded
1 parent fe74028 commit 72415fa

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/actions/test_profile.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,22 @@ module Actions
212212
.requirements.instanciate(plan)
213213
assert_kind_of srv_task_m, task.test_child
214214
end
215+
216+
it "forwards explicitly selected services" do
217+
srv_m = DataService.new_submodel
218+
task_m = TaskContext.new_submodel
219+
task_m.provides srv_m, as: "srv1"
220+
task_m.provides srv_m, as: "srv2"
221+
cmp_m = Composition.new_submodel
222+
cmp_m.add srv_m, as: "srv"
223+
base_profile = Profile.new
224+
base_profile.tag "srv", srv_m
225+
base_profile.define "d", cmp_m.use("srv" => base_profile.srv_tag)
226+
profile = Profile.new
227+
profile.use_profile base_profile, "srv" => task_m.srv1_srv
228+
229+
profile.d_def.instanciate(plan)
230+
end
215231
end
216232

217233
describe "#define" do

0 commit comments

Comments
 (0)