@@ -160,4 +174,26 @@ RSpec.describe Quality::TestLevel do
...
@@ -160,4 +174,26 @@ RSpec.describe Quality::TestLevel do
%r{Test level for spec/unknown/foo_spec.rb couldn't be set. Please rename the file properly or change the test level detection regexes in .+/lib/quality/test_level.rb.})
%r{Test level for spec/unknown/foo_spec.rb couldn't be set. Please rename the file properly or change the test level detection regexes in .+/lib/quality/test_level.rb.})
context'user does not have push right to repository'do
context'user does not have push right to repository'do
it_behaves_like'misconfigured dashboard service response',:forbidden,"You are not allowed to push into this branch. Create another branch or open a merge request."
it'returns an appropriate message and status code',:aggregate_failuresdo
it_behaves_like'misconfigured dashboard service response',:bad_request,"There was an error updating the dashboard, branch named: existing_branch already exists."
it'returns an appropriate message and status code',:aggregate_failuresdo
@@ -75,13 +79,13 @@ describe RepositoryForkWorker do
...
@@ -75,13 +79,13 @@ describe RepositoryForkWorker do
it'handles bad fork'do
it'handles bad fork'do
error_message="Unable to fork project #{forked_project.id} for repository #{project.disk_path} -> #{forked_project.disk_path}: Failed to create fork repository"
error_message="Unable to fork project #{forked_project.id} for repository #{project.disk_path} -> #{forked_project.disk_path}: Failed to create fork repository"
@@ -92,7 +96,7 @@ describe RepositoryForkWorker do
...
@@ -92,7 +96,7 @@ describe RepositoryForkWorker do
it"handles LFS objects link failure"do
it"handles LFS objects link failure"do
error_message="Unable to fork project #{forked_project.id} for repository #{project.disk_path} -> #{forked_project.disk_path}: Source project has too many LFS objects"
error_message="Unable to fork project #{forked_project.id} for repository #{project.disk_path} -> #{forked_project.disk_path}: Source project has too many LFS objects"