@@ -26,17 +26,17 @@ class TestRouters:
2626 @parametrize
2727 def test_method_create (self , client : Gcore ) -> None :
2828 router = client .cloud .networks .routers .create (
29- project_id = 0 ,
30- region_id = 0 ,
29+ project_id = 1 ,
30+ region_id = 1 ,
3131 name = "my_wonderful_router" ,
3232 )
3333 assert_matches_type (TaskIDList , router , path = ["response" ])
3434
3535 @parametrize
3636 def test_method_create_with_all_params (self , client : Gcore ) -> None :
3737 router = client .cloud .networks .routers .create (
38- project_id = 0 ,
39- region_id = 0 ,
38+ project_id = 1 ,
39+ region_id = 1 ,
4040 name = "my_wonderful_router" ,
4141 external_gateway_info = {
4242 "enable_snat" : True ,
@@ -60,8 +60,8 @@ def test_method_create_with_all_params(self, client: Gcore) -> None:
6060 @parametrize
6161 def test_raw_response_create (self , client : Gcore ) -> None :
6262 response = client .cloud .networks .routers .with_raw_response .create (
63- project_id = 0 ,
64- region_id = 0 ,
63+ project_id = 1 ,
64+ region_id = 1 ,
6565 name = "my_wonderful_router" ,
6666 )
6767
@@ -73,8 +73,8 @@ def test_raw_response_create(self, client: Gcore) -> None:
7373 @parametrize
7474 def test_streaming_response_create (self , client : Gcore ) -> None :
7575 with client .cloud .networks .routers .with_streaming_response .create (
76- project_id = 0 ,
77- region_id = 0 ,
76+ project_id = 1 ,
77+ region_id = 1 ,
7878 name = "my_wonderful_router" ,
7979 ) as response :
8080 assert not response .is_closed
@@ -162,26 +162,27 @@ def test_path_params_update(self, client: Gcore) -> None:
162162 @parametrize
163163 def test_method_list (self , client : Gcore ) -> None :
164164 router = client .cloud .networks .routers .list (
165- project_id = 0 ,
166- region_id = 0 ,
165+ project_id = 1 ,
166+ region_id = 1 ,
167167 )
168168 assert_matches_type (SyncOffsetPage [Router ], router , path = ["response" ])
169169
170170 @parametrize
171171 def test_method_list_with_all_params (self , client : Gcore ) -> None :
172172 router = client .cloud .networks .routers .list (
173- project_id = 0 ,
174- region_id = 0 ,
175- limit = 0 ,
173+ project_id = 1 ,
174+ region_id = 1 ,
175+ limit = 10 ,
176+ name = "router-name" ,
176177 offset = 0 ,
177178 )
178179 assert_matches_type (SyncOffsetPage [Router ], router , path = ["response" ])
179180
180181 @parametrize
181182 def test_raw_response_list (self , client : Gcore ) -> None :
182183 response = client .cloud .networks .routers .with_raw_response .list (
183- project_id = 0 ,
184- region_id = 0 ,
184+ project_id = 1 ,
185+ region_id = 1 ,
185186 )
186187
187188 assert response .is_closed is True
@@ -192,8 +193,8 @@ def test_raw_response_list(self, client: Gcore) -> None:
192193 @parametrize
193194 def test_streaming_response_list (self , client : Gcore ) -> None :
194195 with client .cloud .networks .routers .with_streaming_response .list (
195- project_id = 0 ,
196- region_id = 0 ,
196+ project_id = 1 ,
197+ region_id = 1 ,
197198 ) as response :
198199 assert not response .is_closed
199200 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -415,17 +416,17 @@ class TestAsyncRouters:
415416 @parametrize
416417 async def test_method_create (self , async_client : AsyncGcore ) -> None :
417418 router = await async_client .cloud .networks .routers .create (
418- project_id = 0 ,
419- region_id = 0 ,
419+ project_id = 1 ,
420+ region_id = 1 ,
420421 name = "my_wonderful_router" ,
421422 )
422423 assert_matches_type (TaskIDList , router , path = ["response" ])
423424
424425 @parametrize
425426 async def test_method_create_with_all_params (self , async_client : AsyncGcore ) -> None :
426427 router = await async_client .cloud .networks .routers .create (
427- project_id = 0 ,
428- region_id = 0 ,
428+ project_id = 1 ,
429+ region_id = 1 ,
429430 name = "my_wonderful_router" ,
430431 external_gateway_info = {
431432 "enable_snat" : True ,
@@ -449,8 +450,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncGcore) ->
449450 @parametrize
450451 async def test_raw_response_create (self , async_client : AsyncGcore ) -> None :
451452 response = await async_client .cloud .networks .routers .with_raw_response .create (
452- project_id = 0 ,
453- region_id = 0 ,
453+ project_id = 1 ,
454+ region_id = 1 ,
454455 name = "my_wonderful_router" ,
455456 )
456457
@@ -462,8 +463,8 @@ async def test_raw_response_create(self, async_client: AsyncGcore) -> None:
462463 @parametrize
463464 async def test_streaming_response_create (self , async_client : AsyncGcore ) -> None :
464465 async with async_client .cloud .networks .routers .with_streaming_response .create (
465- project_id = 0 ,
466- region_id = 0 ,
466+ project_id = 1 ,
467+ region_id = 1 ,
467468 name = "my_wonderful_router" ,
468469 ) as response :
469470 assert not response .is_closed
@@ -551,26 +552,27 @@ async def test_path_params_update(self, async_client: AsyncGcore) -> None:
551552 @parametrize
552553 async def test_method_list (self , async_client : AsyncGcore ) -> None :
553554 router = await async_client .cloud .networks .routers .list (
554- project_id = 0 ,
555- region_id = 0 ,
555+ project_id = 1 ,
556+ region_id = 1 ,
556557 )
557558 assert_matches_type (AsyncOffsetPage [Router ], router , path = ["response" ])
558559
559560 @parametrize
560561 async def test_method_list_with_all_params (self , async_client : AsyncGcore ) -> None :
561562 router = await async_client .cloud .networks .routers .list (
562- project_id = 0 ,
563- region_id = 0 ,
564- limit = 0 ,
563+ project_id = 1 ,
564+ region_id = 1 ,
565+ limit = 10 ,
566+ name = "router-name" ,
565567 offset = 0 ,
566568 )
567569 assert_matches_type (AsyncOffsetPage [Router ], router , path = ["response" ])
568570
569571 @parametrize
570572 async def test_raw_response_list (self , async_client : AsyncGcore ) -> None :
571573 response = await async_client .cloud .networks .routers .with_raw_response .list (
572- project_id = 0 ,
573- region_id = 0 ,
574+ project_id = 1 ,
575+ region_id = 1 ,
574576 )
575577
576578 assert response .is_closed is True
@@ -581,8 +583,8 @@ async def test_raw_response_list(self, async_client: AsyncGcore) -> None:
581583 @parametrize
582584 async def test_streaming_response_list (self , async_client : AsyncGcore ) -> None :
583585 async with async_client .cloud .networks .routers .with_streaming_response .list (
584- project_id = 0 ,
585- region_id = 0 ,
586+ project_id = 1 ,
587+ region_id = 1 ,
586588 ) as response :
587589 assert not response .is_closed
588590 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments