@@ -51,12 +51,17 @@ def reservation_id(
5151 pass
5252
5353
54+ @pytest .mark .parametrize ("transport" , ["grpc" , "rest" ])
5455def test_reservation_samples (
55- capsys : pytest .CaptureFixture , project_id : str , location : str , reservation_id : str
56+ capsys : pytest .CaptureFixture ,
57+ project_id : str ,
58+ location : str ,
59+ reservation_id : str ,
60+ transport : str ,
5661) -> None :
5762 slot_capacity = 100
5863 reservation = reservation_create .create_reservation (
59- project_id , location , reservation_id , slot_capacity
64+ project_id , location , reservation_id , slot_capacity , transport
6065 )
6166 assert reservation .slot_capacity == 100
6267 assert reservation_id in reservation .name
@@ -65,14 +70,16 @@ def test_reservation_samples(
6570
6671 slot_capacity = 50
6772 reservation = reservation_update .update_reservation (
68- project_id , location , reservation_id , slot_capacity
73+ project_id , location , reservation_id , slot_capacity , transport
6974 )
7075 assert reservation .slot_capacity == 50
7176 assert reservation_id in reservation .name
7277 out , _ = capsys .readouterr ()
7378 assert f"Updated reservation: { reservation .name } " in out
7479
75- reservation_delete .delete_reservation (project_id , location , reservation_id )
80+ reservation_delete .delete_reservation (
81+ project_id , location , reservation_id , transport
82+ )
7683 out , _ = capsys .readouterr ()
7784 assert "Deleted reservation" in out
7885 assert reservation_id in out
0 commit comments