We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe74028 commit 72415faCopy full SHA for 72415fa
1 file changed
test/actions/test_profile.rb
@@ -212,6 +212,22 @@ module Actions
212
.requirements.instanciate(plan)
213
assert_kind_of srv_task_m, task.test_child
214
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
231
232
233
describe "#define" do
0 commit comments