Commit graph

410 commits

Author SHA1 Message Date
Mike McLean
2734d5276f require lowercase sigkey 2025-08-22 11:04:39 -04:00
Mike McLean
8ba268eecc tweak unit test 2025-08-22 11:04:39 -04:00
Mike McLean
0e1addf6fe add unit tests 2025-08-05 10:28:41 -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
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
bf27153e1e unit test 2025-07-10 11:48:13 -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
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
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
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
eb9ada8eb5 test config dtypes 2025-03-21 14:52:37 +01:00
Mike McLean
a7d7d9c1f5 move config map and add unit tests 2025-03-21 14:52:37 +01:00
Mike McLean
74fe5301a2 include tag name in newRepo args
Fixes https://pagure.io/koji/issue/4208
2025-02-04 12:45:11 +01:00
Yuming Zhu
951cee051f resort tests from lib to hub for py2 2025-01-06 10:55:41 +01:00
Mike McLean
d18aacfc5a fix repo handing for bare wrapperRPM task
Fixes: https://pagure.io/koji/issue/4266
2024-12-05 16:16:13 +01: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
Tomas Kopecek
8c3755c704 Provide tag data in policy_data_from_task_args
Also included
* unit test
* only set scratch if opt is present
2024-08-28 15:44:59 +02:00
Mike McLean
c09780bbb5 adjust handling for tags with no arches 2024-08-15 11:50:50 +02:00
Mike McLean
085d97fb2d one more test 2024-08-15 11:50:50 +02:00
Mike McLean
3a8a0786be add unit test and adjust error handling
(no errors were found with the code, but needed to avoid masking them in
tests)
2024-08-15 11:50:50 +02:00
Mike McLean
b91a40c0fc restore test 2024-08-13 12:44:01 +02:00
Mike McLean
9b9a207206 fix test name 2024-08-13 12:44:01 +02:00
Jana Librova
8eb2078a4c Fix asserts in unit tests 2024-08-13 12:44:01 +02:00
Christopher O'Brien
cb6da5074c change return type to list of dicts 2024-08-13 12:41:42 +02:00
Christopher O'Brien
0bd816c689 Make getGroupMembers anonymous and add getUserGroups 2024-08-13 12:41:42 +02:00
Mike McLean
6002373ff9 avoid leaving stray temp files 2024-07-18 14:22:43 +02:00
Mike McLean
8d8274a35e fix context mocking 2024-07-18 14:22:43 +02:00
Tomas Kopecek
d7bbc037f5 more mocks related to context 2024-07-18 14:22:43 +02:00
Mike McLean
95dacbe785 more missing tearDowns 2024-07-18 14:22:43 +02:00
Mike McLean
d05b0a4de1 fix unit tests 2024-07-12 10:55:44 -04:00
Mike McLean
f2331ba27f handle cases where there is no event before our ts 2024-07-05 12:37:24 -04:00
Mike McLean
e7fb5908e4 unit test 2024-07-03 13:20:04 +02:00
Mike McLean
bd14d90bbc extend repo_init unit test 2024-06-22 18:12:12 -04:00