aim-web2.1.0rc9
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""Synthetic report scenarios; never native Windows Update acceptance."""
|
||||
def patch_data(**extra):
|
||||
payload = {
|
||||
'platform': 'windows', 'mode': 'apply', 'evidence': 'windows_update_result',
|
||||
'complete': True,
|
||||
'updates': [{'name': 'Synthetic cumulative update', 'identifier': 'fixture-update-1',
|
||||
'architecture': None, 'old_versions': [], 'new_versions': [],
|
||||
'action': 'installed', 'kb': ['KB0000001']}],
|
||||
'updated_count': 0, 'installed_count': 1, 'removed_count': 0,
|
||||
'pending': [], 'failed_updates': [],
|
||||
'reboot_required': False, 'reboot_required_before': False,
|
||||
'reboot_required_after': False, 'reboot_performed': True,
|
||||
'reboot_deferred': False, 'reboot_delay_minutes': 5, 'blocked_reason': None,
|
||||
'rescan_after_reboot': False, 'patch_cycles': 1,
|
||||
'continuation_required': True, 'remaining_updates_known': False,
|
||||
}
|
||||
payload.update(extra)
|
||||
return payload
|
||||
|
||||
|
||||
def update_failure(reason='install_not_allowed'):
|
||||
return {'name': 'Synthetic failed update', 'identifier': 'fixture-update-2',
|
||||
'native_code': 2149842966, 'native_code_hex': '0x80240016',
|
||||
'reason': reason, 'message': 'Installation is not allowed in the observed Windows Update state.'}
|
||||
Reference in New Issue
Block a user