@@ -1223,7 +1223,6 @@ void SflowTestFixture::TearDown() {
1223
1223
// 2. Collect sFlow samples via sflowtool on SUT.
1224
1224
// 3. Validate the result is as expected.
1225
1225
TEST_P (SflowTestFixture, VerifyIngressSamplingForNoMatchPackets) {
1226
- testbed_->Environment ().SetTestCaseID (" 6c980337-c187-4f19-99a9-e03b6dcf24b5" );
1227
1226
1228
1227
const IxiaLink& ingress_link = ready_links_[0 ];
1229
1228
Port ingress_port = Port{
@@ -1293,7 +1292,6 @@ TEST_P(SflowTestFixture, VerifyIngressSamplingForNoMatchPackets) {
1293
1292
1294
1293
// Verifies ingress sampling could work when forwarding traffic.
1295
1294
TEST_P (SflowTestFixture, VerifyIngressSamplingForForwardedPackets) {
1296
- testbed_->Environment ().SetTestCaseID (" 909e2260-d4ca-4018-8c6a-2bd7891ee686" );
1297
1295
1298
1296
const IxiaLink& ingress_link = ready_links_[0 ];
1299
1297
Port ingress_port = Port{
@@ -1384,7 +1382,6 @@ TEST_P(SflowTestFixture, VerifyIngressSamplingForForwardedPackets) {
1384
1382
1385
1383
// Verifies ingress sampling could work when dropping packets.
1386
1384
TEST_P (SflowTestFixture, VerifyIngressSamplesForDropPackets) {
1387
- testbed_->Environment ().SetTestCaseID (" 6d567c91-d018-4fb3-85fc-c75c5f425d15" );
1388
1385
1389
1386
const IxiaLink& ingress_link = ready_links_[0 ];
1390
1387
Port ingress_port = Port{
@@ -1460,7 +1457,6 @@ TEST_P(SflowTestFixture, VerifyIngressSamplesForDropPackets) {
1460
1457
// 3. Send traffic from Ixia.
1461
1458
// 4. Validate the packets are all get punted and sFlowtool has expected result.
1462
1459
TEST_P (SflowTestFixture, VerifyIngressSamplesForP4rtPuntTraffic) {
1463
- testbed_->Environment ().SetTestCaseID (" 70a4e3e1-f3ae-416e-99a7-24f259942981" );
1464
1460
1465
1461
const IxiaLink& ingress_link = ready_links_[0 ];
1466
1462
Port ingress_port = Port{
@@ -1590,7 +1586,6 @@ TEST_P(SflowTestFixture, VerifyIngressSamplesForP4rtPuntTraffic) {
1590
1586
// Traffic packet size size_a, sFlow sampling size size_b: expects sample header
1591
1587
// size equals to min(size_a, size_b).
1592
1588
TEST_P (SampleSizeTest, VerifySamplingSizeWorks) {
1593
- testbed_->Environment ().SetTestCaseID (" d1e8ae2a-0595-4b33-9743-7dbff8eaf48a" );
1594
1589
1595
1590
const int packet_size = GetParam ().packet_size ,
1596
1591
sample_size = GetParam ().sample_size ;
@@ -1651,7 +1646,6 @@ TEST_P(SampleSizeTest, VerifySamplingSizeWorks) {
1651
1646
// send traffic to two interfaces with different sampling rate and verifies
1652
1647
// samples count.
1653
1648
TEST_P (SampleRateTest, VerifySamplingRateWorks) {
1654
- testbed_->Environment ().SetTestCaseID (" a143121e-c90f-4892-bd6b-897c3d9f9ff3" );
1655
1649
1656
1650
const IxiaLink& ingress_link = ready_links_[0 ];
1657
1651
const int sample_rate = GetParam ().sample_rate ;
@@ -1735,7 +1729,6 @@ TEST_P(SampleRateTest, VerifySamplingRateWorks) {
1735
1729
// 3. Send traffic at a normal rate which would not trigger sFlow backoff.
1736
1730
// Verify that sample rate is still doubled on all interfaces and samples.
1737
1731
TEST_P (BackoffTest, VerifyBackoffWorks) {
1738
- testbed_->Environment ().SetTestCaseID (" 58653895-219a-4b9e-b6af-03f6a33b5959" );
1739
1732
1740
1733
const IxiaLink& ingress_link = ready_links_[0 ];
1741
1734
@@ -2470,6 +2463,11 @@ TEST_P(SflowRebootTestFixture, ChangeCollectorConfigOnNsfReboot) {
2470
2463
pins_test::Testbed testbed_variant;
2471
2464
testbed_variant.emplace <thinkit::MirrorTestbed*>(&testbed);
2472
2465
ASSERT_OK (pins_test::NsfReboot (testbed_variant));
2466
+ ASSERT_OK (
2467
+ pins_test::WaitForNsfReboot (testbed_variant, *GetParam ().ssh_client ));
2468
+ ASSERT_OK (pins_test::ValidateTestbedState (
2469
+ /* version=*/ " " , testbed_variant, *GetParam ().ssh_client ,
2470
+ /* gnmi_config=*/ std::nullopt));
2473
2471
// Wait until all sFlow gNMI states are converged.
2474
2472
ASSERT_OK (pins_test::WaitForCondition (
2475
2473
VerifySflowStatesConverged, absl::Seconds (60 ), sut_gnmi_stub_.get (),
@@ -2628,7 +2626,6 @@ TEST_P(SflowRebootTestFixture, ChangeCollectorConfigOnNsfReboot) {
2628
2626
TEST_P (SflowMirrorTestFixture, TestInbandPathToSflowCollector) {
2629
2627
thinkit::MirrorTestbed& testbed =
2630
2628
GetParam ().testbed_interface ->GetMirrorTestbed ();
2631
- testbed.Environment ().SetTestCaseID (" 3948ef62-67d9-42e2-8cc6-30dc10cb382f" );
2632
2629
2633
2630
const int packets_num = 10000 ;
2634
2631
@@ -2812,7 +2809,6 @@ TEST_P(SflowMirrorTestFixture, TestInbandPathToSflowCollector) {
2812
2809
TEST_P (SflowMirrorTestFixture, TestSflowDscpValue) {
2813
2810
thinkit::MirrorTestbed& testbed =
2814
2811
GetParam ().testbed_interface ->GetMirrorTestbed ();
2815
- testbed.Environment ().SetTestCaseID (" 38694bb8-2a82-4379-8b85-96dcda824a14" );
2816
2812
2817
2813
const int packets_num = 10000 ;
2818
2814
@@ -2919,7 +2915,6 @@ TEST_P(SflowMirrorTestFixture, TestSflowDscpValue) {
2919
2915
TEST_P (SflowMirrorTestFixture, TestSamplingWorksOnAllInterfaces) {
2920
2916
thinkit::MirrorTestbed& testbed =
2921
2917
GetParam ().testbed_interface ->GetMirrorTestbed ();
2922
- testbed.Environment ().SetTestCaseID (" 03bdb9da-387a-4256-9323-60d4503ce3c0" );
2923
2918
2924
2919
const int packets_num = 10000 ;
2925
2920
ASSERT_OK_AND_ASSIGN (
@@ -3039,7 +3034,6 @@ TEST_P(SflowRebootTestFixture, TestSamplingWorksAfterReboot) {
3039
3034
3040
3035
thinkit::MirrorTestbed& testbed =
3041
3036
GetParam ().testbed_interface ->GetMirrorTestbed ();
3042
- testbed.Environment ().SetTestCaseID (" 6cd622a1-2d95-4e07-9c7d-77a2faad4bc0" );
3043
3037
3044
3038
ASSERT_OK_AND_ASSIGN (
3045
3039
auto port_id_per_port_name,
@@ -3192,6 +3186,9 @@ TEST_P(SflowRebootTestFixture, TestSamplingWorksAfterReboot) {
3192
3186
VerifySflowStatesConverged, absl::Minutes (2 ), sut_gnmi_stub_.get (),
3193
3187
agent_address_, kInbandSamplingRate , kSampleHeaderSize ,
3194
3188
collector_address_and_port, sflow_enabled_interfaces));
3189
+ ASSERT_OK (pins_test::WaitForCondition (
3190
+ CheckStateDbPortIndexTableExists, absl::Minutes (2 ),
3191
+ *GetParam ().ssh_client , testbed.Sut ().ChassisName (), interface_names));
3195
3192
3196
3193
for (const auto & [interface_name, unused] : sflow_enabled_interfaces) {
3197
3194
ASSERT_OK_AND_ASSIGN (packets_sampled_per_interface[interface_name],
@@ -3282,7 +3279,6 @@ TEST_P(SflowRebootTestFixture, TestSamplingWorksAfterReboot) {
3282
3279
TEST_P (SflowMirrorTestFixture, TestIp2MePacketsAreSampledAndPunted) {
3283
3280
thinkit::MirrorTestbed& testbed =
3284
3281
GetParam ().testbed_interface ->GetMirrorTestbed ();
3285
- testbed.Environment ().SetTestCaseID (" 7f765661-840e-4913-b210-8bbf9d5a0e8f" );
3286
3282
3287
3283
const absl::string_view kSrcIp6Address = " 2001:db8:0:12::1" ;
3288
3284
const int packets_num = 3000 ;
0 commit comments