Opensearch compatibility: Blob search fails in GDK

While conducting compatibility testing for Opensearch we discovered that Opensearch 1.2.4 and GitLab branch 299769-update-elasticsearch-client-deprecate-types GDK end to end tests that depend on finding blob types, i.e. searching the main index do not succeed.

Further, rebasing main branch onto 299769-update-elasticsearch-client-deprecate-types did not help in making blob types searchable.zv The following tests failed in a local GDK end to end test run as called by this command: WEBDRIVER_HEADLESS=true bundle exec bin/qa Test::Instance::All http://gdk.test:3000 -- qa/specs/features/ee/api/9_enablement/elasticsearch --tag orchestrated --tag elasticsearch

rspec ./qa/specs/features/ee/api/9_enablement/elasticsearch/nightly_elasticsearch_test_spec.rb:42 # Enablement:Search When using elasticsearch API to search for a known blob searches public project and finds a blob as an non-member user
rspec ./qa/specs/features/ee/api/9_enablement/elasticsearch/elasticsearch_api_spec.rb:40 # Enablement:Search When using elasticsearch API to search for a known blob searches public project and finds a blob as an non-member user
rspec ./qa/specs/features/ee/api/9_enablement/elasticsearch/elasticsearch_api_spec.rb:49 # Enablement:Search When using elasticsearch API to search for a known blob When searching a private repository finds a blob as an authorized user

The following UI tests also failed when calling this command: WEBDRIVER_HEADLESS=true bundle exec bin/qa Test::Instance::All http://gdk.test:3000 -- qa/specs/features/ee/browser_ui/9_enablement/elasticsearch --tag orchestrated --tag elasticsearch

rspec ./qa/specs/features/ee/api/9_enablement/elasticsearch/index_tests/main_index/blob_index_spec.rb:41 # Enablement:Search When using elasticsearch API to search for a public blob finds blob that matches file content
Edited by Erick Banks