Skip to content

Test protected branches

Changes in Gitaly etc. have revealed we don't have any integration tests for protected branches (https://sentry.gitlap.com/gitlab/devgitlaborg/issues/72412/). We should:

  1. Use the UI to create a protected branch
  2. Attempt to push, expect it to fail
  3. Unprotect and push, expect it to succeed