Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forward explicitly set services #356

Open
wants to merge 1 commit into
base: transition-to-runkit
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test/actions/test_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,22 @@ module Actions
.requirements.instanciate(plan)
assert_kind_of srv_task_m, task.test_child
end

it "forwards explicitly selected services" do
srv_m = DataService.new_submodel
task_m = TaskContext.new_submodel
task_m.provides srv_m, as: "srv1"
task_m.provides srv_m, as: "srv2"
cmp_m = Composition.new_submodel
cmp_m.add srv_m, as: "srv"
base_profile = Profile.new
base_profile.tag "srv", srv_m
base_profile.define "d", cmp_m.use("srv" => base_profile.srv_tag)
profile = Profile.new
profile.use_profile base_profile, "srv" => task_m.srv1_srv

profile.d_def.instanciate(plan)
end
end

describe "#define" do
Expand Down