Commit 8e376094 authored by MARGERY David's avatar MARGERY David
Browse files

Removes Timezone from reference Time in test

As OAR expects a date/time in local timezone (for the server), but the
client has no way of guessing it, there is no point at attempting to
test the handling of a job reservation time in the job object in an otheri
time zone than the current timezone
parent a5952ffe
......@@ -86,7 +86,7 @@ describe Grid5000::Job do
}
end
it "should export to a hash structure valid for submitting a job to the oarapi" do
reservation = Time.parse("2009-11-10 15:54:56Z")
reservation = Time.parse("2009-11-10 15:54:56")
job = Grid5000::Job.new(:resources => "/nodes=1", :reservation => reservation, :command => "id", :types => ["deploy", "idempotent"], :walltime => 3600, :checkpoint => 40)
job.should be_valid
job.to_hash(:destination => "oar-2.4-submission").should == {
......@@ -99,7 +99,7 @@ describe Grid5000::Job do
}
end
it "should not export the type or reservation attribute if nil or empty" do
reservation = Time.parse("2009-11-10 14:54:56Z")
reservation = Time.parse("2009-11-10 14:54:56")
job = Grid5000::Job.new(:resources => "/nodes=1", :reservation => nil, :command => "id", :types => nil, :walltime => 3600, :checkpoint => 40)
job.should be_valid
job.to_hash(:destination => "oar-2.4-submission").should == {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment