File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
FactoryBot . define do
2
2
factory :repository_mirror do
3
- url { ' ssh://[email protected] :22/john_doe/john_doe/john_doe .git' }
3
+ sequence ( : url) { | n | " ssh://[email protected] :22/john_doe/john_doe/john_doe_ #{ n } .git" }
4
4
push_mode { 0 }
5
5
association :repository , factory : :repository_gitolite
6
6
end
Original file line number Diff line number Diff line change 15
15
# There is an isolation issue in tests.
16
16
# Try to workaround it...
17
17
def test_user
18
- 'redmine_git_user1_15 '
18
+ 'redmine_git_user1_12 '
19
19
end
20
20
21
21
describe 'Valid SSH key build' do
@@ -104,7 +104,7 @@ def test_user
104
104
end
105
105
106
106
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"
108
108
end
109
109
110
110
it 'has a owner' do
@@ -236,15 +236,15 @@ def test_user
236
236
end
237
237
238
238
it 'should have 6 keys' do
239
- expect ( GitolitePublicKey . all . length ) . to be == 6
239
+ expect ( GitolitePublicKey . all . length ) . to be == 5
240
240
end
241
241
242
242
it 'should have 2 user keys' do
243
243
expect ( GitolitePublicKey . user_key . length ) . to be == 2
244
244
end
245
245
246
246
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
248
248
end
249
249
250
250
it 'user1 should have 2 keys' do
You can’t perform that action at this time.
0 commit comments