Fix typo in Valence
Fix typo in Valence Change-Id: Ib0666ad381d2332aa7e0f1a7e9d3dca0e6207a5c Signed-off-by: Andy Yan <yanchao3@lenovo.com>
This commit is contained in:
parent
bfacfc8ff7
commit
cd503ba499
@ -89,7 +89,7 @@ For adding new api please refer https://github.com/openstack/valence/blob/master
|
|||||||
|
|
||||||
valence-ui
|
valence-ui
|
||||||
----------
|
----------
|
||||||
valence-ui provides a Web based GUI interface that can be used to explore
|
valence-ui provides a Web-based GUI interface that can be used to explore
|
||||||
Rack Scale Design (RSD) artifacts and compose/disassemble nodes.
|
Rack Scale Design (RSD) artifacts and compose/disassemble nodes.
|
||||||
valence-ui is implemented using Node.js runtime environment and hosted through apache.
|
valence-ui is implemented using Node.js runtime environment and hosted through apache.
|
||||||
valence-ui makes us of React.js javascript libaray and invoke Valence REST APIs through ajax REST calls.
|
valence-ui makes us of React.js javascript libaray and invoke Valence REST APIs through ajax REST calls.
|
||||||
|
@ -165,7 +165,7 @@ node_property:
|
|||||||
type: array
|
type: array
|
||||||
node_provision_state:
|
node_provision_state:
|
||||||
description: |
|
description: |
|
||||||
The composed node state value set by other orchestation tool, use this value
|
The composed node state value set by other orchestration tool, use this value
|
||||||
to help with orchestration software know its proviision progress.
|
to help with orchestration software know its proviision progress.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
|
@ -248,7 +248,7 @@ Resource attach/detach
|
|||||||
|
|
||||||
.. rest_method:: POST /v1/nodes/{node_ident}/action
|
.. rest_method:: POST /v1/nodes/{node_ident}/action
|
||||||
|
|
||||||
Send a attach/detach cmd to a composed node.
|
Send an attach/detach cmd to a composed node.
|
||||||
|
|
||||||
Normal response codes: 204
|
Normal response codes: 204
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ Consider we want to implement a new API /v1/example that returns "hello world" j
|
|||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Example(Resorce):
|
class Example(Resource):
|
||||||
def get(self):
|
def get(self):
|
||||||
LOG.debug("GET /example")
|
LOG.debug("GET /example")
|
||||||
return {“msg” : “hello world”}
|
return {“msg” : “hello world”}
|
||||||
|
@ -36,9 +36,9 @@ Unit tests scripts are located in `<valence_root>/valence/tests/unit/
|
|||||||
Implement a Unit Test Case
|
Implement a Unit Test Case
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
Consider implementing an unit test case for our example unit module.
|
Consider implementing a unit test case for our example unit module.
|
||||||
|
|
||||||
To implement an unit test case for the example unit module,
|
To implement a unit test case for the example unit module,
|
||||||
|
|
||||||
Create a class in valence/tests/unit/(directory)/test_(example).py,
|
Create a class in valence/tests/unit/(directory)/test_(example).py,
|
||||||
which inherits the TestCase class from unittest.
|
which inherits the TestCase class from unittest.
|
||||||
|
@ -35,7 +35,7 @@ Add a model for db
|
|||||||
Models are defined in the valence/db/models.py file. A new model
|
Models are defined in the valence/db/models.py file. A new model
|
||||||
should be updated there.
|
should be updated there.
|
||||||
|
|
||||||
To add a example model for Etcd db, we should create
|
To add an example model for Etcd db, we should create
|
||||||
a class that inherits the ModelBase class in valence/db/models.py.
|
a class that inherits the ModelBase class in valence/db/models.py.
|
||||||
|
|
||||||
.. NOTE::
|
.. NOTE::
|
||||||
|
@ -53,7 +53,7 @@ class ValenceConfirmation(base.ObjectBase):
|
|||||||
"""Valence Confirmation Message representation.
|
"""Valence Confirmation Message representation.
|
||||||
|
|
||||||
Whenever confirmation response needs to send back to client
|
Whenever confirmation response needs to send back to client
|
||||||
for successfull operation
|
for successful operation
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -37,9 +37,9 @@ def get_available_criteria():
|
|||||||
|
|
||||||
|
|
||||||
def create_flavors(data):
|
def create_flavors(data):
|
||||||
"""criteria : comma seperated generator names
|
"""criteria : comma separated generator names
|
||||||
|
|
||||||
This should be same as thier file name)
|
This should be same as their file name)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
criteria = data["criteria"]
|
criteria = data["criteria"]
|
||||||
|
Loading…
Reference in New Issue
Block a user