Remove unnecessary unicode prefixes
Change-Id: I4b6815bad979e19bda2d59ac37c51f592dc385e8
This commit is contained in:
parent
6648f6b684
commit
ddf12d559d
@ -1925,7 +1925,7 @@ class TestAlarmsHistory(TestAlarmsBase):
|
|||||||
" {value!r} Unset>], valid keys: ['project', "
|
" {value!r} Unset>], valid keys: ['project', "
|
||||||
"'search_offset', 'severity', 'timestamp',"
|
"'search_offset', 'severity', 'timestamp',"
|
||||||
" 'type', 'user']")
|
" 'type', 'user']")
|
||||||
msg = msg.format(key=u'alarm_id', value=u'a')
|
msg = msg.format(key='alarm_id', value='a')
|
||||||
self.assertEqual(msg,
|
self.assertEqual(msg,
|
||||||
resp.json['error_message']['faultstring'])
|
resp.json['error_message']['faultstring'])
|
||||||
|
|
||||||
@ -1938,7 +1938,7 @@ class TestAlarmsHistory(TestAlarmsBase):
|
|||||||
" {value!r} Unset>], valid keys: ['project', "
|
" {value!r} Unset>], valid keys: ['project', "
|
||||||
"'search_offset', 'severity', 'timestamp',"
|
"'search_offset', 'severity', 'timestamp',"
|
||||||
" 'type', 'user']")
|
" 'type', 'user']")
|
||||||
msg = msg.format(key=u'abcd', value=u'abcd')
|
msg = msg.format(key='abcd', value='abcd')
|
||||||
self.assertEqual(msg,
|
self.assertEqual(msg,
|
||||||
resp.json['error_message']['faultstring'])
|
resp.json['error_message']['faultstring'])
|
||||||
|
|
||||||
|
@ -225,9 +225,9 @@ class TestPartitioning(base.BaseTestCase):
|
|||||||
expected_resources=[],
|
expected_resources=[],
|
||||||
coordinator_cls=MockToozCoordExceptionRaiser)]
|
coordinator_cls=MockToozCoordExceptionRaiser)]
|
||||||
self._usage_simulation(*agents)
|
self._usage_simulation(*agents)
|
||||||
called = [mock.call(u'Error connecting to coordination backend.'),
|
called = [mock.call('Error connecting to coordination backend.'),
|
||||||
mock.call(u'Error getting group membership info from '
|
mock.call('Error getting group membership info from '
|
||||||
u'coordination backend.')]
|
'coordination backend.')]
|
||||||
self.assertEqual(called, mocked_exception.call_args_list)
|
self.assertEqual(called, mocked_exception.call_args_list)
|
||||||
|
|
||||||
@mock.patch.object(coordination.LOG, 'exception')
|
@mock.patch.object(coordination.LOG, 'exception')
|
||||||
@ -238,16 +238,16 @@ class TestPartitioning(base.BaseTestCase):
|
|||||||
with mock.patch('tooz.coordination.get_coordinator',
|
with mock.patch('tooz.coordination.get_coordinator',
|
||||||
return_value=MockToozCoordExceptionRaiser('a', {})):
|
return_value=MockToozCoordExceptionRaiser('a', {})):
|
||||||
coord.heartbeat()
|
coord.heartbeat()
|
||||||
called = [mock.call(u'Error connecting to coordination backend.'),
|
called = [mock.call('Error connecting to coordination backend.'),
|
||||||
mock.call(u'Error connecting to coordination backend.'),
|
mock.call('Error connecting to coordination backend.'),
|
||||||
mock.call(u'Error sending a heartbeat to coordination '
|
mock.call('Error sending a heartbeat to coordination '
|
||||||
u'backend.')]
|
'backend.')]
|
||||||
self.assertEqual(called, mocked_exception.call_args_list)
|
self.assertEqual(called, mocked_exception.call_args_list)
|
||||||
with mock.patch('tooz.coordination.get_coordinator',
|
with mock.patch('tooz.coordination.get_coordinator',
|
||||||
return_value=MockToozCoordinator('a', {})):
|
return_value=MockToozCoordinator('a', {})):
|
||||||
coord.heartbeat()
|
coord.heartbeat()
|
||||||
mock_info.assert_called_with(u'Coordination backend started '
|
mock_info.assert_called_with('Coordination backend started '
|
||||||
u'successfully.')
|
'successfully.')
|
||||||
|
|
||||||
def test_group_id_none(self):
|
def test_group_id_none(self):
|
||||||
coord = self._get_new_started_coordinator({}, 'a')
|
coord = self._get_new_started_coordinator({}, 'a')
|
||||||
|
@ -305,14 +305,14 @@ Sample output of alarm type **event**:
|
|||||||
+---------------------------+---------------------------------------------------------------+
|
+---------------------------+---------------------------------------------------------------+
|
||||||
| Field | Value |
|
| Field | Value |
|
||||||
+---------------------------+---------------------------------------------------------------+
|
+---------------------------+---------------------------------------------------------------+
|
||||||
| alarm_actions | [u'log://'] |
|
| alarm_actions | ['log://'] |
|
||||||
| alarm_id | 15c0da26-524d-40ad-8fba-3e55ee0ddc91 |
|
| alarm_id | 15c0da26-524d-40ad-8fba-3e55ee0ddc91 |
|
||||||
| description | Instance powered ON but in error state |
|
| description | Instance powered ON but in error state |
|
||||||
| enabled | True |
|
| enabled | True |
|
||||||
| event_type | compute.instance.power_on.* |
|
| event_type | compute.instance.power_on.* |
|
||||||
| insufficient_data_actions | [u'log://'] |
|
| insufficient_data_actions | ['log://'] |
|
||||||
| name | instance_on_state_err |
|
| name | instance_on_state_err |
|
||||||
| ok_actions | [u'log://'] |
|
| ok_actions | ['log://'] |
|
||||||
| project_id | 9ee200732f4c4d10a6530bac746f1b6e |
|
| project_id | 9ee200732f4c4d10a6530bac746f1b6e |
|
||||||
| query | traits.instance_id = bb912729-fa51-443b-bac6-bf4c795f081d AND |
|
| query | traits.instance_id = bb912729-fa51-443b-bac6-bf4c795f081d AND |
|
||||||
| | traits.state = error |
|
| | traits.state = error |
|
||||||
@ -343,7 +343,7 @@ brevity):
|
|||||||
+----------+-----------+--------+-------------------+----------+---------+
|
+----------+-----------+--------+-------------------+----------+---------+
|
||||||
| alarm_id | type | name | state | severity | enabled |
|
| alarm_id | type | name | state | severity | enabled |
|
||||||
+----------+-----------+--------+-------------------+----------+---------+
|
+----------+-----------+--------+-------------------+----------+---------+
|
||||||
| ALARM_ID | threshold | cpu_hi | insufficient data | low | True |
|
| ALARM_ID | threshold | cpu_hi | insufficient data | low | True |
|
||||||
+----------+-----------+--------+-------------------+----------+---------+
|
+----------+-----------+--------+-------------------+----------+---------+
|
||||||
|
|
||||||
In this case, the state is reported as ``insufficient data`` which
|
In this case, the state is reported as ``insufficient data`` which
|
||||||
|
@ -75,7 +75,7 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
copyright = u'2012-2015, OpenStack Foundation'
|
copyright = '2012-2015, OpenStack Foundation'
|
||||||
|
|
||||||
# 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.
|
||||||
@ -199,8 +199,8 @@ htmlhelp_basename = 'Aodhdoc'
|
|||||||
# (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-aodh.tex', u'Aodh Documentation',
|
('index', 'doc-aodh.tex', 'Aodh Documentation',
|
||||||
u'OpenStack Foundation', 'manual'),
|
'OpenStack Foundation', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
latex_elements = {
|
latex_elements = {
|
||||||
@ -244,8 +244,8 @@ latex_domain_indices = False
|
|||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('index', 'aodh', u'Aodh Documentation',
|
('index', 'aodh', 'Aodh Documentation',
|
||||||
[u'OpenStack'], 1)
|
['OpenStack'], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
@ -258,7 +258,7 @@ man_pages = [
|
|||||||
# (source start file, target name, title, author,
|
# (source start file, target name, title, author,
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'Aodh', u'Aodh Documentation', u'OpenStack',
|
('index', 'Aodh', 'Aodh Documentation', 'OpenStack',
|
||||||
'Aodh', 'One line description of project.', 'Miscellaneous'),
|
'Aodh', 'One line description of project.', 'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -275,10 +275,10 @@ texinfo_documents = [
|
|||||||
# -- Options for Epub output --------------------------------------------------
|
# -- Options for Epub output --------------------------------------------------
|
||||||
|
|
||||||
# Bibliographic Dublin Core info.
|
# Bibliographic Dublin Core info.
|
||||||
epub_title = u'Aodh'
|
epub_title = 'Aodh'
|
||||||
epub_author = u'OpenStack'
|
epub_author = 'OpenStack'
|
||||||
epub_publisher = u'OpenStack'
|
epub_publisher = 'OpenStack'
|
||||||
epub_copyright = u'2012-2015, OpenStack'
|
epub_copyright = '2012-2015, OpenStack'
|
||||||
|
|
||||||
# The language of the text. It defaults to the language option
|
# The language of the text. It defaults to the language option
|
||||||
# or en if the language is not set.
|
# or en if the language is not set.
|
||||||
|
@ -55,7 +55,7 @@ source_suffix = '.rst'
|
|||||||
master_doc = 'index'
|
master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
copyright = u'2015, Aodh Developers'
|
copyright = '2015, Aodh Developers'
|
||||||
|
|
||||||
# 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.
|
||||||
@ -188,8 +188,8 @@ htmlhelp_basename = 'AodhReleaseNotesdoc'
|
|||||||
# (source start file, target name, title,
|
# (source start file, target name, title,
|
||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
('index', 'AodhReleaseNotes.tex', u'Aodh Release Notes Documentation',
|
('index', 'AodhReleaseNotes.tex', 'Aodh Release Notes Documentation',
|
||||||
u'Aodh Developers', 'manual'),
|
'Aodh 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
|
||||||
@ -218,8 +218,8 @@ latex_documents = [
|
|||||||
# One entry per manual page. List of tuples
|
# One entry per manual page. List of tuples
|
||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
('index', 'aodhreleasenotes', u'Aodh Release Notes Documentation',
|
('index', 'aodhreleasenotes', 'Aodh Release Notes Documentation',
|
||||||
[u'Aodh Developers'], 1)
|
['Aodh Developers'], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
# If true, show URL addresses after external links.
|
# If true, show URL addresses after external links.
|
||||||
@ -232,8 +232,8 @@ man_pages = [
|
|||||||
# (source start file, target name, title, author,
|
# (source start file, target name, title, author,
|
||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'AodhReleaseNotes', u'Aodh Release Notes Documentation',
|
('index', 'AodhReleaseNotes', 'Aodh Release Notes Documentation',
|
||||||
u'Aodh Developers', 'AodhReleaseNotes',
|
'Aodh Developers', 'AodhReleaseNotes',
|
||||||
'One line description of project.',
|
'One line description of project.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user