File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111@pytest .fixture (params = ["require" , "verify-ca" ])
1212def dsn (request ):
13- """Retrieve DSN from environment variable based on SSL mode."""
13+ """Retrieve DSN from environment variable based on SSL mode.
14+
15+ GaussDB SSL modes supported:
16+ - require: Encrypted connection without certificate verification
17+ - verify-ca: Encrypted connection with CA certificate verification
18+
19+ Set GAUSSDB_TEST_DSN with appropriate sslmode to run these tests:
20+ export GAUSSDB_TEST_DSN="...sslmode=require..."
21+ """
1422 dsn = os .environ .get ("GAUSSDB_TEST_DSN" )
1523 if not dsn :
1624 raise ValueError ("GAUSSDB_TEST_DSN environment variable not set" )
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def get_srid(obj): # type: ignore[no-redef]
2525pytestmark = [
2626 pytest .mark .postgis ,
2727 pytest .mark .crdb ("skip" ),
28+ pytest .mark .gaussdb_skip ("PostGIS not supported on GaussDB USTORE storage mode" ),
2829]
2930
3031SAMPLE_POINT = Point (1.2 , 3.4 )
You can’t perform that action at this time.
0 commit comments