File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FactoryBot . define do
22 factory :repository_mirror do
3- url { ' ssh://git@example.com:22/john_doe/john_doe/john_doe .git' }
3+ sequence ( : url) { | n | " ssh://git@example.com:22/john_doe/john_doe/john_doe_ #{ n } .git" }
44 push_mode { 0 }
55 association :repository , factory : :repository_gitolite
66 end
Original file line number Diff line number Diff line change 1515 # There is an isolation issue in tests.
1616 # Try to workaround it...
1717 def test_user
18- 'redmine_git_user1_15 '
18+ 'redmine_git_user1_12 '
1919 end
2020
2121 describe 'Valid SSH key build' do
@@ -104,7 +104,7 @@ def test_user
104104 end
105105
106106 it 'has a fingerprint' do
107- expect ( ssh_key . fingerprint ) . to eq 'af:af:da:41:5f:7e:6b:dd:e3:d9:bc:78:a6:8a:fc:be'
107+ expect ( ssh_key . fingerprint ) . to eq "SHA256:VgXjWgUbURtD6go5HV7Eop2UqVjmIAI68shaB66yv+c"
108108 end
109109
110110 it 'has a owner' do
@@ -236,15 +236,15 @@ def test_user
236236 end
237237
238238 it 'should have 6 keys' do
239- expect ( GitolitePublicKey . all . length ) . to be == 6
239+ expect ( GitolitePublicKey . all . length ) . to be == 5
240240 end
241241
242242 it 'should have 2 user keys' do
243243 expect ( GitolitePublicKey . user_key . length ) . to be == 2
244244 end
245245
246246 it 'should have 4 deploy keys' do
247- expect ( GitolitePublicKey . deploy_key . length ) . to be == 4
247+ expect ( GitolitePublicKey . deploy_key . length ) . to be == 3
248248 end
249249
250250 it 'user1 should have 2 keys' do
You can’t perform that action at this time.
0 commit comments