Mike McLean
f74c3b232f
work around nfs glitch in ensuredir
2025-08-05 10:23:58 -04:00
Mike McLean
c8c1e65f77
fix mock import
2025-08-01 15:08:54 -04:00
Mike McLean
9225bd6b44
avoid loading system hub config in unit test
2025-08-01 15:08:54 -04:00
Mike McLean
24d9466915
also fix a leaking mock
...
stop() must be called on the patcher, not the patched object
2025-08-01 09:18:53 -04:00
Mike McLean
7bf0ae833a
fix some utils tests for newer platforms
...
1. error message has changed in a library
2. multiprocessing can't handle a local function anymore
2025-08-01 08:27:01 -04:00
Mike McLean
f630251944
unit test updates
2025-07-30 18:41:37 -04:00
Mike McLean
a3fc36fa85
allow renaming rpm signatures
2025-07-30 18:41:37 -04:00
Mike McLean
c45a392146
update mock imports
2025-07-22 10:19:10 -04:00
Mike McLean
0f06d749ef
unit tests
2025-07-22 10:19:10 -04:00
Jana Cupova
f7464aec2c
Add remove-group-pkg CLI command
...
Fixes: https://pagure.io/koji/issue/3199
2025-07-22 10:19:09 -04:00
Mike McLean
bf27153e1e
unit test
2025-07-10 11:48:13 -04:00
Jana Librova
32d74ec28c
Enable specific number of builds for dist-repo tasks
...
Fixes: https://pagure.io/koji/issue/3943
2025-07-07 17:32:26 -04:00
Mike McLean
c9578b5163
unit test
2025-07-02 15:58:35 -04:00
Mike McLean
95325009a5
fix unit tests
2025-06-25 15:46:31 -04:00
Mike McLean
ffd1f38cb2
test_client_session.py
2025-06-25 15:21:11 -04:00
Mike McLean
cd36bb2826
test_pages updates
...
This fixes issues with test_pages that I found while checking
coverage. The environ dict was recycled across each call in the loop,
but those calls can modify it, leaking data from one pass to another.
Also, the mocking for _getServer was not placing the session in the
environ, which was causing the tests to miss some cases.
2025-06-12 13:24:12 +02:00
Mike McLean
c7a5622934
update test_pages to cover new code
2025-06-12 13:24:12 +02:00
Mike McLean
1d929d0d71
update call data for unit test
2025-06-12 13:24:12 +02:00
Mike McLean
357587a57c
repo requests web ui
...
* new page for request details
* new page for querying requests
* add links in taginfo and taskinfo pages
* show more data in repoinfo page
2025-06-12 13:24:12 +02:00
Mike McLean
456263b109
clean up test dir
2025-06-12 13:22:59 +02:00
Mike McLean
ad071502c1
update tests for add_volume
2025-06-12 13:22:59 +02:00
Mike McLean
51c130e290
more unit tests
2025-06-12 13:22:59 +02:00
Mike McLean
40d7a30f1b
require volume toplink to exist
2025-06-12 13:22:59 +02:00
Mike McLean
a7bc882aa5
initial fix
2025-06-12 13:22:59 +02:00
Mike McLean
cf95af0992
test showing an issue with cross volume promotion links
2025-06-12 13:22:59 +02:00
Jana Librova
037d9e468e
listUsers excepts userType as int, list and Nonetype
...
Fixes: https://pagure.io/koji/issue/4325
2025-06-02 11:21:21 +02:00
Mike McLean
b71e690b94
drop unused import in test
2025-05-20 14:30:01 +02:00
Mike McLean
85c1a1b2c9
adjust upload offset and overwrite logic
2025-05-20 14:30:01 +02:00
Mike McLean
274395a7c5
fix unit test
2025-05-19 09:48:20 +02:00
Mike McLean
64d6b3f0f7
drop builder changes for now
2025-05-07 14:07:04 +02:00
Mike McLean
0321b7128b
Unit tests, fixes, and cleanup
2025-05-07 14:07:03 +02:00
Mike McLean
dee1127ce8
Initial jinja2 porting work
2025-05-07 14:07:03 +02:00
Jana Librova
97b1f802e3
Add unit tests for add-external-repo
2025-05-06 15:43:01 +02:00
Tomas Kopecek
26198f6114
Fix flake8 and unit test
2025-04-29 16:30:33 +02:00
Mike McLean
7be49b3a04
fix unit test
2025-04-29 16:22:07 +02:00
Mike McLean
1b3990cec9
simplify extension match
...
this avoids errors if the ext value contains special characters
2025-04-29 16:22:07 +02:00
Mike McLean
6afde19a8a
match longest archivetype extension first
2025-04-29 16:22:07 +02:00
Mike McLean
66335f03e5
unit test
2025-04-29 16:20:41 +02:00
Mike McLean
026abb8311
unit test
2025-04-29 16:17:20 +02:00
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
Mike McLean
8b5b516227
fall back to task files for non-complete builds
2025-04-29 16:11:30 +02:00
Mike McLean
32a609925d
download-logs: prefer getBuildLogs for builds
2025-04-29 16:11:30 +02:00
Mike McLean
204b45edcc
fix py2 test failure
...
fix suggested by julian8628
2025-04-17 10:10:53 -04:00
Mike McLean
26f0e3e98a
drop obsolete mock
2025-04-17 10:10:53 -04:00
Mike McLean
d970eeeb5d
fix unit tests
2025-04-17 10:10:53 -04:00
Mike McLean
62021b8119
unit tests
2025-04-15 10:53:50 -04:00
Mike McLean
b3ba2fac91
unit test
2025-04-08 15:44:23 -04:00
Mike McLean
c8e1ca7732
fix pathinfo side effect from unit test
2025-03-31 11:15:32 +02:00
Mike McLean
785ef7df38
fix potential stall in test_gssapi.py
2025-03-31 11:15:32 +02:00
Mike McLean
3f0de62389
unit test
2025-03-31 11:11:55 +02:00