Skip to content

Commit f7cca9e

Browse files
[MVE 1.5.1] [Push AV] Increase blind duration and transport expiry time (#43136)
* Increase blind duration and transport expiry time Co-Author: Dhruvkumar <kakadiya.b@samsung.com> Signed-off-by: Raveendra Karu <r.karu@samsung.com> * Update asyncio timeout and address review comments. Signed-off-by: Raveendra Karu <r.karu@samsung.com> * Add comments to explain the reason for choosing time control fields values. Signed-off-by: Raveendra Karu <r.karu@samsung.com> --------- Signed-off-by: Raveendra Karu <r.karu@samsung.com>
1 parent e7eba53 commit f7cca9e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/python_testing/TC_PAVSTTestBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131
class PAVSTTestBase:
32-
DEFAULT_AV_TRANSPORT_EXPIRY_TIME_SEC = 100 # 100 seconds
32+
DEFAULT_AV_TRANSPORT_EXPIRY_TIME_SEC = 150 # 150 seconds
3333

3434
async def read_pavst_attribute_expect_success(self, endpoint, attribute):
3535
cluster = Clusters.Objects.PushAvStreamTransport

src/python_testing/TC_PAVST_2_13.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
# --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
3535
# --endpoint 1
3636
# --app-pipe /tmp/pavst_2_13_fifo
37+
# --timeout 300
3738
# factory-reset: true
3839
# quiet: true
3940
# === END CI TEST ARGUMENTS ===
@@ -278,17 +279,19 @@ async def test_TC_PAVST_2_13(self):
278279
zoneID1 = cmdResponse.zoneID
279280

280281
self.step(6)
282+
# Initialze the time control fields
281283
initDuration = 5
282284
augDuration = 2
283285
maxDuration = 15
284-
blindDuration = 3
286+
# blindDuration time set as 10 sec to ensure it is sufficient enough to receive the motion event at DUT post the clip recording is completed
287+
blindDuration = 10
285288
maxPreRollLen = 4
286289
try:
287290
zoneList = [{"zone": zoneID1, "sensitivity": 4}]
288291
triggerOptions = {"triggerType": pvcluster.Enums.TransportTriggerTypeEnum.kMotion,
289292
"maxPreRollLen": 4000,
290293
"motionZones": zoneList,
291-
"motionTimeControl": {"initialDuration": 5, "augmentationDuration": 2, "maxDuration": 15, "blindDuration": 3}}
294+
"motionTimeControl": {"initialDuration": initDuration, "augmentationDuration": augDuration, "maxDuration": maxDuration, "blindDuration": blindDuration}}
292295
status = await self.allocate_one_pushav_transport(endpoint, trigger_Options=triggerOptions,
293296
tlsEndPoint=tlsEndpointId, url=f"https://{host_ip}:1234/streams/{uploadStreamId}/")
294297
asserts.assert_equal(status, Status.Success,
@@ -323,7 +326,8 @@ async def test_TC_PAVST_2_13(self):
323326
self.dut_node_id,
324327
self.get_endpoint())
325328

326-
timeControl = {"initialDuration": 5, "augmentationDuration": 2, "maxDuration": 15, "blindDuration": 3}
329+
timeControl = {"initialDuration": initDuration, "augmentationDuration": augDuration,
330+
"maxDuration": maxDuration, "blindDuration": blindDuration}
327331
cmd = pvcluster.Commands.ManuallyTriggerTransport(
328332
connectionID=aConnectionID,
329333
activationReason=pvcluster.Enums.TriggerActivationReasonEnum.kEmergency,
@@ -444,13 +448,15 @@ async def test_TC_PAVST_2_13(self):
444448
)
445449

446450
self.step(17)
451+
# update maxDuration and augDuration fields to ensure initDuration + augDuration > maxDuration
447452
maxDuration = 10
453+
augDuration = 15
448454
try:
449455
zoneList = [{"zone": zoneID1, "sensitivity": 4}]
450456
triggerOptions = {"triggerType": pvcluster.Enums.TransportTriggerTypeEnum.kMotion,
451457
"maxPreRollLen": 4000,
452458
"motionZones": zoneList,
453-
"motionTimeControl": {"initialDuration": 5, "augmentationDuration": 15, "maxDuration": 10, "blindDuration": 3}}
459+
"motionTimeControl": {"initialDuration": initDuration, "augmentationDuration": augDuration, "maxDuration": maxDuration, "blindDuration": blindDuration}}
454460
status = await self.allocate_one_pushav_transport(endpoint, trigger_Options=triggerOptions,
455461
tlsEndPoint=tlsEndpointId, url=f"https://{host_ip}:1234/streams/{uploadStreamId}/")
456462
asserts.assert_equal(status, Status.Success,

0 commit comments

Comments
 (0)