Skip to content

Commit

Permalink
Test creation of a directory within a run.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed May 9, 2014
1 parent 0bb129d commit 35309b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tc_run.rb
Expand Up @@ -159,4 +159,15 @@ def test_get_workflow
assert_requested wkf, :times => 1
end

def test_mkdir
dir = "test"
location = "#{RUN_PATH}/wd/#{dir}"
mock("#{RUN_PATH}/wd", :method => :post, :accept => "*/*", :status => 201,
:credentials => $userinfo, :location => location)

run = T2Server::Run.create($uri, WKF_PASS, $creds, $conn_params)

assert run.mkdir(dir)
end

end

0 comments on commit 35309b9

Please sign in to comment.