projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11789: Added tests.
[arvados.git]
/
sdk
/
cli
/
test
/
test_crunch-job.rb
diff --git
a/sdk/cli/test/test_crunch-job.rb
b/sdk/cli/test/test_crunch-job.rb
index 0fbff2e6de670da112461da20107fa5eeaae1e9b..a0fed6ee32b90022b20d3666e2272155ad40db01 100644
(file)
--- a/
sdk/cli/test/test_crunch-job.rb
+++ b/
sdk/cli/test/test_crunch-job.rb
@@
-8,6
+8,7
@@
class TestCrunchJob < Minitest::Test
JOBSPEC = {
grep_local: {
JOBSPEC = {
grep_local: {
+ owner_uuid: 'zzzzz-j7d0g-it30l961gq3t0oi',
script: 'grep',
script_version: 'master',
repository: File.absolute_path('../../../..', __FILE__),
script: 'grep',
script_version: 'master',
repository: File.absolute_path('../../../..', __FILE__),
@@
-95,6
+96,14
@@
class TestCrunchJob < Minitest::Test
assert_equal SPECIAL_EXIT[:EX_RETRY_UNLOCKED], $?.exitstatus
end
assert_equal SPECIAL_EXIT[:EX_RETRY_UNLOCKED], $?.exitstatus
end
+ def test_output_collection_owner_uuid
+ j = jobspec :grep_local
+ out, err = capture_subprocess_io do
+ tryjobrecord j, binstubs: ['arv-mount', 'output_coll_owner']
+ end
+ assert_match /owner_uuid: #{j['owner_uuid']}/, err
+ end
+
def test_docker_image_missing
skip 'API bug: it refuses to create this job in Running state'
out, err = capture_subprocess_io do
def test_docker_image_missing
skip 'API bug: it refuses to create this job in Running state'
out, err = capture_subprocess_io do
@@
-111,7
+120,7
@@
class TestCrunchJob < Minitest::Test
out, err = capture_subprocess_io do
j = jobspec :grep_local
j[:script_version] = bogus_version
out, err = capture_subprocess_io do
j = jobspec :grep_local
j[:script_version] = bogus_version
- tryjobrecord j
+ tryjobrecord j
, binstubs: ['arv-mount']
end
assert_match /'#{bogus_version}' not found, giving up/, err
assert_jobfail $?
end
assert_match /'#{bogus_version}' not found, giving up/, err
assert_jobfail $?