From 8a7b3291725f62cb4f0427645ae25b30f62051a9 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Wed, 7 Sep 2022 07:27:25 -0700 Subject: [PATCH] Fix unit test in PowerBI connector. (#800) Signed-off-by: Yury-Fridlyand --- .../PowerBIConnector/src/OpenSearchProject.query.pq | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bi-connectors/PowerBIConnector/src/OpenSearchProject.query.pq b/bi-connectors/PowerBIConnector/src/OpenSearchProject.query.pq index 19c84006bf..45026f96a3 100644 --- a/bi-connectors/PowerBIConnector/src/OpenSearchProject.query.pq +++ b/bi-connectors/PowerBIConnector/src/OpenSearchProject.query.pq @@ -7,13 +7,14 @@ shared MyExtension.UnitTest = Host = "localhost", Port = 9200, UseSSL = false, + HostnameVerification = false, facts = { Fact("Connection Test", 7, let - Source = OpenSearch.Contents(Host, Port, UseSSL), + Source = OpenSearchProject.Contents(Host, Port, UseSSL, HostnameVerification), no_of_columns = Table.ColumnCount(Source) in no_of_columns @@ -22,7 +23,7 @@ shared MyExtension.UnitTest = #table(type table [bool0 = logical], { {null}, {false}, {true} }), let - Source = OpenSearch.Contents(Host, Port, UseSSL), + Source = OpenSearchProject.Contents(Host, Port, UseSSL, HostnameVerification), calcs_null_null = Source{[Item="calcs",Schema=null,Catalog=null]}[Data], grouped = Table.Group(calcs_null_null, {"bool0"}, {}) in