patchback[bot]
e3dae0b646
[PR #9736/8e324881 backport][stable-10] rename test helper ( #9745 )
...
rename test helper (#9736 )
* rename test helper
* update ignore lines
(cherry picked from commit 8e324881a6 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2025-02-15 08:25:27 +01:00
patchback[bot]
f545c300d9
[PR #9672/7a6125b9 backport][stable-10] test helper: improvements ( #9673 )
...
test helper: improvements (#9672 )
(cherry picked from commit 7a6125b99a )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2025-02-02 10:50:11 +01:00
patchback[bot]
45f7661249
[PR #9598/f27d5e7a backport][stable-10] snap: add RV version ( #9606 )
...
snap: add RV version (#9598 )
* snap: add RV version
* add chglog frag
* fix typo
* fix docs
* add missing import
* fix sanity
* more fixes
* Update plugins/modules/snap.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* Update plugins/modules/snap_alias.py
Co-authored-by: Felix Fontein <felix@fontein.de >
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
(cherry picked from commit f27d5e7a42 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2025-01-22 20:51:27 +01:00
patchback[bot]
7542b5429b
[PR #9563/3dcac2b0 backport][stable-10] test helper: adjusted unit tests using new features ( #9564 )
...
test helper: adjusted unit tests using new features (#9563 )
(cherry picked from commit 3dcac2b030 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2025-01-12 10:12:02 +01:00
patchback[bot]
a89990ab9b
[PR #9242/88ea025d backport][stable-10] test helper improvements ( #9247 )
...
test helper improvements (#9242 )
(cherry picked from commit 88ea025d12 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com >
2024-12-14 10:44:16 +01:00
Alexei Znamensky
8ef77d8664
unit test helper: big revamp ( #8894 )
...
* initial commit
* multiple changes:
- TestCaseContext fixture no longer need to autouse=True
- Helper.from_module() allows extra param to specify yaml file
- test_django_check: adjusted .py and .yaml
* set fixtures per testcase
* set fixtures per testcase
* rollback to original state
* patch_ansible_module fixture
- now it works not only in parametrized functions but also directly with args
* tests/unit/plugins/modules/helper.py
- improved encapsulation, class Helper no longer knows details about test cases
- test functions no longer parametrized, that allows using test case fixtures per test function
- renamed 'context' to 'mock'
* enable Helper.from_list(), better param name 'ansible_module'
* adjusted test fiels to new helper
* remove unnecessary .license file
* fix bracket
* fix reference name
* Update tests/unit/plugins/modules/helper.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* revert to parametrized test func instead of multiple funcs
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
2024-09-28 08:17:36 +03:00
Alexei Znamensky
323a1dcff8
snap: detect change by checking final state ( #7340 )
...
* snap: detect change by checking final state
* detect change in snap_status variable
* add changelog frag
2023-10-08 12:03:31 +02:00
Alexei Znamensky
6e3a56ffce
encapsulate test function in the helper class ( #7247 )
2023-09-13 00:24:10 +12:00
Alexei Znamensky
bdf8852e8d
test helper: create static methods .from_file() and .from_list() ( #7239 )
...
create static methods .from_file() and .from_list()
2023-09-12 06:42:33 +02:00
Alexei Znamensky
40cad3e7a9
gconftool2: using yaml-specified unit tests ( #7196 )
...
* gconftool2: using yaml-specified unit tests
* gconftool2_info: using yaml-specified unit tests
* adjust code for skip and xfail
2023-09-02 23:30:15 +12:00
Alexei Znamensky
14bc13ba3c
further improvements ( #7192 )
...
* further improvements
* some renaming
2023-09-02 14:26:39 +12:00
Alexei Znamensky
c2d3302fc4
snap: using yaml-specified unit tests ( #7191 )
...
* snap: using yaml-specified unit tests
* remove extraneous code
2023-09-02 10:44:58 +12:00
Alexei Znamensky
ce6b2bc362
remove extraneous unused constant ( #7185 )
2023-09-01 06:32:31 +02:00
Alexei Znamensky
ea6fb9da8f
snap: add param "dangerous" ( #6908 )
...
* snap: add param "dangerous"
* adjusted run_command out for simple test case
* add changelog frag
2023-07-15 12:54:39 +02:00
Alexei Znamensky
eb734d03c0
snap: fix bug when processing output ( #6826 )
...
* snap: fix bug when processing output
* add changelog frag
2023-07-02 21:27:50 +02:00