summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/api/utils.py
diff options
context:
space:
mode:
authorZhenguo Niu <niuzhenguo@huawei.com>2015-10-21 18:04:35 +0800
committerZhenguo Niu <niuzhenguo@huawei.com>2016-02-26 10:27:11 +0800
commitc1a8606095d4021c0f484d2bfa86fc15602503eb (patch)
tree02155f692be6b26cceba62f53792ff36b4cf353c /ironic/tests/unit/api/utils.py
parent33b4bf8542b54c6a140a9099add73b593bccfd57 (diff)
downloadironic-c1a8606095d4021c0f484d2bfa86fc15602503eb.tar.gz
Add db api layer for CRUD operations on node tags
- set/unset node tags - get node tags - add/delete single tag - check whether node tag exists - Delete all tags attached to the node when it's destroyed This will not support creating node with tags, just ignore the specified tags. Change-Id: Ibe83a726d904fd33b8550c8bec134cf05644560e Partial-bug: #1526266
Diffstat (limited to 'ironic/tests/unit/api/utils.py')
-rw-r--r--ironic/tests/unit/api/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/tests/unit/api/utils.py b/ironic/tests/unit/api/utils.py
index d44db2098..369a16307 100644
--- a/ironic/tests/unit/api/utils.py
+++ b/ironic/tests/unit/api/utils.py
@@ -95,6 +95,7 @@ def node_post_data(**kw):
node.pop('chassis_id')
node.pop('target_raid_config')
node.pop('raid_config')
+ node.pop('tags')
internal = node_controller.NodePatchType.internal_attrs()
return remove_internal(node, internal)