Add index count to index info (#1229)
This commit is contained in:
@@ -1052,7 +1052,7 @@ def test_attempt_to_create_indexes_on_main_when_sync_replica_is_down():
|
||||
# 5/
|
||||
expected_data = {
|
||||
("sync_replica1", "127.0.0.1:10001", "sync", 0, 0, "invalid"),
|
||||
("sync_replica2", "127.0.0.1:10002", "sync", 5, 0, "ready"),
|
||||
("sync_replica2", "127.0.0.1:10002", "sync", 6, 0, "ready"),
|
||||
}
|
||||
res_from_main = interactive_mg_runner.MEMGRAPH_INSTANCES["main"].query(QUERY_TO_CHECK)
|
||||
assert res_from_main == interactive_mg_runner.MEMGRAPH_INSTANCES["sync_replica2"].query(QUERY_TO_CHECK)
|
||||
|
||||
@@ -18,15 +18,15 @@ from common import Row, cursor, execute_and_fetch_all
|
||||
def test_show_index_info(cursor):
|
||||
index_info = execute_and_fetch_all(cursor, "SHOW INDEX INFO;")
|
||||
expected_index_info = {
|
||||
("label", "Anatomy", None),
|
||||
("label", "Compound", None),
|
||||
("label", "Disease", None),
|
||||
("label", "Gene", None),
|
||||
("label+property", "Compound", "id"),
|
||||
("label+property", "Compound", "inchikey"),
|
||||
("label+property", "Compound", "mgid"),
|
||||
("label+property", "Gene", "i5"),
|
||||
("label+property", "Gene", "id"),
|
||||
("label", "Anatomy", None, 0),
|
||||
("label", "Compound", None, 0),
|
||||
("label", "Disease", None, 0),
|
||||
("label", "Gene", None, 0),
|
||||
("label+property", "Compound", "id", 0),
|
||||
("label+property", "Compound", "inchikey", 0),
|
||||
("label+property", "Compound", "mgid", 0),
|
||||
("label+property", "Gene", "i5", 0),
|
||||
("label+property", "Gene", "id", 0),
|
||||
}
|
||||
assert set(index_info) == expected_index_info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user