Merge "Remove unicode from code"
This commit is contained in:
commit
4a02cec3df
@ -86,7 +86,7 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
copyright = u'2013, OpenStack QA Team'
|
copyright = '2013, OpenStack QA Team'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
@ -206,8 +206,8 @@ suppress_warnings = ['image.nonlocal_uri']
|
|||||||
# (source start file, target name, title, author, documentclass
|
# (source start file, target name, title, author, documentclass
|
||||||
# [howto/manual]).
|
# [howto/manual]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index', 'doc-tempest.tex', u'Tempest Testing Project',
|
('index', 'doc-tempest.tex', 'Tempest Testing Project',
|
||||||
u'OpenStack Foundation', 'manual'),
|
'OpenStack Foundation', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
latex_use_xindy = False
|
latex_use_xindy = False
|
||||||
|
@ -59,7 +59,7 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
copyright = u'2016, tempest Developers'
|
copyright = '2016, tempest Developers'
|
||||||
|
|
||||||
# Release do not need a version number in the title, they
|
# Release do not need a version number in the title, they
|
||||||
# cover multiple versions.
|
# cover multiple versions.
|
||||||
@ -194,8 +194,8 @@ htmlhelp_basename = 'tempestReleaseNotesdoc'
|
|||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index', 'olso.configReleaseNotes.tex',
|
('index', 'olso.configReleaseNotes.tex',
|
||||||
u'olso.config Release Notes Documentation',
|
'olso.config Release Notes Documentation',
|
||||||
u'tempest Developers', 'manual'),
|
'tempest Developers', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
# The name of an image file (relative to this directory) to place at the top of
|
# The name of an image file (relative to this directory) to place at the top of
|
||||||
@ -225,8 +225,8 @@ latex_documents = [
|
|||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('index', 'olso.configreleasenotes',
|
('index', 'olso.configreleasenotes',
|
||||||
u'tempest Release Notes Documentation',
|
'tempest Release Notes Documentation',
|
||||||
[u'tempest Developers'], 1)
|
['tempest Developers'], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
@ -240,8 +240,8 @@ man_pages = [
|
|||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'tempestReleaseNotes',
|
('index', 'tempestReleaseNotes',
|
||||||
u'tempest Release Notes Documentation',
|
'tempest Release Notes Documentation',
|
||||||
u'tempest Developers', 'olso.configReleaseNotes',
|
'tempest Developers', 'olso.configReleaseNotes',
|
||||||
'An OpenStack library for parsing configuration options from the command'
|
'An OpenStack library for parsing configuration options from the command'
|
||||||
' line and configuration files.',
|
' line and configuration files.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
|
@ -103,7 +103,7 @@ class ServersTestJSON(base.BaseV2ComputeTest):
|
|||||||
server = self.create_test_server(wait_until='ACTIVE')
|
server = self.create_test_server(wait_until='ACTIVE')
|
||||||
self.addCleanup(self.delete_server, server['id'])
|
self.addCleanup(self.delete_server, server['id'])
|
||||||
# Update instance name with non-ASCII characters
|
# Update instance name with non-ASCII characters
|
||||||
prefix_name = u'\u00CD\u00F1st\u00E1\u00F1c\u00E9'
|
prefix_name = '\u00CD\u00F1st\u00E1\u00F1c\u00E9'
|
||||||
self._update_server_name(server['id'], 'ACTIVE', prefix_name)
|
self._update_server_name(server['id'], 'ACTIVE', prefix_name)
|
||||||
|
|
||||||
# stop server and check server name update again
|
# stop server and check server name update again
|
||||||
|
@ -143,40 +143,40 @@ class BaseCmdServiceTests(MockFunctionsBase):
|
|||||||
|
|
||||||
saved_state = {
|
saved_state = {
|
||||||
# Static list to ensure global service saved items are not deleted
|
# Static list to ensure global service saved items are not deleted
|
||||||
"users": {u'32rwef64245tgr20121qw324bgg': u'Lightning'},
|
"users": {'32rwef64245tgr20121qw324bgg': 'Lightning'},
|
||||||
"flavors": {u'42': u'm1.tiny'},
|
"flavors": {'42': 'm1.tiny'},
|
||||||
"images": {u'34yhwr-4t3q': u'stratus-0.3.2-x86_64-disk'},
|
"images": {'34yhwr-4t3q': 'stratus-0.3.2-x86_64-disk'},
|
||||||
"roles": {u'3efrt74r45hn': u'president'},
|
"roles": {'3efrt74r45hn': 'president'},
|
||||||
"projects": {u'f38ohgp93jj032': u'manhattan'},
|
"projects": {'f38ohgp93jj032': 'manhattan'},
|
||||||
"domains": {u'default': u'Default'},
|
"domains": {'default': 'Default'},
|
||||||
# Static list to ensure project service saved items are not deleted
|
# Static list to ensure project service saved items are not deleted
|
||||||
"snapshots": {u'1ad4c789-7e8w-4dwg-afc5': u'saved-snapshot'},
|
"snapshots": {'1ad4c789-7e8w-4dwg-afc5': 'saved-snapshot'},
|
||||||
"servers": {u'7a6d4v7w-36ds-4216': u'saved-server'},
|
"servers": {'7a6d4v7w-36ds-4216': 'saved-server'},
|
||||||
"server_groups": {u'as6d5f7g-46ca-475e': u'saved-server-group'},
|
"server_groups": {'as6d5f7g-46ca-475e': 'saved-server-group'},
|
||||||
"keypairs": {u'saved-key-pair': {
|
"keypairs": {'saved-key-pair': {
|
||||||
u'fingerprint': u'7e:eb:ab:24',
|
'fingerprint': '7e:eb:ab:24',
|
||||||
u'name': u'saved-key-pair'
|
'name': 'saved-key-pair'
|
||||||
}},
|
}},
|
||||||
"volumes": {u'aa77asdf-1234': u'saved-volume'},
|
"volumes": {'aa77asdf-1234': 'saved-volume'},
|
||||||
"networks": {u'6722fc13-4319': {
|
"networks": {'6722fc13-4319': {
|
||||||
u'id': u'6722fc13-4319',
|
'id': '6722fc13-4319',
|
||||||
u'name': u'saved-network'
|
'name': 'saved-network'
|
||||||
}},
|
}},
|
||||||
"floatingips": {u'9e82d248-408a': {
|
"floatingips": {'9e82d248-408a': {
|
||||||
u'id': u'9e82d248-408a',
|
'id': '9e82d248-408a',
|
||||||
u'status': u'ACTIVE'
|
'status': 'ACTIVE'
|
||||||
}},
|
}},
|
||||||
"routers": {u'4s5w34hj-id44': u'saved-router'},
|
"routers": {'4s5w34hj-id44': 'saved-router'},
|
||||||
"metering_label_rules": {u'93a973ce-4dc5': {
|
"metering_label_rules": {'93a973ce-4dc5': {
|
||||||
u'direction': u'ingress',
|
'direction': 'ingress',
|
||||||
u'id': u'93a973ce-4dc5'
|
'id': '93a973ce-4dc5'
|
||||||
}},
|
}},
|
||||||
"metering_labels": {u'723b346ce866-4c7q': u'saved-label'},
|
"metering_labels": {'723b346ce866-4c7q': 'saved-label'},
|
||||||
"ports": {u'aa74aa4v-741a': u'saved-port'},
|
"ports": {'aa74aa4v-741a': 'saved-port'},
|
||||||
"security_groups": {u'7q844add-3697': u'saved-sec-group'},
|
"security_groups": {'7q844add-3697': 'saved-sec-group'},
|
||||||
"subnets": {u'55ttda4a-2584': u'saved-subnet'},
|
"subnets": {'55ttda4a-2584': 'saved-subnet'},
|
||||||
"subnetpools": {u'8acf64c1-43fc': u'saved-subnet-pool'},
|
"subnetpools": {'8acf64c1-43fc': 'saved-subnet-pool'},
|
||||||
"regions": {u'RegionOne': {}}
|
"regions": {'RegionOne': {}}
|
||||||
}
|
}
|
||||||
# Mocked methods
|
# Mocked methods
|
||||||
get_method = 'tempest.lib.common.rest_client.RestClient.get'
|
get_method = 'tempest.lib.common.rest_client.RestClient.get'
|
||||||
|
@ -37,7 +37,7 @@ class TestAggregatesClient(base.BaseServiceTest):
|
|||||||
FAKE_CREATE_AGGREGATE = {
|
FAKE_CREATE_AGGREGATE = {
|
||||||
"aggregate":
|
"aggregate":
|
||||||
{
|
{
|
||||||
"name": u'\xf4',
|
"name": '\xf4',
|
||||||
"availability_zone": None,
|
"availability_zone": None,
|
||||||
"deleted": False,
|
"deleted": False,
|
||||||
"created_at": "2015-07-21T04:11:18.000000",
|
"created_at": "2015-07-21T04:11:18.000000",
|
||||||
@ -50,7 +50,7 @@ class TestAggregatesClient(base.BaseServiceTest):
|
|||||||
FAKE_UPDATE_AGGREGATE = {
|
FAKE_UPDATE_AGGREGATE = {
|
||||||
"aggregate":
|
"aggregate":
|
||||||
{
|
{
|
||||||
"name": u'\xe9',
|
"name": '\xe9',
|
||||||
"availability_zone": None,
|
"availability_zone": None,
|
||||||
"deleted": False,
|
"deleted": False,
|
||||||
"created_at": "2015-07-16T03:07:32.000000",
|
"created_at": "2015-07-16T03:07:32.000000",
|
||||||
@ -74,7 +74,7 @@ class TestAggregatesClient(base.BaseServiceTest):
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"availability_zone": "nova"
|
"availability_zone": "nova"
|
||||||
},
|
},
|
||||||
"name": u'\xe9',
|
"name": '\xe9',
|
||||||
"updated_at": None
|
"updated_at": None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class TestAvailabilityZoneClient(base.BaseServiceTest):
|
|||||||
"available": True
|
"available": True
|
||||||
},
|
},
|
||||||
"hosts": None,
|
"hosts": None,
|
||||||
"zoneName": u'\xf4'
|
"zoneName": '\xf4'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ class TestExtensionsClient(base.BaseServiceTest):
|
|||||||
"namespace":
|
"namespace":
|
||||||
"http://docs.openstack.org/compute/ext/multinic/api/v1.1",
|
"http://docs.openstack.org/compute/ext/multinic/api/v1.1",
|
||||||
"alias": "NMN",
|
"alias": "NMN",
|
||||||
"description": u'\u2740(*\xb4\u25e1`*)\u2740'
|
"description": '\u2740(*\xb4\u25e1`*)\u2740'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,8 +22,8 @@ class TestFloatingIPPoolsClient(base.BaseServiceTest):
|
|||||||
FAKE_FLOATING_IP_POOLS = {
|
FAKE_FLOATING_IP_POOLS = {
|
||||||
"floating_ip_pools":
|
"floating_ip_pools":
|
||||||
[
|
[
|
||||||
{"name": u'\u3042'},
|
{"name": '\u3042'},
|
||||||
{"name": u'\u3044'}
|
{"name": '\u3044'}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class TestKeyPairsClient(base.BaseServiceTest):
|
|||||||
|
|
||||||
FAKE_KEYPAIR = {"keypair": {
|
FAKE_KEYPAIR = {"keypair": {
|
||||||
"public_key": "ssh-rsa foo Generated-by-Nova",
|
"public_key": "ssh-rsa foo Generated-by-Nova",
|
||||||
"name": u'\u2740(*\xb4\u25e1`*)\u2740',
|
"name": '\u2740(*\xb4\u25e1`*)\u2740',
|
||||||
"user_id": "525d55f98980415ba98e634972fa4a10",
|
"user_id": "525d55f98980415ba98e634972fa4a10",
|
||||||
"fingerprint": "76:24:66:49:d7:ca:6e:5c:77:ea:8e:bb:9c:15:5f:98"
|
"fingerprint": "76:24:66:49:d7:ca:6e:5c:77:ea:8e:bb:9c:15:5f:98"
|
||||||
}}
|
}}
|
||||||
|
@ -31,7 +31,7 @@ class TestNetworksClient(base.BaseServiceTest):
|
|||||||
"deleted_at": None,
|
"deleted_at": None,
|
||||||
"gateway": None,
|
"gateway": None,
|
||||||
"rxtx_base": None,
|
"rxtx_base": None,
|
||||||
"label": u'30d7',
|
"label": '30d7',
|
||||||
"priority": None,
|
"priority": None,
|
||||||
"project_id": None,
|
"project_id": None,
|
||||||
"vpn_private_address": None,
|
"vpn_private_address": None,
|
||||||
|
@ -29,7 +29,7 @@ class TestQuotaClassesClient(base.BaseServiceTest):
|
|||||||
"ram": 51200,
|
"ram": 51200,
|
||||||
"floating_ips": 10,
|
"floating_ips": 10,
|
||||||
"key_pairs": 100,
|
"key_pairs": 100,
|
||||||
"id": u'\u2740(*\xb4\u25e1`*)\u2740',
|
"id": '\u2740(*\xb4\u25e1`*)\u2740',
|
||||||
"instances": 10,
|
"instances": 10,
|
||||||
"security_group_rules": 20,
|
"security_group_rules": 20,
|
||||||
"security_groups": 10,
|
"security_groups": 10,
|
||||||
|
@ -22,7 +22,7 @@ class TestTenantNetworksClient(base.BaseServiceTest):
|
|||||||
FAKE_NETWORK = {
|
FAKE_NETWORK = {
|
||||||
"cidr": "None",
|
"cidr": "None",
|
||||||
"id": "c2329eb4-cc8e-4439-ac4c-932369309e36",
|
"id": "c2329eb4-cc8e-4439-ac4c-932369309e36",
|
||||||
"label": u'\u30d7'
|
"label": '\u30d7'
|
||||||
}
|
}
|
||||||
|
|
||||||
FAKE_NETWORKS = [FAKE_NETWORK]
|
FAKE_NETWORKS = [FAKE_NETWORK]
|
||||||
|
Loading…
Reference in New Issue
Block a user