2727 VideoCodec ,
2828)
2929
30- HOST = "fishjam " if os .getenv ("DOCKER_TEST" ) == "TRUE" else "localhost"
31- FISHJAM_ID = f"http://{ HOST } :5002 "
30+ HOST = "caddy " if os .getenv ("DOCKER_TEST" ) == "TRUE" else "localhost"
31+ FISHJAM_ID = f"http://{ HOST } :5555 "
3232MANAGEMENT_TOKEN = os .getenv ("MANAGEMENT_TOKEN" , "development" )
3333
3434MAX_PEERS = 10
@@ -64,7 +64,7 @@ def test_no_params(self, room_api: FishjamClient):
6464 room = room_api .create_room ()
6565
6666 config = RoomConfig (
67- max_peers = None ,
67+ max_peers = 0 ,
6868 webhook_url = None ,
6969 room_type = RoomType (CONFERENCE ),
7070 video_codec = VideoCodec .H264 ,
@@ -127,7 +127,9 @@ def test_invalid_id(self, room_api: FishjamClient):
127127
128128 def test_id_not_found (self , room_api : FishjamClient ):
129129 with pytest .raises (NotFoundError ):
130- room_api .delete_room ("515c8b52-168b-4b39-a227-4d6b4f102a56" )
130+ room_api .delete_room (
131+ "7ef-a0b0-6db20b2ef65c-7a696f6d6f-70726f64756374696f6e-6e6f6e6f6465406e6f686f7374"
132+ )
131133
132134
133135class TestGetAllRooms :
@@ -144,7 +146,7 @@ def test_valid(self, room_api: FishjamClient):
144146 room = room_api .create_room ()
145147
146148 config = RoomConfig (
147- max_peers = None ,
149+ max_peers = 0 ,
148150 webhook_url = None ,
149151 room_type = RoomType (CONFERENCE ),
150152 video_codec = VideoCodec .H264 ,
@@ -261,7 +263,7 @@ def test_valid(self, room_api: FishjamClient):
261263 def test_invalid (self , room_api : FishjamClient ):
262264 room = room_api .create_room ()
263265
264- with pytest .raises (BadRequestError ):
266+ with pytest .raises (NotFoundError ):
265267 room_api .create_livestream_viewer_token (room .id )
266268
267269
@@ -275,5 +277,5 @@ def test_valid(self, room_api: FishjamClient):
275277 def test_invalid (self , room_api : FishjamClient ):
276278 room = room_api .create_room ()
277279
278- with pytest .raises (BadRequestError ):
280+ with pytest .raises (NotFoundError ):
279281 room_api .create_livestream_streamer_token (room .id )
0 commit comments