diff options
author | Kaifeng Wang <kaifeng.w@gmail.com> | 2018-11-23 15:33:33 +0800 |
---|---|---|
committer | Kaifeng Wang <kaifeng.w@gmail.com> | 2018-12-04 09:13:24 +0800 |
commit | 7c7744dfb3ef617537f584478d7fd2cffb2481f4 (patch) | |
tree | 5abb25798c90bb5386ba8349d26269d5e9075d76 /ironic/tests/unit/db/utils.py | |
parent | e2a768f0cd2abf6f2ac456949a8c46628b27b5ef (diff) | |
download | ironic-7c7744dfb3ef617537f584478d7fd2cffb2481f4.tar.gz |
Expose conductors: api
This patch implements API part to the feature of exposing conductors
information.
A new API object Conductor is added to provide endpoints below:
* GET /v1/conductors for listing conductor resources
* GET /v1/conductors/{hostname} for showing a conductor
V1 endpoint discovery and default policy are updated.
A conductor field is added to Node API object, which returns in
/v1/nodes* related endpoints.
Considering patch size and microversion conflicting with other api
patches, api-ref would go in another patch if no strong opinions.
Story: 1724474
Task: 28064
Change-Id: Iec6aaabc46442a60e2d27e02c21e67234b84d77b
Diffstat (limited to 'ironic/tests/unit/db/utils.py')
-rw-r--r-- | ironic/tests/unit/db/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ironic/tests/unit/db/utils.py b/ironic/tests/unit/db/utils.py index 6e3b7e1c6..9be77ff8e 100644 --- a/ironic/tests/unit/db/utils.py +++ b/ironic/tests/unit/db/utils.py @@ -217,6 +217,7 @@ def get_test_node(**kw): 'automated_clean': kw.get('automated_clean', None), 'protected': kw.get('protected', False), 'protected_reason': kw.get('protected_reason', None), + 'conductor': kw.get('conductor'), } for iface in drivers_base.ALL_INTERFACES: |