Skip to content

Commit

Permalink
test(csharp/test/Drivers/Interop/Snowflake) Add test case for showTer…
Browse files Browse the repository at this point in the history
…seTable and showTable (#1469)
  • Loading branch information
ruowan authored Jan 23, 2024
1 parent b948fa6 commit 65d2bed
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions csharp/test/Drivers/Interop/Snowflake/ClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,42 @@ public void CanClientExecuteQueryWithNoResults()
}
}

// <summary>
/// Validates if the client can connect to a live server
/// and parse the results.
/// </summary>
[SkippableFact, Order(4)]
public void CanClientExecuteQueryWithShowTerseTable()
{
SnowflakeTestConfiguration testConfiguration = Utils.LoadTestConfiguration<SnowflakeTestConfiguration>(SnowflakeTestingUtils.SNOWFLAKE_TEST_CONFIG_VARIABLE);
testConfiguration.Query = "SHOW TERSE TABLES";
testConfiguration.ExpectedResultsCount = 0;

// Throw exception Apache.Arrow.Adbc.AdbcException
using (Adbc.Client.AdbcConnection adbcConnection = GetSnowflakeAdbcConnectionUsingConnectionString(testConfiguration))
{
Tests.ClientTests.CanClientExecuteQuery(adbcConnection, testConfiguration);
}
}

// <summary>
/// Validates if the client can connect to a live server
/// and parse the results.
/// </summary>
[SkippableFact, Order(4)]
public void CanClientExecuteQueryWithShowTable()
{
SnowflakeTestConfiguration testConfiguration = Utils.LoadTestConfiguration<SnowflakeTestConfiguration>(SnowflakeTestingUtils.SNOWFLAKE_TEST_CONFIG_VARIABLE);
testConfiguration.Query = "SHOW TABLES";
testConfiguration.ExpectedResultsCount = 0;

// Throw exception Apache.Arrow.Adbc.AdbcException
using (Adbc.Client.AdbcConnection adbcConnection = GetSnowflakeAdbcConnectionUsingConnectionString(testConfiguration))
{
Tests.ClientTests.CanClientExecuteQuery(adbcConnection, testConfiguration);
}
}

/// <summary>
/// Validates if the client can connect to a live server
/// using a connection string / private key and parse the results.
Expand Down

0 comments on commit 65d2bed

Please sign in to comment.