From 35309b9cc26c43c43f6d9bf041d40219d7c92ac8 Mon Sep 17 00:00:00 2001 From: Robert Haines Date: Fri, 9 May 2014 15:32:40 +0100 Subject: [PATCH] Test creation of a directory within a run. --- test/tc_run.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/tc_run.rb b/test/tc_run.rb index a32ca50..372e0ac 100644 --- a/test/tc_run.rb +++ b/test/tc_run.rb @@ -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