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
path: root/spec/lib
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-03-06 19:18:32 +0300
committerShinya Maeda <shinya@gitlab.com>2018-03-06 19:40:47 +0300
commitb8ce910ff491d890670c1e00bb0a752d00659227 (patch)
treeb50081ea8a824754efcc64e1caedecca9c87596e /spec/lib
parent2a97550d2feb128f9b0810eb36328b958608ed6c (diff)
Set sha256 checksum when archiving traces
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/ci/trace_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/trace_spec.rb b/spec/lib/gitlab/ci/trace_spec.rb
index 1c73043cfbd..a514747b940 100644
--- a/spec/lib/gitlab/ci/trace_spec.rb
+++ b/spec/lib/gitlab/ci/trace_spec.rb
@@ -414,6 +414,7 @@ describe Gitlab::Ci::Trace do
expect(File.exist?(src_path)).to be_falsy
expect(src_checksum)
.to eq(Digest::SHA256.file(build.job_artifacts_trace.file.path).digest)
+ expect(build.job_artifacts_trace.file_sha256).to eq(src_checksum)
end
end
@@ -439,6 +440,7 @@ describe Gitlab::Ci::Trace do
expect(build.old_trace).to be_nil
expect(src_checksum)
.to eq(Digest::SHA256.file(build.job_artifacts_trace.file.path).digest)
+ expect(build.job_artifacts_trace.file_sha256).to eq(src_checksum)
end
end