Jana Librova
1c923edcc8
Add new option for mock option - bootstrap_image_ready
...
Fixes: https://pagure.io/koji/issue/3958
2025-04-29 16:14:16 +02:00
Yuming Zhu
ca05418fb5
unittest: use unittest.mock instead of mock
...
because the absence of unittest.mock on python2.7, we still fallback to
mock
2024-10-23 16:35:30 +00:00
Mike McLean
117164ab3f
fix misuse of progname in unit tests
...
this was breaking parallel testing
2024-07-18 14:22:43 +02:00
Mike McLean
2485b87294
more missing tearDowns
2024-04-15 11:08:29 +02:00
Tomas Kopecek
4ad92b5cd6
Use dnf5-compatible "group install" command
...
* yum knows only "yum groupinstall"
* dnf < 5 knows both
* dnf-5 only "dnf5 group install"
From RHEL5 version of yum, @group syntax is supported, so we can
replace all groupinstall commands with "install @group".
Related: https://pagure.io/koji/issue/3971
2024-03-05 13:17:35 +01:00
Tomas Kopecek
1f06c98fda
fix tests
2023-08-28 13:04:50 +02:00
Jana Cupova
cd136ad537
Increase unit tests
...
Fixes: https://pagure.io/koji/issue/3527
2022-10-13 08:57:02 +02:00
Jana Cupova
f528fd9ca4
CLI mock-config: when topdir option, remove topurl value
...
Fixes: https://pagure.io/koji/issue/2675
2021-12-13 17:00:22 +01:00
Jana Cupova
0c6f43a9a8
cli: mock-config check arch
...
Fixes: https://pagure.io/koji/issue/2640
2021-04-19 15:11:03 +02:00
Jana Cupova
e784373000
Unify error messages
...
Unify error messages for CLI
Unify error messages for hub
Fixes: https://pagure.io/koji/issue/2720
2021-03-16 08:43:33 +01:00
Jana Cupova
dc5230c4ba
cli: mock-config error for non existing buildroot
...
When buildroot is not existing, mock-config returns an error.
Fixes: https://pagure.io/koji/issue/2642
2021-02-22 13:52:19 +01:00
Tomas Kopecek
c6e69b4f8b
backport py27 compatible file open with encoding
...
client and builder needs to run on py27 which doesn't support
open(encoding='utf-8')
Related: https://pagure.io/koji/issue/2641
2021-02-16 14:13:03 +01:00
Tomas Kopecek
96ae0ecef5
explicit encoding for text file operations
...
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
b030b46f74
remove unittest2
2020-10-06 15:00:23 +02:00
Tomas Kopecek
2bb460bc23
cli: output extra['rpm.macro.*'] to mock-config
...
Fixes: https://pagure.io/koji/issue/1859
2020-06-16 10:13:12 +02:00
Tomas Kopecek
637be55ef4
cli: drop unneeded activate_session
...
Fixes: https://pagure.io/koji/issue/2070
2020-05-22 09:36:21 +02:00
Tomas Kopecek
04f6ba886e
fix tests
2020-04-22 14:54:10 +02:00
Tomas Kopecek
6010a9a98e
fix test for opening mock file
2019-04-10 17:29:00 -04:00
Mike McLean
2092cf3a21
fix unit test
2019-04-05 19:59:34 -04:00
Tomas Kopecek
c68396c059
Use unittest2 for rhel6 compatibility
...
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Franz Chih-Ping Hsieh
f16f26be63
Add unit tests for koji commands
2017-11-30 15:02:00 -05:00