expect(json_response['message']).toeql('Your push has been rejected, because this repository has exceeded its size limit of 99 MB by 1 MB. Please contact your GitLab administrator for more information.')
expect(json_response['message']).toeql('Your push has been rejected, because this repository has exceeded its size limit of 100 MB by 160 MB. Please contact your GitLab administrator for more information.')
"This merge request cannot be merged, #{base_message}"
end
defpush_error(exceeded_size=nil)
"Your push has been rejected, #{base_message(exceeded_size)}. #{more_info_message}"
defpush_error(change_size=0)
"Your push has been rejected, #{base_message(change_size)}. #{more_info_message}"
end
defnew_changes_error
...
...
@@ -32,17 +32,13 @@ module Gitlab
end
defabove_size_limit_message
"The size of this repository (#{formatted(current_size)}) exceeds the limit of #{formatted(limit)} by #{formatted(size_to_remove)}. You won't be able to push new code to this project. #{more_info_message}"
"The size of this repository (#{formatted(current_size)}) exceeds the limit of #{formatted(limit)} by #{formatted(exceeded_size)}. You won't be able to push new code to this project. #{more_info_message}"
end
private
defbase_message(exceeded_size=nil)
"because this repository has exceeded its size limit of #{formatted(limit)} by #{formatted(size_to_remove(exceeded_size))}"
end
defsize_to_remove(exceeded_size=nil)
exceeded_size||checker.exceeded_size
defbase_message(change_size=0)
"because this repository has exceeded its size limit of #{formatted(limit)} by #{formatted(exceeded_size(change_size))}"