Commit bc7a4eed authored by Stan Hu's avatar Stan Hu

Add support for testing Git over HTTP with LDAP users

This would have helped catch https://gitlab.com/gitlab-org/gitlab-ce/issues/50579.
parent 0e9dc23d
......@@ -28,8 +28,13 @@ module QA
end
def use_default_credentials
self.username = Runtime::User.username
self.password = Runtime::User.password
if ::QA::Runtime::User.ldap_user?
self.username = Runtime::User.ldap_username
self.password = Runtime::User.ldap_password
else
self.username = Runtime::User.username
self.password = Runtime::User.password
end
end
def clone(opts = '')
......
module QA
describe 'clone code from the repository' do
describe 'clone code from the repository', :ldap do
context 'with regular account over http' do
let(:location) do
Page::Project::Show.act do
......
module QA
describe 'branch protection support' do
describe 'branch protection support', :ldap do
let(:branch_name) { 'protected-branch' }
let(:commit_message) { 'Protected push commit message' }
let(:project) do
......
module QA
describe 'push code to repository' do
describe 'push code to repository', :ldap do
context 'with regular account over http' do
it 'user pushes code to the repository' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment