diff options
Diffstat (limited to 'ironic/tests/db/test_nodes.py')
-rw-r--r-- | ironic/tests/db/test_nodes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ironic/tests/db/test_nodes.py b/ironic/tests/db/test_nodes.py index 25edfe7e6..206b3a219 100644 --- a/ironic/tests/db/test_nodes.py +++ b/ironic/tests/db/test_nodes.py @@ -155,6 +155,11 @@ class DbNodeTestCase(base.DbTestCase): self.assertRaises(exception.NodeLocked, self.dbapi.destroy_node, n['id']) + def test_destroy_associated_node(self): + n = self._create_test_node(instance_uuid='fake-uuid-1234') + self.assertRaises(exception.NodeAssociated, + self.dbapi.destroy_node, n['uuid']) + def test_ports_get_destroyed_after_destroying_a_node(self): n = self._create_test_node() node_id = n['id'] |