##// END OF EJS Templates
testing: fixed test routes
super-admin -
r5175:0b2d4499 default
parent child Browse files
Show More
@@ -32,12 +32,14 b' def get_url_defs():'
32 "admin_home": ADMIN_PREFIX + "",
32 "admin_home": ADMIN_PREFIX + "",
33 "admin_audit_logs": ADMIN_PREFIX + "/audit_logs",
33 "admin_audit_logs": ADMIN_PREFIX + "/audit_logs",
34 "admin_defaults_repositories": ADMIN_PREFIX + "/defaults/repositories",
34 "admin_defaults_repositories": ADMIN_PREFIX + "/defaults/repositories",
35 "admin_defaults_repositories_update": ADMIN_PREFIX + "/defaults/repositories/update",
35 "admin_defaults_repositories_update": ADMIN_PREFIX
36 + "/defaults/repositories/update",
36 "search": ADMIN_PREFIX + "/search",
37 "search": ADMIN_PREFIX + "/search",
37 "search_repo": "/{repo_name}/search",
38 "search_repo": "/{repo_name}/search",
38 "my_account_auth_tokens": ADMIN_PREFIX + "/my_account/auth_tokens",
39 "my_account_auth_tokens": ADMIN_PREFIX + "/my_account/auth_tokens",
39 "my_account_auth_tokens_add": ADMIN_PREFIX + "/my_account/auth_tokens/new",
40 "my_account_auth_tokens_add": ADMIN_PREFIX + "/my_account/auth_tokens/new",
40 "my_account_auth_tokens_delete": ADMIN_PREFIX + "/my_account/auth_tokens/delete",
41 "my_account_auth_tokens_delete": ADMIN_PREFIX
42 + "/my_account/auth_tokens/delete",
41 "repos": ADMIN_PREFIX + "/repos",
43 "repos": ADMIN_PREFIX + "/repos",
42 "repos_data": ADMIN_PREFIX + "/repos_data",
44 "repos_data": ADMIN_PREFIX + "/repos_data",
43 "repo_groups": ADMIN_PREFIX + "/repo_groups",
45 "repo_groups": ADMIN_PREFIX + "/repo_groups",
@@ -93,77 +95,100 b' def get_url_defs():'
93 "gist_show": ADMIN_PREFIX + "/gists/{gist_id}",
95 "gist_show": ADMIN_PREFIX + "/gists/{gist_id}",
94 "gist_delete": ADMIN_PREFIX + "/gists/{gist_id}/delete",
96 "gist_delete": ADMIN_PREFIX + "/gists/{gist_id}/delete",
95 "gist_edit": ADMIN_PREFIX + "/gists/{gist_id}/edit",
97 "gist_edit": ADMIN_PREFIX + "/gists/{gist_id}/edit",
96 "gist_edit_check_revision": ADMIN_PREFIX + "/gists/{gist_id}/edit/check_revision",
98 "gist_edit_check_revision": ADMIN_PREFIX
99 + "/gists/{gist_id}/edit/check_revision",
97 "gist_update": ADMIN_PREFIX + "/gists/{gist_id}/update",
100 "gist_update": ADMIN_PREFIX + "/gists/{gist_id}/update",
98 "gist_show_rev": ADMIN_PREFIX + "/gists/{gist_id}/rev/{revision}",
101 "gist_show_rev": ADMIN_PREFIX + "/gists/{gist_id}/rev/{revision}",
99 "gist_show_formatted": ADMIN_PREFIX + "/gists/{gist_id}/rev/{revision}/{format}",
102 "gist_show_formatted": ADMIN_PREFIX
100 "gist_show_formatted_path": ADMIN_PREFIX + "/gists/{gist_id}/rev/{revision}/{format}/{f_path}",
103 + "/gists/{gist_id}/rev/{revision}/{format}",
104 "gist_show_formatted_path": ADMIN_PREFIX
105 + "/gists/{gist_id}/rev/{revision}/{format}/{f_path}",
101 "login": ADMIN_PREFIX + "/login",
106 "login": ADMIN_PREFIX + "/login",
102 "logout": ADMIN_PREFIX + "/logout",
107 "logout": ADMIN_PREFIX + "/logout",
103 "register": ADMIN_PREFIX + "/register",
108 "register": ADMIN_PREFIX + "/register",
104 "reset_password": ADMIN_PREFIX + "/password_reset",
109 "reset_password": ADMIN_PREFIX + "/password_reset",
105 "reset_password_confirmation": ADMIN_PREFIX + "/password_reset_confirmation",
110 "reset_password_confirmation": ADMIN_PREFIX + "/password_reset_confirmation",
106 "admin_permissions_application": ADMIN_PREFIX + "/permissions/application",
111 "admin_permissions_application": ADMIN_PREFIX + "/permissions/application",
107 "admin_permissions_application_update": ADMIN_PREFIX + "/permissions/application/update",
112 "admin_permissions_application_update": ADMIN_PREFIX
113 + "/permissions/application/update",
108 "repo_commit_raw": "/{repo_name}/changeset-diff/{commit_id}",
114 "repo_commit_raw": "/{repo_name}/changeset-diff/{commit_id}",
109 "user_group_members_data": ADMIN_PREFIX + "/user_groups/{user_group_id}/members",
115 "user_group_members_data": ADMIN_PREFIX
116 + "/user_groups/{user_group_id}/members",
110 "user_groups_new": ADMIN_PREFIX + "/user_groups/new",
117 "user_groups_new": ADMIN_PREFIX + "/user_groups/new",
111 "user_groups_create": ADMIN_PREFIX + "/user_groups/create",
118 "user_groups_create": ADMIN_PREFIX + "/user_groups/create",
112 "edit_user_group": ADMIN_PREFIX + "/user_groups/{user_group_id}/edit",
119 "edit_user_group": ADMIN_PREFIX + "/user_groups/{user_group_id}/edit",
113 "edit_user_group_advanced_sync": ADMIN_PREFIX + "/user_groups/{user_group_id}/edit/advanced/sync",
120 "edit_user_group_advanced_sync": ADMIN_PREFIX
114 "edit_user_group_global_perms_update": ADMIN_PREFIX + "/user_groups/{user_group_id}/edit/global_permissions/update",
121 + "/user_groups/{user_group_id}/edit/advanced/sync",
122 "edit_user_group_global_perms_update": ADMIN_PREFIX
123 + "/user_groups/{user_group_id}/edit/global_permissions/update",
115 "user_groups_update": ADMIN_PREFIX + "/user_groups/{user_group_id}/update",
124 "user_groups_update": ADMIN_PREFIX + "/user_groups/{user_group_id}/update",
116 "user_groups_delete": ADMIN_PREFIX + "/user_groups/{user_group_id}/delete",
125 "user_groups_delete": ADMIN_PREFIX + "/user_groups/{user_group_id}/delete",
117 "edit_user_group_perms": ADMIN_PREFIX + "/user_groups/{user_group_id}/edit/permissions",
126 "edit_user_group_perms": ADMIN_PREFIX
118 "edit_user_group_perms_update": ADMIN_PREFIX + "/user_groups/{user_group_id}/edit/permissions/update",
127 + "/user_groups/{user_group_id}/edit/permissions",
128 "edit_user_group_perms_update": ADMIN_PREFIX
129 + "/user_groups/{user_group_id}/edit/permissions/update",
119 "edit_repo_group": "/{repo_group_name}/_edit",
130 "edit_repo_group": "/{repo_group_name}/_edit",
120 "edit_repo_group_perms": "/{repo_group_name:}/_settings/permissions",
131 "edit_repo_group_perms": "/{repo_group_name:}/_settings/permissions",
121 "edit_repo_group_perms_update": "/{repo_group_name}/_settings/permissions/update",
132 "edit_repo_group_perms_update": "/{repo_group_name}/_settings/permissions/update",
122 "edit_repo_group_advanced": "/{repo_group_name}/_settings/advanced",
133 "edit_repo_group_advanced": "/{repo_group_name}/_settings/advanced",
123 "edit_repo_group_advanced_delete": "/{repo_group_name}/_settings/advanced/delete",
134 "edit_repo_group_advanced_delete": "/{repo_group_name}/_settings/advanced/delete",
124 "edit_user_ssh_keys": ADMIN_PREFIX + "/users/{user_id}/edit/ssh_keys",
135 "edit_user_ssh_keys": ADMIN_PREFIX + "/users/{user_id}/edit/ssh_keys",
125 "edit_user_ssh_keys_generate_keypair": ADMIN_PREFIX + "/users/{user_id}/edit/ssh_keys/generate",
136 "edit_user_ssh_keys_generate_keypair": ADMIN_PREFIX
137 + "/users/{user_id}/edit/ssh_keys/generate",
126 "edit_user_ssh_keys_add": ADMIN_PREFIX + "/users/{user_id}/edit/ssh_keys/new",
138 "edit_user_ssh_keys_add": ADMIN_PREFIX + "/users/{user_id}/edit/ssh_keys/new",
127 "edit_user_ssh_keys_delete": ADMIN_PREFIX + "/users/{user_id}/edit/ssh_keys/delete",
139 "edit_user_ssh_keys_delete": ADMIN_PREFIX
140 + "/users/{user_id}/edit/ssh_keys/delete",
128 "users": ADMIN_PREFIX + "/users",
141 "users": ADMIN_PREFIX + "/users",
129 "users_data": ADMIN_PREFIX + "/users_data",
142 "users_data": ADMIN_PREFIX + "/users_data",
130 "users_create": ADMIN_PREFIX + "/users/create",
143 "users_create": ADMIN_PREFIX + "/users/create",
131 "users_new": ADMIN_PREFIX + "/users/new",
144 "users_new": ADMIN_PREFIX + "/users/new",
132 "user_edit": ADMIN_PREFIX + "/users/{user_id}/edit",
145 "user_edit": ADMIN_PREFIX + "/users/{user_id}/edit",
133 "user_edit_advanced": ADMIN_PREFIX + "/users/{user_id}/edit/advanced",
146 "user_edit_advanced": ADMIN_PREFIX + "/users/{user_id}/edit/advanced",
134 "user_edit_global_perms": ADMIN_PREFIX + "/users/{user_id}/edit/global_permissions",
147 "user_edit_global_perms": ADMIN_PREFIX
135 "user_edit_global_perms_update": ADMIN_PREFIX + "/users/{user_id}/edit/global_permissions/update",
148 + "/users/{user_id}/edit/global_permissions",
149 "user_edit_global_perms_update": ADMIN_PREFIX
150 + "/users/{user_id}/edit/global_permissions/update",
136 "user_update": ADMIN_PREFIX + "/users/{user_id}/update",
151 "user_update": ADMIN_PREFIX + "/users/{user_id}/update",
137 "user_delete": ADMIN_PREFIX + "/users/{user_id}/delete",
152 "user_delete": ADMIN_PREFIX + "/users/{user_id}/delete",
138 "user_create_personal_repo_group": ADMIN_PREFIX + "/users/{user_id}/create_repo_group",
153 "user_create_personal_repo_group": ADMIN_PREFIX
154 + "/users/{user_id}/create_repo_group",
139 "edit_user_auth_tokens": ADMIN_PREFIX + "/users/{user_id}/edit/auth_tokens",
155 "edit_user_auth_tokens": ADMIN_PREFIX + "/users/{user_id}/edit/auth_tokens",
140 "edit_user_auth_tokens_add": ADMIN_PREFIX + "/users/{user_id}/edit/auth_tokens/new",
156 "edit_user_auth_tokens_add": ADMIN_PREFIX
141 "edit_user_auth_tokens_delete": ADMIN_PREFIX + "/users/{user_id}/edit/auth_tokens/delete",
157 + "/users/{user_id}/edit/auth_tokens/new",
158 "edit_user_auth_tokens_delete": ADMIN_PREFIX
159 + "/users/{user_id}/edit/auth_tokens/delete",
142 "edit_user_emails": ADMIN_PREFIX + "/users/{user_id}/edit/emails",
160 "edit_user_emails": ADMIN_PREFIX + "/users/{user_id}/edit/emails",
143 "edit_user_emails_add": ADMIN_PREFIX + "/users/{user_id}/edit/emails/new",
161 "edit_user_emails_add": ADMIN_PREFIX + "/users/{user_id}/edit/emails/new",
144 "edit_user_emails_delete": ADMIN_PREFIX + "/users/{user_id}/edit/emails/delete",
162 "edit_user_emails_delete": ADMIN_PREFIX + "/users/{user_id}/edit/emails/delete",
145 "edit_user_ips": ADMIN_PREFIX + "/users/{user_id}/edit/ips",
163 "edit_user_ips": ADMIN_PREFIX + "/users/{user_id}/edit/ips",
146 "edit_user_ips_add": ADMIN_PREFIX + "/users/{user_id}/edit/ips/new",
164 "edit_user_ips_add": ADMIN_PREFIX + "/users/{user_id}/edit/ips/new",
147 "edit_user_ips_delete": ADMIN_PREFIX + "/users/{user_id}/edit/ips/delete",
165 "edit_user_ips_delete": ADMIN_PREFIX + "/users/{user_id}/edit/ips/delete",
148 "edit_user_perms_summary": ADMIN_PREFIX + "/users/{user_id}/edit/permissions_summary",
166 "edit_user_perms_summary": ADMIN_PREFIX
149 "edit_user_perms_summary_json": ADMIN_PREFIX + "/users/{user_id}/edit/permissions_summary/json",
167 + "/users/{user_id}/edit/permissions_summary",
168 "edit_user_perms_summary_json": ADMIN_PREFIX
169 + "/users/{user_id}/edit/permissions_summary/json",
150 "edit_user_audit_logs": ADMIN_PREFIX + "/users/{user_id}/edit/audit",
170 "edit_user_audit_logs": ADMIN_PREFIX + "/users/{user_id}/edit/audit",
151 "edit_user_audit_logs_download": ADMIN_PREFIX + "/users/{user_id}/edit/audit/download",
171 "edit_user_audit_logs_download": ADMIN_PREFIX
172 + "/users/{user_id}/edit/audit/download",
152 "admin_settings": ADMIN_PREFIX + "/settings",
173 "admin_settings": ADMIN_PREFIX + "/settings",
153 "admin_settings_update": ADMIN_PREFIX + "/settings/update",
174 "admin_settings_update": ADMIN_PREFIX + "/settings/update",
154 "admin_settings_global": ADMIN_PREFIX + "/settings/global",
175 "admin_settings_global": ADMIN_PREFIX + "/settings/global",
155 "admin_settings_global_update": ADMIN_PREFIX + "/settings/global/update",
176 "admin_settings_global_update": ADMIN_PREFIX + "/settings/global/update",
156 "admin_settings_vcs": ADMIN_PREFIX + "/settings/vcs",
177 "admin_settings_vcs": ADMIN_PREFIX + "/settings/vcs",
157 "admin_settings_vcs_update": ADMIN_PREFIX + "/settings/vcs/update",
178 "admin_settings_vcs_update": ADMIN_PREFIX + "/settings/vcs/update",
158 "admin_settings_vcs_svn_pattern_delete": ADMIN_PREFIX + "/settings/vcs/svn_pattern_delete",
179 "admin_settings_vcs_svn_pattern_delete": ADMIN_PREFIX
180 + "/settings/vcs/svn_pattern_delete",
159 "admin_settings_mapping": ADMIN_PREFIX + "/settings/mapping",
181 "admin_settings_mapping": ADMIN_PREFIX + "/settings/mapping",
160 "admin_settings_mapping_update": ADMIN_PREFIX + "/settings/mapping/update",
182 "admin_settings_mapping_update": ADMIN_PREFIX + "/settings/mapping/update",
161 "admin_settings_visual": ADMIN_PREFIX + "/settings/visual",
183 "admin_settings_visual": ADMIN_PREFIX + "/settings/visual",
162 "admin_settings_visual_update": ADMIN_PREFIX + "/settings/visual/update",
184 "admin_settings_visual_update": ADMIN_PREFIX + "/settings/visual/update",
163 "admin_settings_issuetracker": ADMIN_PREFIX + "/settings/issue-tracker",
185 "admin_settings_issuetracker": ADMIN_PREFIX + "/settings/issue-tracker",
164 "admin_settings_issuetracker_update": ADMIN_PREFIX + "/settings/issue-tracker/update",
186 "admin_settings_issuetracker_update": ADMIN_PREFIX
165 "admin_settings_issuetracker_test": ADMIN_PREFIX + "/settings/issue-tracker/test",
187 + "/settings/issue-tracker/update",
166 "admin_settings_issuetracker_delete": ADMIN_PREFIX + "/settings/issue-tracker/delete",
188 "admin_settings_issuetracker_test": ADMIN_PREFIX
189 + "/settings/issue-tracker/test",
190 "admin_settings_issuetracker_delete": ADMIN_PREFIX
191 + "/settings/issue-tracker/delete",
167 "admin_settings_email": ADMIN_PREFIX + "/settings/email",
192 "admin_settings_email": ADMIN_PREFIX + "/settings/email",
168 "admin_settings_email_update": ADMIN_PREFIX + "/settings/email/update",
193 "admin_settings_email_update": ADMIN_PREFIX + "/settings/email/update",
169 "admin_settings_hooks": ADMIN_PREFIX + "/settings/hooks",
194 "admin_settings_hooks": ADMIN_PREFIX + "/settings/hooks",
@@ -189,7 +214,8 b' def get_url_defs():'
189 "admin_permissions_overview": ADMIN_PREFIX + "/permissions/overview",
214 "admin_permissions_overview": ADMIN_PREFIX + "/permissions/overview",
190 "admin_permissions_ssh_keys": ADMIN_PREFIX + "/permissions/ssh_keys",
215 "admin_permissions_ssh_keys": ADMIN_PREFIX + "/permissions/ssh_keys",
191 "admin_permissions_ssh_keys_data": ADMIN_PREFIX + "/permissions/ssh_keys/data",
216 "admin_permissions_ssh_keys_data": ADMIN_PREFIX + "/permissions/ssh_keys/data",
192 "admin_permissions_ssh_keys_update": ADMIN_PREFIX + "/permissions/ssh_keys/update",
217 "admin_permissions_ssh_keys_update": ADMIN_PREFIX
218 + "/permissions/ssh_keys/update",
193 "pullrequest_show": "/{repo_name}/pull-request/{pull_request_id}",
219 "pullrequest_show": "/{repo_name}/pull-request/{pull_request_id}",
194 "pull_requests_global": ADMIN_PREFIX + "/pull-request/{pull_request_id}",
220 "pull_requests_global": ADMIN_PREFIX + "/pull-request/{pull_request_id}",
195 "pull_requests_global_0": ADMIN_PREFIX + "/pull_requests/{pull_request_id}",
221 "pull_requests_global_0": ADMIN_PREFIX + "/pull_requests/{pull_request_id}",
@@ -197,8 +223,10 b' def get_url_defs():'
197 "notifications_show_all": ADMIN_PREFIX + "/notifications",
223 "notifications_show_all": ADMIN_PREFIX + "/notifications",
198 "notifications_mark_all_read": ADMIN_PREFIX + "/notifications_mark_all_read",
224 "notifications_mark_all_read": ADMIN_PREFIX + "/notifications_mark_all_read",
199 "notifications_show": ADMIN_PREFIX + "/notifications/{notification_id}",
225 "notifications_show": ADMIN_PREFIX + "/notifications/{notification_id}",
200 "notifications_update": ADMIN_PREFIX + "/notifications/{notification_id}/update",
226 "notifications_update": ADMIN_PREFIX
201 "notifications_delete": ADMIN_PREFIX + "/notifications/{notification_id}/delete",
227 + "/notifications/{notification_id}/update",
228 "notifications_delete": ADMIN_PREFIX
229 + "/notifications/{notification_id}/delete",
202 "my_account": ADMIN_PREFIX + "/my_account/profile",
230 "my_account": ADMIN_PREFIX + "/my_account/profile",
203 "my_account_edit": ADMIN_PREFIX + "/my_account/edit",
231 "my_account_edit": ADMIN_PREFIX + "/my_account/edit",
204 "my_account_update": ADMIN_PREFIX + "/my_account/update",
232 "my_account_update": ADMIN_PREFIX + "/my_account/update",
@@ -276,7 +304,8 b' def get_url_defs():'
276 "edit_repo_advanced_journal": "/{repo_name}/settings/advanced/journal",
304 "edit_repo_advanced_journal": "/{repo_name}/settings/advanced/journal",
277 "repo_stats": "/{repo_name}/repo_stats/{commit_id}",
305 "repo_stats": "/{repo_name}/repo_stats/{commit_id}",
278 "repo_refs_data": "/{repo_name}/refs-data",
306 "repo_refs_data": "/{repo_name}/refs-data",
279 "repo_refs_changelog_data": "/{repo_name}/refs-data-changelog"
307 "repo_refs_changelog_data": "/{repo_name}/refs-data-changelog",
308 "repo_artifacts_stream_store": "/_file_store/stream-upload",
280 }
309 }
281
310
282
311
@@ -369,7 +369,7 b' class TestRepositoryMerge(object):'
369 self.repo_id, self.workspace_id, self.target_ref, self.source_repo,
369 self.repo_id, self.workspace_id, self.target_ref, self.source_repo,
370 self.source_ref, dry_run=True)
370 self.source_ref, dry_run=True)
371
371
372 # Multiple merges may differ in their commit id. Therefore we set the
372 # Multiple merges may differ in their commit id. Therefore, we set the
373 # commit id to `None` before comparing the merge responses.
373 # commit id to `None` before comparing the merge responses.
374 new_merge_ref = merge_response.merge_ref.commit_id = None
374 new_merge_ref = merge_response.merge_ref.commit_id = None
375 merge_response.merge_ref = new_merge_ref
375 merge_response.merge_ref = new_merge_ref
General Comments 0
You need to be logged in to leave comments. Login now