MCPcopy Create free account
hub / github.com/FDio/vpp / test_0002

Method test_0002

test/test_flowprobe.py:425–451  ·  view source on GitHub ↗

timer greater than template timeout [UNSTABLE, FIX ME]

(self)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 11

add_vpp_configMethod · 0.95
verify_templatesMethod · 0.95
remove_vpp_configMethod · 0.95
IPFIXDecoderClass · 0.90
VppCFLOWClass · 0.85
pg_enable_captureMethod · 0.80
wait_for_cflow_packetMethod · 0.80
verify_cflow_dataMethod · 0.80
create_streamMethod · 0.45
send_packetsMethod · 0.45
get_captureMethod · 0.45

Tested by

no test coverage detected