Skip to content

Commit

Permalink
[ci] test publish repository subdirectory directive
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Mar 2, 2015
1 parent 2201c56 commit bf5a624
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/test/functional/channel_maintenance_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_large_channel_test
</repository>
</project>'
assert_response :success
put '/source/BaseDistro3Channel/_config', "Repotype: rpm-md-legacy\nType: spec"
put '/source/BaseDistro3Channel/_config', "Repotype: rpm-md-legacy packagesubdir:rpm\nType: spec"
assert_response :success

raw_post '/source/BaseDistro3Channel/_attribute', "<attributes><attribute namespace='OBS' name='MaintenanceIdTemplate'><value>My-BaseDistro3Channel-%Y-%C</value></attribute></attributes>"
Expand Down Expand Up @@ -412,7 +412,7 @@ def test_large_channel_test
assert_xml_tag :tag => "binary", :attributes => { name: "package", project: incidentProject, package: "patchinfo",
repository: "BaseDistro3Channel", version: "1.0", release: "1", arch: "i586",
filename: "package-1.0-1.i586.rpm",
filepath: "My:/Maintenance:/0/BaseDistro3Channel/i586/package-1.0-1.i586.rpm",
filepath: "My:/Maintenance:/0/BaseDistro3Channel/rpm/i586/package-1.0-1.i586.rpm",
baseproject: "BaseDistro3Channel", type: "rpm" }


Expand Down Expand Up @@ -457,10 +457,10 @@ def test_large_channel_test
assert_xml_tag :tag => 'binary', :attributes => { filename: 'package-1.0-1.i586.rpm' }
assert_xml_tag :tag => 'binary', :attributes => { filename: 'package-1.0-1.src.rpm' }
assert_xml_tag :tag => 'binary', :attributes => { filename: 'updateinfo.xml' }
get "/published/#{incidentProject}/BaseDistro3Channel/i586"
get "/published/#{incidentProject}/BaseDistro3Channel/rpm/i586"
assert_response :success
assert_xml_tag :tag => 'entry', :attributes => { name: 'package-1.0-1.i586.rpm' }
get "/published/#{incidentProject}/BaseDistro3Channel/src"
get "/published/#{incidentProject}/BaseDistro3Channel/rpm/src"
assert_response :success
assert_xml_tag :tag => 'entry', :attributes => { name: 'package-1.0-1.src.rpm' }
get "/published/#{incidentProject}/BaseDistro3Channel/repodata"
Expand Down

0 comments on commit bf5a624

Please sign in to comment.