mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
win_updates: Add post search category matching to support product matching (#45708)
* win_update: Add post search category matching to support product matching * win_updates: Return categories of each update * win_updates: Documentation fix-up * win_updates: Adjusted documentation to reflect regex vs sub-string match of post-cat strings * win_updates: Sped up post-category checking * win_updates: Updated documentation to suggest querying post-category strings * win_updates: Simplified saving and checking post-categories * fixed some issues and added filtered categories to return value * win_updates: Moved all category matching to occur after initial search * win_updates: Adjustments to satisfy PowerShell lint checks * win_updates: Dropped category validation from action plugin * win_updates: Documentation updates * win_updates: Fixed plugin unit tests
This commit is contained in:
committed by
Jordan Borean
parent
8245441b2e
commit
a2f3f16930
@@ -5,14 +5,6 @@
|
||||
register: invalid_state
|
||||
failed_when: invalid_state.msg != 'state must be either installed or searched'
|
||||
|
||||
- name: expect failure with invalid category name
|
||||
win_updates:
|
||||
state: searched
|
||||
category_names:
|
||||
- Invalid
|
||||
register: invalid_category_name
|
||||
failed_when: invalid_category_name.msg != 'Unknown category_name Invalid, must be one of (Application,Connectors,CriticalUpdates,DefinitionUpdates,DeveloperKits,FeaturePacks,Guidance,SecurityUpdates,ServicePacks,Tools,UpdateRollups,Updates)'
|
||||
|
||||
- name: ensure log file not present before tests
|
||||
win_file:
|
||||
path: '{{win_updates_dir}}/update.log'
|
||||
|
||||
Reference in New Issue
Block a user