zeroshade commented on code in PR #403:
URL: https://github.com/apache/arrow-adbc/pull/403#discussion_r1091089426
##########
go/adbc/driver/flightsql/flightsql_adbc_test.go:
##########
@@ -797,3 +822,103 @@ func (ts *TimeoutTestSuite) TestGetFlightInfoTimeout() {
ts.ErrorAs(err, &adbcErr)
ts.NotEqual(adbc.StatusNotImplemented, adbcErr.Code)
}
+
+type TLSTests struct {
+ suite.Suite
+
+ Driver adbc.Driver
+ Quirks *FlightSQLQuirks
+
+ DB adbc.Database
+ Cnxn adbc.Connection
+ Stmt adbc.Statement
+ ctx context.Context
+}
+
+func (suite *TLSTests) SetupTest() {
+ var err error
+
+ // Generate a self-signed certificate in-process for testing
+ privKey, err := rsa.GenerateKey(rand.Reader, 2048)
+ suite.Require().NoError(err)
+ certTemplate := x509.Certificate{
+ SerialNumber: big.NewInt(1),
+ Subject: pkix.Name{
+ Organization: []string{"Unit Tests Incorporated"},
Review Comment:
:laughing:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]