Commit graph

118604 commits

Author SHA1 Message Date
David Murphy
eac9121a87 Update tests 2023-11-14 16:53:15 +00:00
David Murphy
3702bcf8e7 Added log to check ret for test 2023-11-14 16:53:15 +00:00
David Murphy
0b810f016d Adjusted test 2023-11-14 16:53:15 +00:00
David Murphy
1a25bd7630 Added some tests for code-coverage 2023-11-14 16:53:15 +00:00
David Murphy
4e80309923 Initial working tests after migration to pytests, and pre-commit pass 2023-11-14 16:53:15 +00:00
David Murphy
b744a4a334 Initial port from unittest to pytest 2023-11-14 16:53:15 +00:00
MKLeb
eda790d495 Implement review feedback 2023-11-13 21:16:29 +00:00
MKLeb
e0e6546586 Add more coverage for the saltfile mixin and ensure passed CLI options take priority 2023-11-13 21:16:29 +00:00
MKLeb
7ab967a71b Add tests for the different ways to get the saltfile option 2023-11-13 21:16:29 +00:00
MKLeb
471ca4654f Migrate tests/unit/utils/parsers/test_log_parsers.py to pytest 2023-11-13 21:16:29 +00:00
Pedro Algarvio
11dd2ec8a9 Use the grains fixture
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-10 18:14:26 +00:00
Pedro Algarvio
bb4d8e25ed Fix package test matrix for amazon-linux-2023
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-10 18:14:26 +00:00
Pedro Algarvio
d94312b546 Add support for AmazonLinux 2023 when building repos
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-10 18:14:26 +00:00
David Murphy
e7b5a4e0d8 Updated test per reviewer's comments 2023-11-09 18:52:33 +00:00
David Murphy
3a9d28634c Updated test as per reviewer comments 2023-11-09 18:52:33 +00:00
David Murphy
b92b13cf07 Update to f-strings as per reviewers comments 2023-11-09 18:52:33 +00:00
David Murphy
be3b6cd64b Skip some tests on Windows 2023-11-09 18:52:33 +00:00
David Murphy
945137bd10 Updated tests for saltutil for code-coverage 2023-11-09 18:52:33 +00:00
Pedro Algarvio
2b142dc81b Update tools/vm.py 2023-11-09 17:25:00 +00:00
Megan Wilhite
404a659a39 Add download flag to tool's rsync cmd 2023-11-09 17:25:00 +00:00
Megan Wilhite
ecd29f5a22 Fix pre-commit 2023-11-09 17:23:55 +00:00
Megan Wilhite
fe368f4166 update package name in tests for amazon linux 2023 2023-11-09 17:23:55 +00:00
Megan Wilhite
a199b5b454 Only run amazon linux2 package tests for >=3006 2023-11-09 17:23:55 +00:00
Pedro Algarvio
1195971ffd Simplify logic
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-09 17:23:55 +00:00
Megan Wilhite
66bdc36a31 Fix amazon linux 2 tests 2023-11-09 17:23:55 +00:00
Megan Wilhite
1c312ca9c0 Fix amazon linux 2023 tests 2023-11-09 17:23:55 +00:00
Megan Wilhite
324a1519c1 Fix amazon linux 2023 64 bit tests and only run install package tests 2023-11-09 17:23:55 +00:00
ScriptAutomate
46f3e39332 Add Amazon Linux 2023; update Amazon Linux 2 AMI 2023-11-09 17:23:55 +00:00
twangboy
9b59adc16f Add comment to test 2023-11-09 17:08:31 +00:00
twangboy
c8e5547fa7 Add additional client assertion 2023-11-09 17:08:31 +00:00
twangboy
3b5dc02e70 Add some tests for client/__init__.py 2023-11-09 17:08:31 +00:00
David Murphy
9f8fc27cba Updated check version of Salt for the test 2023-11-09 17:03:03 +00:00
David Murphy
a75f0a9f41 Updated test per reviewer comments 2023-11-09 17:03:03 +00:00
David Murphy
57b02f4973 Updated tests per reviewer comments 2023-11-09 17:03:03 +00:00
David Murphy
3cee13afda Remove Photon OS from test 2023-11-09 17:03:03 +00:00
David Murphy
0ff32b01de Removed group membership check from the test 2023-11-09 17:03:03 +00:00
David Murphy
cd236c42d9 Limited test ownership to id and no longer change group on files 2023-11-09 17:03:03 +00:00
David Murphy
6d7c2f0dd1 Updated version check in test to prevent running on downgrade 2023-11-09 17:03:03 +00:00
David Murphy
7c4f68b774 Updated test to only run on RedHat family, Ubuntu/Debian has issue 65231 2023-11-09 17:03:03 +00:00
David Murphy
9b6e493db2 Added missing include for temp_directory 2023-11-09 17:03:03 +00:00
David Murphy
af8e35ebce Package test for log rotation and ownership / permissions 2023-11-09 17:03:03 +00:00
David Murphy
de84120e58 Initial log rotation test for ownership user and group 2023-11-09 17:03:03 +00:00
David Murphy
024eb3f10b Added changelog for issue 2023-11-09 17:03:03 +00:00
David Murphy
dd9a2bdfa9 Adjust ownership on log rotation 2023-11-09 17:03:03 +00:00
Shane Lee
8e9368263f Add test when config is missing main 2023-11-08 18:07:30 +00:00
twangboy
07bb453204 Fix test_get_yum_config 2023-11-08 18:07:30 +00:00
twangboy
5e50ccf31c Fix rsync on Windows using cwRsync 2023-11-08 18:07:30 +00:00
twangboy
bd469106f7 Remove decorator for yumpkg.download 2023-11-08 18:07:30 +00:00
twangboy
b2525aa042 Add tests for yumpkg 2023-11-08 18:07:30 +00:00
Shane Lee
b903999af4 Don't use parametrize on tests that should be skipped 2023-11-08 17:56:13 +00:00