python-openstackclient/openstackclient/tests/unit
Matt Riedemann 4bd53dc109 Fix compute service set handling for 2.53+
With compute API microversion 2.53 there is a single
PUT /os-services/{service_id} API which takes the service
id as a UUID. Since the openstack compute service set
command only takes --host and --service (binary) to identify
the service, this change checks if 2.53 or greater is being
used and if so, looks up the service by host and binary and
calls the appropriate methods in novaclient.

If the command cannot uniquely identify a compute service
with the given host and binary, an error is raised. A future
change could add an --id option to be used with 2.53+ to
pass the service id (as UUID) directly to avoid the host/binary
filtering.

Change-Id: I868e0868e8eb17e7e34eef3d2d58dceedd29c2b0
Story: 2005349
Task: 30302
2019-08-09 16:00:13 +00:00
..
api Merge "Rename review.openstack.org to review.opendev.org" 2019-06-14 02:25:02 +00:00
common Remove code migrated to osc-lib long ago 2019-05-16 19:19:58 -05:00
compute Fix compute service set handling for 2.53+ 2019-08-09 16:00:13 +00:00
identity Merge "Use cliff formattable columns in identity commands" 2019-06-23 04:49:33 +00:00
image Use cliff formattable columns in image commands 2019-06-22 13:36:46 -05:00
integ Stop leaving temp files after unit test runs 2019-05-10 15:47:09 +00:00
network Merge "Change default security group protocol to 'any'" 2019-06-22 21:39:31 +00:00
object Before writing object data to stdout, re-open it in binary mode 2019-04-10 14:34:40 -05:00
volume Merge "Use cliff formattable columns in volume v2 commands" 2019-06-23 00:45:37 +00:00
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
fakes.py Adding api_version to FakeApp 2018-06-24 03:47:23 +00:00
test_shell.py Stop leaving temp files after unit test runs 2019-05-10 15:47:09 +00:00
utils.py Use cliff formattable columns in network commands 2019-05-09 21:51:57 -05:00