|
11 | 11 | # under the License.
|
12 | 12 |
|
13 | 13 | from nova.tests import fixtures as nova_fixtures
|
14 |
| -from nova.tests.functional.api import client |
15 | 14 | from nova.tests.functional import integrated_helpers
|
16 | 15 |
|
17 | 16 |
|
@@ -46,23 +45,11 @@ def _test_rebuild_instance_with_compute_rpc_pin(self, version_cap):
|
46 | 45 |
|
47 | 46 | # We automatically pin to 6.0 if old computes are Yoga or older.
|
48 | 47 | def test_rebuild_instance_6_0(self):
|
49 |
| - e = self.assertRaises(client.OpenStackApiException, |
50 |
| - self._test_rebuild_instance_with_compute_rpc_pin, '6.0') |
51 |
| - self.assertEqual(500, e.response.status_code) |
52 |
| - # NOTE(sbauza): This returns a TypeError because of |
53 |
| - # 'reimage_boot_volume' and 'target_state' parameters missing from the |
54 |
| - # rcpapi caller. |
55 |
| - self.assertIn('TypeError', e.response.text) |
| 48 | + self._test_rebuild_instance_with_compute_rpc_pin('6.0') |
56 | 49 |
|
57 | 50 | # We automatically pin to 6.1 if old computes are Zed.
|
58 | 51 | def test_rebuild_instance_6_1(self):
|
59 |
| - e = self.assertRaises(client.OpenStackApiException, |
60 |
| - self._test_rebuild_instance_with_compute_rpc_pin, '6.1') |
61 |
| - self.assertEqual(500, e.response.status_code) |
62 |
| - # NOTE(sbauza): This returns a TypeError because of |
63 |
| - # 'reimage_boot_volume' and 'target_state' parameters missing from the |
64 |
| - # rcpapi caller. |
65 |
| - self.assertIn('TypeError', e.response.text) |
| 52 | + self._test_rebuild_instance_with_compute_rpc_pin('6.1') |
66 | 53 |
|
67 | 54 | # We automatically pin to 6.2 if old computes are 2023.1.
|
68 | 55 | def test_rebuild_instance_6_2(self):
|
|
0 commit comments