Test failure spec/views/admin/application_settings/general.html.haml_spec.rb
Failures:
1) admin/application_settings/general.html.haml sourcegraph integration when sourcegraph feature is enabled show the form
Failure/Error: super
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://elastic:changeme@elasticsearch:9200/gitlab-test-migrations/_all/20201123123400 with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip,deflate', 'Authorization'=>'Basic ZWxhc3RpYzpjaGFuZ2VtZQ==', 'Content-Type'=>'application/json', 'Date'=>'Fri, 08 Jan 2021 04:55:51 GMT', 'User-Agent'=>'Faraday v1.0.1', 'X-Opaque-Id'=>'ac31c8cf5d4c324e679fca43969e8270'}
You can stub this request with the following snippet:
stub_request(:get, "http://elastic:changeme@elasticsearch:9200/gitlab-test-migrations/_all/20201123123400").
with(
headers: {
'Accept'=>'*/*',
'Accept-Encoding'=>'gzip,deflate',
'Authorization'=>'Basic ZWxhc3RpYzpjaGFuZ2VtZQ==',
'Content-Type'=>'application/json',
'Date'=>'Fri, 08 Jan 2021 04:55:51 GMT',
'User-Agent'=>'Faraday v1.0.1',
'X-Opaque-Id'=>'ac31c8cf5d4c324e679fca43969e8270'
}).
to_return(status: 200, body: "", headers: {})
============================================================
# ./lib/gitlab/instrumentation/elasticsearch_transport.rb:12:in `perform_request'
# ./ee/app/models/elastic/migration_record.rb:35:in `load_from_index'
# ./ee/app/services/elastic/data_migration_service.rb:40:in `migration_has_finished_uncached?'
# ./ee/app/services/elastic/data_migration_service.rb:33:in `block in migration_has_finished?'
# ./ee/app/services/elastic/data_migration_service.rb:32:in `migration_has_finished?'
# ./ee/app/services/elastic/data_migration_service.rb:45:in `block in pending_migrations?'
# ./ee/app/services/elastic/data_migration_service.rb:44:in `any?'
# ./ee/app/services/elastic/data_migration_service.rb:44:in `pending_migrations?'
# ./ee/app/views/admin/application_settings/_elasticsearch_form.html.haml:38:in `block in _ee_app_views_admin_application_settings__elasticsearch_form_html_haml___3543728545181470337_3126500'
# ./ee/app/views/admin/application_settings/_elasticsearch_form.html.haml:17:in `_ee_app_views_admin_application_settings__elasticsearch_form_html_haml___3543728545181470337_3126500'
# ./app/helpers/application_helper.rb:19:in `render_if_exists'
# ./app/views/admin/application_settings/general.html.haml:107:in `_app_views_admin_application_settings_general_html_haml__2996429039218888585_3125960'
# ./spec/views/admin/application_settings/general.html.haml_spec.rb:20:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:354:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:345:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:341:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:341:in `block (2 levels) in <top (required)>'
2) admin/application_settings/general.html.haml sourcegraph integration when sourcegraph feature is disabled show the form
Failure/Error: super
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://elastic:changeme@elasticsearch:9200/gitlab-test-migrations/_all/20201123123400 with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip,deflate', 'Authorization'=>'Basic ZWxhc3RpYzpjaGFuZ2VtZQ==', 'Content-Type'=>'application/json', 'Date'=>'Fri, 08 Jan 2021 04:55:52 GMT', 'User-Agent'=>'Faraday v1.0.1', 'X-Opaque-Id'=>'86b8f1e156033444420ccb35f8383e0e'}
You can stub this request with the following snippet:
stub_request(:get, "http://elastic:changeme@elasticsearch:9200/gitlab-test-migrations/_all/20201123123400").
with(
headers: {
'Accept'=>'*/*',
'Accept-Encoding'=>'gzip,deflate',
'Authorization'=>'Basic ZWxhc3RpYzpjaGFuZ2VtZQ==',
'Content-Type'=>'application/json',
'Date'=>'Fri, 08 Jan 2021 04:55:52 GMT',
'User-Agent'=>'Faraday v1.0.1',
'X-Opaque-Id'=>'86b8f1e156033444420ccb35f8383e0e'
}).
to_return(status: 200, body: "", headers: {})
============================================================
# ./lib/gitlab/instrumentation/elasticsearch_transport.rb:12:in `perform_request'
# ./ee/app/models/elastic/migration_record.rb:35:in `load_from_index'
# ./ee/app/services/elastic/data_migration_service.rb:40:in `migration_has_finished_uncached?'
# ./ee/app/services/elastic/data_migration_service.rb:33:in `block in migration_has_finished?'
# ./ee/app/services/elastic/data_migration_service.rb:32:in `migration_has_finished?'
# ./ee/app/services/elastic/data_migration_service.rb:45:in `block in pending_migrations?'
# ./ee/app/services/elastic/data_migration_service.rb:44:in `any?'
# ./ee/app/services/elastic/data_migration_service.rb:44:in `pending_migrations?'
# ./ee/app/views/admin/application_settings/_elasticsearch_form.html.haml:38:in `block in _ee_app_views_admin_application_settings__elasticsearch_form_html_haml___3543728545181470337_3126500'
# ./ee/app/views/admin/application_settings/_elasticsearch_form.html.haml:17:in `_ee_app_views_admin_application_settings__elasticsearch_form_html_haml___3543728545181470337_3126500'
# ./app/helpers/application_helper.rb:19:in `render_if_exists'
# ./app/views/admin/application_settings/general.html.haml:107:in `_app_views_admin_application_settings_general_html_haml__2996429039218888585_3125960'
# ./spec/views/admin/application_settings/general.html.haml_spec.rb:30:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:354:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:345:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:341:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:341:in `block (2 levels) in <top (required)>'
Finished in 30 minutes 9 seconds (files took 48.75 seconds to load)
3804 examples, 2 failures, 6 pending
Failed examples:
rspec ./spec/views/admin/application_settings/general.html.haml_spec.rb:19 # admin/application_settings/general.html.haml sourcegraph integration when sourcegraph feature is enabled show the form
rspec ./spec/views/admin/application_settings/general.html.haml_spec.rb:29 # admin/application_settings/general.html.haml sourcegraph integration when sourcegraph feature is disabled show the form
Failed jobs: