Skip to content

Commit d55ab2e

Browse files
committed
amd_amf -> AMD
1 parent 34c982c commit d55ab2e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

e2e-test/test_sumomo_amd_amf.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
reason="AMD_AMF not set in environment",
2424
)
2525

26+
CODEC_IMPLEMENTATION = "AMF"
27+
2628

2729
@pytest.mark.parametrize(
2830
"video_codec_type",
@@ -110,7 +112,7 @@ def test_sendonly_recvonly(
110112
assert sender_video_outbound["packetsSent"] > 0
111113
assert sender_video_outbound["bytesSent"] > 0
112114
assert "encoderImplementation" in sender_video_outbound
113-
assert sender_video_outbound["encoderImplementation"] == "amd_amf"
115+
assert sender_video_outbound["encoderImplementation"] == CODEC_IMPLEMENTATION
114116

115117
# audio outbound-rtp を確認
116118
sender_audio_outbound = get_outbound_rtp(sender_stats, "audio")
@@ -138,7 +140,7 @@ def test_sendonly_recvonly(
138140
assert receiver_video_inbound["packetsReceived"] > 0
139141
assert receiver_video_inbound["bytesReceived"] > 0
140142
assert "decoderImplementation" in receiver_video_inbound
141-
assert receiver_video_inbound["decoderImplementation"] == "amd_amf"
143+
assert receiver_video_inbound["decoderImplementation"] == CODEC_IMPLEMENTATION
142144

143145
# audio inbound-rtp を確認
144146
receiver_audio_inbound = get_inbound_rtp(receiver_stats, "audio")
@@ -238,7 +240,7 @@ def test_sendrecv(
238240
assert client1_video_outbound["packetsSent"] > 0
239241
assert client1_video_outbound["bytesSent"] > 0
240242
assert "encoderImplementation" in client1_video_outbound
241-
assert client1_video_outbound["encoderImplementation"] == "amd_amf"
243+
assert client1_video_outbound["encoderImplementation"] == CODEC_IMPLEMENTATION
242244

243245
# audio outbound-rtp を確認
244246
client1_audio_outbound = get_outbound_rtp(client1_stats, "audio")
@@ -252,7 +254,7 @@ def test_sendrecv(
252254
assert client1_video_inbound["packetsReceived"] > 0
253255
assert client1_video_inbound["bytesReceived"] > 0
254256
assert "decoderImplementation" in client1_video_inbound
255-
assert client1_video_inbound["decoderImplementation"] == "amd_amf"
257+
assert client1_video_inbound["decoderImplementation"] == CODEC_IMPLEMENTATION
256258

257259
# audio inbound-rtp を確認
258260
client1_audio_inbound = get_inbound_rtp(client1_stats, "audio")
@@ -280,7 +282,7 @@ def test_sendrecv(
280282
assert client2_video_outbound["packetsSent"] > 0
281283
assert client2_video_outbound["bytesSent"] > 0
282284
assert "encoderImplementation" in client2_video_outbound
283-
assert client2_video_outbound["encoderImplementation"] == "amd_amf"
285+
assert client2_video_outbound["encoderImplementation"] == CODEC_IMPLEMENTATION
284286

285287
# audio outbound-rtp を確認
286288
client2_audio_outbound = get_outbound_rtp(client2_stats, "audio")
@@ -294,7 +296,7 @@ def test_sendrecv(
294296
assert client2_video_inbound["packetsReceived"] > 0
295297
assert client2_video_inbound["bytesReceived"] > 0
296298
assert "decoderImplementation" in client2_video_inbound
297-
assert client2_video_inbound["decoderImplementation"] == "amd_amf"
299+
assert client2_video_inbound["decoderImplementation"] == CODEC_IMPLEMENTATION
298300

299301
# audio inbound-rtp を確認
300302
client2_audio_inbound = get_inbound_rtp(client2_stats, "audio")
@@ -412,7 +414,7 @@ def test_simulcast(sora_settings, free_port, video_codec_type):
412414
# encoder implementation を確認
413415
assert "encoderImplementation" in outbound_rtp_r0
414416
assert "SimulcastEncoderAdapter" in outbound_rtp_r0["encoderImplementation"]
415-
assert "amd_amf" in outbound_rtp_r0["encoderImplementation"]
417+
assert CODEC_IMPLEMENTATION in outbound_rtp_r0["encoderImplementation"]
416418

417419
# r1 (中解像度) の検証
418420
outbound_rtp_r1 = video_outbound_rtp_by_rid["r1"]
@@ -425,7 +427,7 @@ def test_simulcast(sora_settings, free_port, video_codec_type):
425427

426428
assert "encoderImplementation" in outbound_rtp_r1
427429
assert "SimulcastEncoderAdapter" in outbound_rtp_r1["encoderImplementation"]
428-
assert "amd_amf" in outbound_rtp_r1["encoderImplementation"]
430+
assert CODEC_IMPLEMENTATION in outbound_rtp_r1["encoderImplementation"]
429431

430432
# r2 (高解像度) の検証
431433
outbound_rtp_r2 = video_outbound_rtp_by_rid["r2"]
@@ -438,7 +440,7 @@ def test_simulcast(sora_settings, free_port, video_codec_type):
438440

439441
assert "encoderImplementation" in outbound_rtp_r2
440442
assert "SimulcastEncoderAdapter" in outbound_rtp_r2["encoderImplementation"]
441-
assert "amd_amf" in outbound_rtp_r2["encoderImplementation"]
443+
assert CODEC_IMPLEMENTATION in outbound_rtp_r2["encoderImplementation"]
442444

443445
# transport を確認
444446
transport = get_transport(stats)

0 commit comments

Comments
 (0)