Skip to content

Commit

Permalink
[api] validate that the default reviewer for packages is working
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Jan 30, 2012
1 parent 002794a commit adde912
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/test/fixtures/attribs.yml
@@ -1,4 +1,4 @@
attribs_101:
maintained_apache2_package:
db_package_id: "1355"
attrib_type_id: "58"
binary:
Expand Down
2 changes: 1 addition & 1 deletion src/api/test/fixtures/db_packages.yml
Expand Up @@ -26,7 +26,7 @@ db_packages_10089:
description: ""
develpackage_id:
develproject_id:
db_packages_10094:
Basedistro_Update_pack2:
name: pack2
created_at: 2007-05-16 14:19:18
activity_index: "10"
Expand Down
5 changes: 5 additions & 0 deletions src/api/test/fixtures/package_user_role_relationships.yml
Expand Up @@ -28,3 +28,8 @@ package_user_role_relationships_950742816:
role_id: "6"
bs_user_id: "42"
id: "950742816"
reviewer_for_Basedistro_pack2:
db_package_id: "10094"
role_id: "6"
bs_user_id: "1"
id: "950742817"
2 changes: 1 addition & 1 deletion src/api/test/functional/maintenance_test.rb
Expand Up @@ -826,7 +826,7 @@ def test_create_maintenance_project_and_release_packages
prepare_request_with_user "king", "sunflower"
post "/request/#{reqid}?cmd=changereviewstate&newstate=accepted&by_group=test_group&comment=blahfasel"
assert_response :success
post "/request/#{reqid}?cmd=changereviewstate&newstate=accepted&by_user=adrian&comment=blahfasel"
post "/request/#{reqid}?cmd=changereviewstate&newstate=accepted&by_user=fred&comment=blahfasel" # default package reviewer
assert_response :success

# release packages
Expand Down

0 comments on commit adde912

Please sign in to comment.