Skip to content

Commit

Permalink
[api] fix test cases, following verifymd5 change for linked packages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Oct 27, 2011
1 parent 7115229 commit f315329
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/test/functional/maintenance_test.rb
Expand Up @@ -391,11 +391,11 @@ def test_create_maintenance_project_and_release_packages
jobid = io.readlines.first.chomp
end
f = File.open("#{maintJob}:status", 'w')
f.write( "<jobstatus code=\"building\"> <jobid>#{jobid}</jobid> </jobstatus>" )
f.write( "<jobstatus code=\"building\"> <jobid>#{jobid}</jobid> <workerid>simulated</workerid> <hostarch>x86_64</hostarch> </jobstatus>" )
f.close
# for x86_64
system("cd #{RAILS_ROOT}/test/fixtures/backend/binary/; exec find . -name '*x86_64.rpm' -o -name '*src.rpm' -o -name logfile | cpio -H newc -o | curl -s -X POST -T - 'http://localhost:3201/putjob?arch=x86_64&code=success&job=#{maintJob.gsub(/.*\//, '')}&jobid=#{jobid}'")
system("echo \"1acf9baa96c2cee07035b2b156020d9b pack2.BaseDistro2\" > #{maintJob}:dir/meta")
system("echo \"46d4408d324ac84a93aef39181b6a60c pack2.BaseDistro2\" > #{maintJob}:dir/meta")
# run scheduler again to collect result
IO.popen("cd #{RAILS_ROOT}/tmp/backend_config; exec perl #{perlopts} ./bs_sched --testmode x86_64") do |io|
# just for waiting until scheduler finishes
Expand All @@ -413,7 +413,7 @@ def test_create_maintenance_project_and_release_packages
f.close
# for i586
system("cd #{RAILS_ROOT}/test/fixtures/backend/binary/; exec find . -name '*i586.rpm' -o -name '*src.rpm' -o -name logfile | cpio -H newc -o | curl -s -X POST -T - 'http://localhost:3201/putjob?arch=i586&code=success&job=#{maintJob.gsub(/.*\//, '')}&jobid=#{jobid}'")
system("echo \"1acf9baa96c2cee07035b2b156020d9b pack2.BaseDistro2\" > #{maintJob}:dir/meta")
system("echo \"46d4408d324ac84a93aef39181b6a60c pack2.BaseDistro2\" > #{maintJob}:dir/meta")
# run scheduler again to collect result
IO.popen("cd #{RAILS_ROOT}/tmp/backend_config; exec perl #{perlopts} ./bs_sched --testmode i586") do |io|
# just for waiting until scheduler finishes
Expand Down Expand Up @@ -626,7 +626,7 @@ def test_copy_project_for_release_with_history_and_binaries

# as admin
prepare_request_with_user "king", "sunflower"
post "/source/CopyOfBaseDistro?cmd=copy&oproject=BaseDistro&withhistory=1&withbinaries=1"
post "/source/CopyOfBaseDistro?cmd=copy&oproject=BaseDistro&withhistory=1&withbinaries=1&nodelay=1"
assert_response :success
get "/source/CopyOfBaseDistro/_meta"
assert_response :success
Expand Down

0 comments on commit f315329

Please sign in to comment.