Merge "Update to public"
This commit is contained in:
commit
30d07ce541
|
@ -108,7 +108,7 @@ class SettingsField(base.CompositeField):
|
||||||
to change this resource
|
to change this resource
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_maintenance_window = MaintenanceWindowField('MaintenanceWindow')
|
maintenance_window = MaintenanceWindowField('MaintenanceWindow')
|
||||||
"""Indicates if a given resource has a maintenance window assignment
|
"""Indicates if a given resource has a maintenance window assignment
|
||||||
for applying settings or operations"""
|
for applying settings or operations"""
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ class SettingsField(base.CompositeField):
|
||||||
"""Represents the results of the last time the values of the Settings
|
"""Represents the results of the last time the values of the Settings
|
||||||
resource were applied to the server"""
|
resource were applied to the server"""
|
||||||
|
|
||||||
_operation_apply_time_support = OperationApplyTimeSupportField(
|
operation_apply_time_support = OperationApplyTimeSupportField(
|
||||||
'OperationApplyTimeSupport')
|
'OperationApplyTimeSupport')
|
||||||
"""Indicates if a client is allowed to request for a specific apply
|
"""Indicates if a client is allowed to request for a specific apply
|
||||||
time of a create, delete, or action operation of a given resource"""
|
time of a create, delete, or action operation of a given resource"""
|
||||||
|
|
|
@ -56,21 +56,21 @@ class SettingsFieldTestCase(base.TestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
1,
|
1,
|
||||||
instance.
|
instance.
|
||||||
_maintenance_window.maintenance_window_duration_in_seconds)
|
maintenance_window.maintenance_window_duration_in_seconds)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
'2016-03-07T14:44.30-05:05',
|
'2016-03-07T14:44.30-05:05',
|
||||||
instance._maintenance_window.maintenance_window_start_time)
|
instance.maintenance_window.maintenance_window_start_time)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
1,
|
1,
|
||||||
instance._operation_apply_time_support.
|
instance.operation_apply_time_support.
|
||||||
maintenance_window_duration_in_seconds)
|
maintenance_window_duration_in_seconds)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
'2016-03-07T14:44.30-05:10',
|
'2016-03-07T14:44.30-05:10',
|
||||||
instance._operation_apply_time_support.
|
instance.operation_apply_time_support.
|
||||||
maintenance_window_start_time)
|
maintenance_window_start_time)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
'Immediate',
|
'Immediate',
|
||||||
instance._operation_apply_time_support.supported_values)
|
instance.operation_apply_time_support.supported_values)
|
||||||
|
|
||||||
def test_commit(self):
|
def test_commit(self):
|
||||||
conn = mock.Mock()
|
conn = mock.Mock()
|
||||||
|
|
Loading…
Reference in New Issue