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:
authorShinya Maeda <shinya@gitlab.com>2019-04-02 11:40:07 +0300
committerShinya Maeda <shinya@gitlab.com>2019-04-05 11:50:26 +0300
commit5ac7d2df7a9893d4c98662b639abfb27900481ef (patch)
treeb3c4ff6224f781034a18b679be02f5822f6a3e7d /spec/models/ci/build_spec.rb
parent9646e451a8d7006d2c77ca90e6ff93674b99c9cc (diff)
Disable support for legacy tracesdisable-support-for-legacy-traces
Legacy traces are not generated for long time in favor of live trace, etc. Disabling legacy trace support helps us to investigate the usage of the legacy deprecated traces, and eventually we remove the related code completely.
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r--spec/models/ci/build_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 697fe3fda06..2a1872dd7d8 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -776,6 +776,14 @@ describe Ci::Build do
end
it { is_expected.to be_truthy }
+
+ context 'when ci_enable_legacy_traces feature flag is disabled' do
+ before do
+ stub_feature_flags(ci_enable_legacy_traces: false)
+ end
+
+ it { is_expected.to be_falsy }
+ end
end
context 'when old trace does not exist' do
@@ -799,6 +807,16 @@ describe Ci::Build do
it "expect to receive data from database" do
is_expected.to eq('old trace')
end
+
+ context 'when ci_enable_legacy_traces feature flag is disabled' do
+ before do
+ stub_feature_flags(ci_enable_legacy_traces: false)
+ end
+
+ it 'does not return old trace' do
+ is_expected.to be_nil
+ end
+ end
end
describe '#erase_old_trace!' do