summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/db/utils.py
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-01-22 23:30:27 +0000
committerGerrit Code Review <review@openstack.org>2018-01-22 23:30:28 +0000
commit83e3afbdee95ad5e01d790f54da25653decf2b25 (patch)
tree9da4bfb516ecafff708a550f7c9945d2da54040f /ironic/tests/unit/db/utils.py
parentc3ed7dfb9e7e878f30fbff68f066a409879b7a3b (diff)
parent346a9a3bfc5312deb78bda8a82ae238e031413bd (diff)
downloadironic-83e3afbdee95ad5e01d790f54da25653decf2b25.tar.gz
Merge "Add XClarity Driver"
Diffstat (limited to 'ironic/tests/unit/db/utils.py')
-rw-r--r--ironic/tests/unit/db/utils.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ironic/tests/unit/db/utils.py b/ironic/tests/unit/db/utils.py
index 71aa3d098..3741d090d 100644
--- a/ironic/tests/unit/db/utils.py
+++ b/ironic/tests/unit/db/utils.py
@@ -491,6 +491,21 @@ def create_test_node_tag(**kw):
return dbapi.add_node_tag(tag['node_id'], tag['tag'])
+def get_test_xclarity_properties():
+ return {
+ "cpu_arch": "x86_64",
+ "cpus": "8",
+ "local_gb": "10",
+ "memory_mb": "4096",
+ }
+
+
+def get_test_xclarity_driver_info():
+ return {
+ 'xclarity_hardware_id': 'fake_sh_id',
+ }
+
+
def get_test_node_trait(**kw):
return {
# TODO(mgoddard): Replace None below with the NodeTrait RPC object