|
1 | | -# Copyright (c) 2017 StackHPC Ltd. |
| 1 | +# Copyright (c) 2018 StackHPC Ltd. |
2 | 2 | # |
3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | # you may not use this file except in compliance with the License. |
@@ -58,10 +58,18 @@ def test_expected_data_ib(self): |
58 | 58 | physnet = self.hook.get_physnet(port, 'em1', self.data) |
59 | 59 | self.assertEqual(physnet, 'physnet1') |
60 | 60 |
|
61 | | - def test_expected_data_non_ib(self): |
| 61 | + def test_expected_data_client_id_is_none(self): |
62 | 62 | cfg.CONF.set_override('ib_physnet', 'physnet1', |
63 | 63 | group='port_physnet') |
64 | 64 | self.data['all_interfaces']['em1']['client_id'] = None |
65 | 65 | port = self.node_info.ports().values()[0] |
66 | 66 | physnet = self.hook.get_physnet(port, 'em1', self.data) |
67 | 67 | self.assertIsNone(physnet) |
| 68 | + |
| 69 | + def test_expected_data_no_client_id(self): |
| 70 | + cfg.CONF.set_override('ib_physnet', 'physnet1', |
| 71 | + group='port_physnet') |
| 72 | + del self.data['all_interfaces']['em1']['client_id'] |
| 73 | + port = self.node_info.ports().values()[0] |
| 74 | + physnet = self.hook.get_physnet(port, 'em1', self.data) |
| 75 | + self.assertIsNone(physnet) |
0 commit comments