timer greater than template timeout [UNSTABLE, FIX ME]
(self)
| 423 | config.extended, "Test is unstable (assertion error, needs to be fixed" |
| 424 | ) |
| 425 | def test_0002(self): |
| 426 | """timer greater than template timeout [UNSTABLE, FIX ME]""" |
| 427 | self.logger.info("FFP_TEST_START_0002") |
| 428 | self.pg_enable_capture(self.pg_interfaces) |
| 429 | self.pkts = [] |
| 430 | |
| 431 | ipfix = VppCFLOW(test=self, timeout=3, active=4) |
| 432 | ipfix.add_vpp_config() |
| 433 | |
| 434 | ipfix_decoder = IPFIXDecoder() |
| 435 | # template packet should arrive immediately |
| 436 | ipfix.verify_templates() |
| 437 | |
| 438 | self.create_stream(packets=2) |
| 439 | self.send_packets() |
| 440 | capture = self.pg2.get_capture(2) |
| 441 | |
| 442 | # next set of template packet should arrive after 20 seconds |
| 443 | # template packet should arrive within 20 s |
| 444 | templates = ipfix.verify_templates(ipfix_decoder, timeout=5) |
| 445 | |
| 446 | # make sure the one packet we expect actually showed up |
| 447 | cflow = self.wait_for_cflow_packet(self.collector, templates[1], 15) |
| 448 | self.verify_cflow_data(ipfix_decoder, capture, cflow) |
| 449 | |
| 450 | ipfix.remove_vpp_config() |
| 451 | self.logger.info("FFP_TEST_FINISH_0002") |
| 452 | |
| 453 | def test_cflow_packet(self): |
| 454 | """verify cflow packet fields""" |
nothing calls this directly
no test coverage detected