Update git submodules
* Update cyborg from branch 'master' - Merge "Introduce microversion" - Introduce microversion This patch aims at support microversion in Cyborg API. The work items is the following: 1. remove old api_version_request.py to avoid the redundancy. 2. add a header in every API request and support to parse it and route to the correct API method. 3. depracate v1 API. 4. add related UT. For testing: CTYPE="Content-Type: application/json" AUTH="X-Auth-Token: $(openstack token issue -c id -f value)" curl -s -H "$CTYPE" -H "$AUTH" -H "OpenStack-API-Version: accelerator 2.0" http://localhost/accelerator/devices This will execute sucessfully because 2.0 microversion is supported. curl -s -H "$CTYPE" -H "$AUTH" -H "OpenStack-API-Version: accelerator latest" http://localhost/accelerator/devices This will execute sucessfully because "latest" will be parsed to 2.0. curl -s -H "$CTYPE" -H "$AUTH" -H "OpenStack-API-Version: accelerator 2.99" http://localhost/accelerator/devices This will failed because we don't support 2.99 microversion. Change-Id: Id9c34dc134d59b2332cefbcae5bbd7e6632e970d
This commit is contained in:
parent
d8f3d0c76b
commit
4b96411021
2
cyborg
2
cyborg
|
@ -1 +1 @@
|
|||
Subproject commit 5d0ed50b38a2916ff6c56864aa03cdca5b638547
|
||||
Subproject commit 1f78a42c5a55304ec76867a6e3e0e7ef47a7eb5e
|
Loading…
Reference in New Issue