/usr/lib/python2.6/site-packages/novaclient/tests/functional/v2
NameSizeModeActions
legacy/-0755rm
fake_crypto.py26550644editdlrm
fake_crypto.pyc21720644editdlrm
test_consoles.py14080644editdlrm
test_consoles.pyc22150644editdlrm
test_extended_attributes.py21260644editdlrm
test_extended_attributes.pyc16010644editdlrm
test_fixedips.py9240644editdlrm
test_fixedips.pyc9330644editdlrm
test_flavor_access.py15060644editdlrm
test_flavor_access.pyc14510644editdlrm
test_instances.py7330644editdlrm
test_instances.pyc5540644editdlrm
test_instance_action.py24170644editdlrm
test_instance_action.pyc26110644editdlrm
test_keypairs.py18940644editdlrm
test_keypairs.pyc22230644editdlrm
test_os_services.py17480644editdlrm
test_os_services.pyc15240644editdlrm
test_quotas.py21710644editdlrm
test_quotas.pyc19070644editdlrm
test_readonly_nova.py9040644editdlrm
test_readonly_nova.pyc7220644editdlrm
test_servers.py9540644editdlrm
test_servers.pyc9290644editdlrm
test_server_groups.py22900644editdlrm
test_server_groups.pyc21860644editdlrm
test_trigger_crash_dump.py58870644editdlrm
test_trigger_crash_dump.pyc55940644editdlrm
test_virtual_interface.py12050644editdlrm
test_virtual_interface.pyc11250644editdlrm
test_volumes_api.py7350644editdlrm
test_volumes_api.pyc5590644editdlrm
__init__.py00644editdlrm
__init__.pyc1690644editdlrm
Edit: /usr/lib/python2.6/site-packages/novaclient/tests/functional/v2/test_server_groups.py (2290B)
# Copyright 2015 Huawei Technology corp. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from novaclient.tests.functional.v2.legacy import test_server_groups class TestServerGroupClientV213(test_server_groups.TestServerGroupClient): """Server groups v2.13 functional tests.""" COMPUTE_API_VERSION = "2.latest" def test_create_server_group(self): sg_id = self._create_sg("affinity") self.addCleanup(self.nova, 'server-group-delete %s' % sg_id) sg = self.nova('server-group-get %s' % sg_id) result = self._get_column_value_from_single_row_table(sg, "Id") self._get_column_value_from_single_row_table( sg, "User Id") self._get_column_value_from_single_row_table( sg, "Project Id") self.assertEqual(sg_id, result) def test_list_server_groups(self): sg_id = self._create_sg("affinity") self.addCleanup(self.nova, 'server-group-delete %s' % sg_id) sg = self.nova("server-group-list") result = self._get_column_value_from_single_row_table(sg, "Id") self._get_column_value_from_single_row_table( sg, "User Id") self._get_column_value_from_single_row_table( sg, "Project Id") self.assertEqual(sg_id, result) def test_get_server_group(self): sg_id = self._create_sg("affinity") self.addCleanup(self.nova, 'server-group-delete %s' % sg_id) sg = self.nova('server-group-get %s' % sg_id) result = self._get_column_value_from_single_row_table(sg, "Id") self._get_column_value_from_single_row_table( sg, "User Id") self._get_column_value_from_single_row_table( sg, "Project Id") self.assertEqual(sg_id, result)