From 36e64e679dfc3e5989445f06aa238962df6ca98d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 2 Sep 2022 21:10:02 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/tasks/gitlab/usage_data_rake_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/tasks') diff --git a/spec/tasks/gitlab/usage_data_rake_spec.rb b/spec/tasks/gitlab/usage_data_rake_spec.rb index f05b7876fdb..207a9884090 100644 --- a/spec/tasks/gitlab/usage_data_rake_spec.rb +++ b/spec/tasks/gitlab/usage_data_rake_spec.rb @@ -31,6 +31,12 @@ RSpec.describe 'gitlab:usage data take tasks', :silence_stdout do end end + describe 'dump_non_sql_in_json' do + it 'dumps non SQL data in json format' do + expect { run_rake_task('gitlab:usage_data:dump_non_sql_in_json') }.to output(/.*"recorded_at":.*/).to_stdout + end + end + describe 'generate_sql_metrics_fixture' do it 'generates fixture file correctly' do run_rake_task('gitlab:usage_data:generate_sql_metrics_queries') -- cgit v1.2.3