SHOW:
|
|
- or go back to the newest paste.
| 1 | @classmethod | |
| 2 | def tearDownClass(cls): | |
| 3 | has_exception = False | |
| 4 | - | has_exception = False |
| 4 | + | |
| 5 | try: | |
| 6 | cls.client.delete_vpn_service(vpnservice['id']) | |
| 7 | except Exception as exc: | |
| 8 | LOG.exception(exc) | |
| 9 | has_exception = True | |
| 10 | - | if has_exception: |
| 10 | + | |
| 11 | - | raise TearDownException() |
| 11 | + | |
| 12 | try: | |
| 13 | (cls.client.remove_router_interface_with_subnet_id( | |
| 14 | - | has_exception = False |
| 14 | + | |
| 15 | cls.client.delete_router(router['id']) | |
| 16 | except Exception as exc: | |
| 17 | LOG.exception(exc) | |
| 18 | has_exception = True | |
| 19 | ......................... | |
| 20 | ......................... | |
| 21 | ......................... | |
| 22 | - | if has_exception: |
| 22 | + | |
| 23 | - | raise TearDownException() |
| 23 | + | |
| 24 | cls.client.delete_network(network['id']) | |
| 25 | - | for health_monitor in cls.health_monitors: |
| 25 | + | |
| 26 | - | has_exception = False |
| 26 | + | |
| 27 | has_exception = True | |
| 28 | - | cls.client.delete_health_monitor(health_monitor['id']) |
| 28 | + | super(BaseNetworkTest, cls).tearDownClass() |
| 29 | if has_exception: | |
| 30 | raise TearDownException() |