Fix spec failures
This commit is contained in:
parent
5790684d1f
commit
748dd35c65
2 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ describe Gitlab::Auth, lib: true do
|
||||||
def full_authentication_abilities
|
def full_authentication_abilities
|
||||||
read_authentication_abilities + [
|
read_authentication_abilities + [
|
||||||
:push_code,
|
:push_code,
|
||||||
:update_container_image
|
:create_container_image
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,7 +8,7 @@ describe Ci::Build, models: true do
|
||||||
it 'obfuscates project runners token' do
|
it 'obfuscates project runners token' do
|
||||||
allow(build).to receive(:raw_trace).and_return("Test: #{build.project.runners_token}")
|
allow(build).to receive(:raw_trace).and_return("Test: #{build.project.runners_token}")
|
||||||
|
|
||||||
expect(build.trace).to eq("Test: xxxxxx")
|
expect(build.trace).to eq("Test: xxxxxxxxxxxxxxxxxxxx")
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'empty project runners token' do
|
it 'empty project runners token' do
|
||||||
|
|
Loading…
Reference in a new issue