public async Task TestGetInfo() { var response = await SqlGatewayApi.GetInfoAsync(); Assert.NotNull(response); Assert.False(string.IsNullOrWhiteSpace(response.ProductName)); Assert.False(string.IsNullOrWhiteSpace(response.Version)); }
internal async Task GetInfoAsync() { var response = await SqlGatewayApi.GetInfoAsync(); if (response is null || string.IsNullOrWhiteSpace(response.Version)) { throw new FlinkSqlException("connect gateway api failed"); } Version = response.Version; }