Skip to content

Commit

Permalink
Fix unit test in PowerBI connector. (#800)
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand authored Sep 7, 2022
1 parent 4e40ed2 commit 8a7b329
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bi-connectors/PowerBIConnector/src/OpenSearchProject.query.pq
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8a7b329

Please sign in to comment.