within('.recent-processes') do
assert_text 'pipeline_with_job'
- within('.row-zzzzz-d1hrv-1yfj6xkidf2muk3') do
- assert_text 'foo'
+
+ within('.row-zzzzz-xvhdp-cr4runningcntnr') do
+ assert_text 'requester_for_running_cr'
end
assert_text 'zzzzz-d1hrv-twodonepipeline'
visit page_with_token "active", "/#{type}/#{obj['uuid']}"
assert_text 'created_at'
+
if cancelable
+ assert_text 'priority: 1' if type.include?('container')
assert_selector 'button', text: 'Cancel'
- click_button 'Cancel'
+ first('a,button', text: 'Cancel').click
wait_for_ajax
end
- assert_no_selector 'button', text: 'Cancel'
+ assert_text 'priority: 0' if cancelable and type.include?('container')
end
end
[ContainerRequest, 'queued', 'cwu', 0, "Queued", nil, 0.0], # priority 1
[ContainerRequest, 'canceled_with_queued_container', 'cwu', 0, "Ready", nil, 0.0],
[ContainerRequest, 'canceled_with_locked_container', 'cwu', 0, "Ready", nil, 0.0],
- [ContainerRequest, 'canceled_with_running_container', 'cwu', 0, "Running", nil, 0.0],
+ [ContainerRequest, 'canceled_with_running_container', 'cwu', 1, "Running", nil, 0.0],
].each do |type, fixture, label, num_children, state, success, progress|
test "children of #{fixture}" do
use_token 'active'
vcpus: 1
ram: 123
+requester_for_running:
+ uuid: zzzzz-xvhdp-req4runningcntr
+ owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+ name: requester_for_running_cr
+ state: Committed
+ priority: 1
+ created_at: <%= 2.minute.ago.to_s(:db) %>
+ updated_at: <%= 2.minute.ago.to_s(:db) %>
+ modified_at: <%= 2.minute.ago.to_s(:db) %>
+ modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+ container_image: test
+ cwd: test
+ output_path: test
+ command: ["echo", "hello"]
+ container_uuid: zzzzz-dz642-logscontainer03
+ requesting_container_uuid: zzzzz-dz642-runningcontainr
+ runtime_constraints:
+ vcpus: 1
+ ram: 123
+
running_older:
uuid: zzzzz-xvhdp-cr4runningcntn2
owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz