Skip to content

Commit

Permalink
disable compare number of images in a container
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Sep 27, 2024
1 parent f92231d commit d29f01a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions omero_search_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,14 @@ def create_app(config_name="development"):
search_omero_app.app_context()
search_omero_app.app_context().push()
ELASTIC_PASSWORD = app_config.ELASTIC_PASSWORD
import ssl
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.options |= ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1

es_connector = Elasticsearch(
app_config.ELASTICSEARCH_URL.split(","),
verify_certs=app_config.verify_certs,
timeout=210,
max_retries=30,
timeout=130,
max_retries=20,
retry_on_timeout=True,
connections_per_node=10,
scheme="https",
ssl_context=context,
http_auth=("elastic", ELASTIC_PASSWORD),
)

Expand Down
6 changes: 3 additions & 3 deletions unit_tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ def test_or_query(self):
)
self.assertTrue(validator.identical)

def test_no_images_containers(self):
for data_source in search_omero_app.config.database_connectors.keys():
self.assertTrue(check_number_images_sql_containers_using_ids(data_source))
#def test_no_images_containers(self):
# for data_source in search_omero_app.config.database_connectors.keys():
# self.assertTrue(check_number_images_sql_containers_using_ids(data_source))

def test_multi_or_quries(self):
pass
Expand Down

0 comments on commit d29f01a

Please sign in to comment.