File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,15 @@ func TestAccPoolerDataSource(t *testing.T) {
18
18
// Setup mock api
19
19
defer gock .OffAll ()
20
20
gock .New ("https://api.supabase.com" ).
21
- Get ("/v1/projects/mayuaycdtijbctgqbycg/config/database/pgbouncer " ).
21
+ Get ("/v1/projects/mayuaycdtijbctgqbycg/config/database/pooler " ).
22
22
Times (3 ).
23
23
Reply (http .StatusOK ).
24
- JSON (api.V1PgbouncerConfigResponse {
25
- ConnectionString : & poolerUrl ,
26
- DefaultPoolSize : Ptr (float32 (15 )),
27
- IgnoreStartupParameters : Ptr ("" ),
28
- MaxClientConn : Ptr (float32 (200 )),
29
- PoolMode : Ptr (api .Transaction ),
30
- })
24
+ JSON ([]api.SupavisorConfigResponse {{
25
+ ConnectionString : poolerUrl ,
26
+ DefaultPoolSize : Ptr (float32 (15 )),
27
+ MaxClientConn : Ptr (float32 (200 )),
28
+ PoolMode : api .SupavisorConfigResponsePoolModeTransaction ,
29
+ }})
31
30
// Run test
32
31
resource .Test (t , resource.TestCase {
33
32
PreCheck : func () { testAccPreCheck (t ) },
You can’t perform that action at this time.
0 commit comments