From 3dfa89d4ef923af2bd48e2f01cf38d2331365937 Mon Sep 17 00:00:00 2001 From: Yuliia Miroshnychenko Date: Thu, 19 Jun 2025 13:57:54 +0200 Subject: [PATCH] [TEST]: Improvement: Connected Devices(tg port selection) --- .../spec/flows/ConnectedDevicesSpec.groovy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src-java/testing/functional-tests/src/test/groovy/org/openkilda/functionaltests/spec/flows/ConnectedDevicesSpec.groovy b/src-java/testing/functional-tests/src/test/groovy/org/openkilda/functionaltests/spec/flows/ConnectedDevicesSpec.groovy index bf79b24f9b..76dfd0848b 100644 --- a/src-java/testing/functional-tests/src/test/groovy/org/openkilda/functionaltests/spec/flows/ConnectedDevicesSpec.groovy +++ b/src-java/testing/functional-tests/src/test/groovy/org/openkilda/functionaltests/spec/flows/ConnectedDevicesSpec.groovy @@ -557,7 +557,9 @@ srcDevices=#newSrcEnabled, dstDevices=#newDstEnabled"() { and: "Flow is created on a target switch with devices feature 'off'" def dst = switches.all().getListOfSwitches().find { it != sw } - def flow = flowFactory.getBuilder(sw, dst).withDetectedDevicesOnSrc(false, false) + def flow = flowFactory.getBuilder(sw, dst) + .withSourcePort(tg.switchPort) + .withDetectedDevicesOnSrc(false, false) .build().create() when: "Devices send lldp and arp packets into a flow port" @@ -634,7 +636,9 @@ srcDevices=#newSrcEnabled, dstDevices=#newDstEnabled"() { }) and: "A single-sw flow with devices feature 'on'" - def expectedFlowEntity = flowFactory.getSingleSwBuilder(sw).withDetectedDevicesOnSrc(true, true) + def expectedFlowEntity = flowFactory.getSingleSwBuilder(sw) + .withSourcePort(tg.switchPort) + .withDetectedDevicesOnSrc(true, true) def flow = expectedFlowEntity.build().create() and: "A single-sw default flow with devices feature 'on'"