kytos-ng / kytos-end-to-end-tests

Kytos End-to-End Tests
0 stars 10 forks source link

test `flow_table_0` rerun on April 14 on GitLab CI #234

Open viniarck opened 1 year ago

viniarck commented 1 year ago

For the record flow_table_0 had a rerun last night, although it passed in the next attempt.

It's worth analyzing this later on.

rerun: 0
tests/test_e2e_20_flow_manager.py::TestE2EFlowManager::test_070_flow_table_0: 2023-04-14,06:01:41.190601 - 2023-04-14,06:01:55.931930
self = <tests.test_e2e_20_flow_manager.TestE2EFlowManager object at 0x7feaee1a9ca0>
    def test_070_flow_table_0(self):
>       self.flow_table_0()
tests/test_e2e_20_flow_manager.py:930: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <tests.test_e2e_20_flow_manager.TestE2EFlowManager object at 0x7feaee1a9ca0>
restart_kytos = False
    def flow_table_0(self, restart_kytos=False):
        """Tests if, after adding a flow in another
        table outside kytos, the flow is removed."""

        s1 = self.net.net.get('s1')
        s1.dpctl('add-flow', 'table=0,in_port=1,actions=output:2')

        if restart_kytos:
            # restart controller keeping configuration
            self.net.start_controller(enable_all=True)
            self.net.wait_switches_connect()
        else:
            self.net.reconnect_switches()

        time.sleep(10)

        s1 = self.net.net.get('s1')
        flows_s1 = s1.dpctl('dump-flows')
>       assert len(flows_s1.split('\r\n ')) == BASIC_FLOWS, flows_s1
E       AssertionError:  cookie=0xac00000000000001, duration=25.521s, table=0, n_packets=0, n_bytes=0, priority=50000,dl_src=ee:ee:ee:ee:ee:03 actions=CONTROLLER:65535
E          cookie=0xac00000000000001, duration=25.474s, table=0, n_packets=0, n_bytes=0, priority=50000,dl_src=ee:ee:ee:ee:ee:02 actions=CONTROLLER:65535
E          cookie=0x0, duration=14.715s, table=0, n_packets=0, n_bytes=0, in_port="s1-eth1" actions=output:"s1-eth2"
E          cookie=0xab00000000000001, duration=13.703s, table=0, n_packets=17, n_bytes=714, priority=1000,dl_vlan=3799,dl_type=0x88cc actions=CONTROLLER:65535
E         
E       assert 4 == 3
E        +  where 4 = len([' cookie=0xac00000000000001, duration=25.521s, table=0, n_packets=0, n_bytes=0, priority=50000,dl_src=ee:ee:ee:ee:ee:...n=13.703s, table=0, n_packets=17, n_bytes=714, priority=1000,dl_vlan=3799,dl_type=0x88cc actions=CONTROLLER:65535\r\n'])
E        +    where [' cookie=0xac00000000000001, duration=25.521s, table=0, n_packets=0, n_bytes=0, priority=50000,dl_src=ee:ee:ee:ee:ee:...n=13.703s, table=0, n_packets=17, n_bytes=714, priority=1000,dl_vlan=3799,dl_type=0x88cc actions=CONTROLLER:65535\r\n'] = <built-in method split of str object at 0x7feadc013910>('\r\n ')
E        +      where <built-in method split of str object at 0x7feadc013910> = ' cookie=0xac00000000000001, duration=25.521s, table=0, n_packets=0, n_bytes=0, priority=50000,dl_src=ee:ee:ee:ee:ee:0...on=13.703s, table=0, n_packets=17, n_bytes=714, priority=1000,dl_vlan=3799,dl_type=0x88cc actions=CONTROLLER:65535\r\n'.split
tests/test_e2e_20_flow_manager.py:927: AssertionError
=========================== rerun test summary info ============================
RERUN tests/test_e2e_20_flow_manager.py::TestE2EFlowManager::test_070_flow_table_0
= 205 passed, 6 skipped, 11 xfailed, 5 xpassed, 799 warnings, 1 rerun in 11317.01s (3:08:37) =