Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-01 12:43:06 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-01 12:43:06 +0300
commit0e548473397f96246f3f70548e48d41fc98ebf00 (patch)
tree85f5c2d5ed02d7d02cec2c0354fd3dd63b7c0d15 /spec/models/ci
parent9d8257238ee1a28d90958e6f8f43921b172f14a1 (diff)
Fix: CI token removal regression from build trace
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/build_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 82623bd8190..ca070a14975 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -178,6 +178,17 @@ describe Ci::Build do
it { is_expected.to include(text) }
it { expect(subject.length).to be >= text.length }
end
+
+ context 'if build.trace hides token' do
+ let(:token) { 'my_secret_token' }
+
+ before do
+ build.project.update_attributes(token: token)
+ build.update_attributes(trace: token)
+ end
+
+ it { is_expected.to_not include(token) }
+ end
end
describe :timeout do