Commit graph

932 commits

Author SHA1 Message Date
Mike McLean
c944ef36a1 unit test for get_rpm preferences 2024-01-05 10:01:02 +00:00
Mike McLean
c5395a5a8f fix unit tests
- adjustments for query updates
- draft data no longer in build.extra
- drop some unhelpful assertions
2024-01-05 10:01:02 +00:00
Yu Ming Zhu
6997097392 fix tests 2024-01-05 10:00:58 +00:00
Yu Ming Zhu
8a64c93d05 promoteBuild: reformat error messages 2024-01-05 10:00:54 +00:00
Yu Ming Zhu
3dbe136187 promoteBuild: remove strict option 2024-01-05 10:00:53 +00:00
Yu Ming Zhu
e32c71c100 remove draft opts in import_build and completeBuild 2024-01-05 10:00:52 +00:00
Mike McLean
af36318ead refactor get_rpm 2024-01-05 10:00:50 +00:00
Yu Ming Zhu
34c6712fde simpler gen_draft_release and parse_target_release 2024-01-05 10:00:47 +00:00
Yu Ming Zhu
08a2d6c389 revert tests/test_cli/test_import.py 2024-01-05 10:00:39 +00:00
Yu Ming Zhu
f29e5e143e parse target_release from draft release instead of extra.draft.target_release 2024-01-05 10:00:38 +00:00
Yuming Zhu
0859f1ba89 promoteBuild: update volume based on volume policy 2024-01-05 10:00:36 +00:00
Yu Ming Zhu
44d59ecbc7 can only promote COMPLETE draft build 2024-01-05 10:00:35 +00:00
Yuming Zhu
6fe42b6212 cil wrapper-rpm: input check and more reasonable opt --create-draft 2024-01-05 10:00:35 +00:00
Yuming Zhu
c045bc7100 promoteBuild: split main function to _promote_build 2024-01-05 10:00:34 +00:00
Yu Ming Zhu
77a06c98b3 draft filter opt: use bool/None instead of bit flag 2024-01-05 10:00:33 +00:00
Yu Ming Zhu
8a34f7efa0 promote-build command 2024-01-05 10:00:32 +00:00
Yuming Zhu
3ff5eaadd6 misc fixes 2024-01-05 10:00:30 +00:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Jana Cupova
ce624342d8 Fix unittests for python-mock-5.x
Fixes: https://pagure.io/koji/issue/3967
2024-01-02 13:06:22 +01:00
Yu Ming Zhu
7b1f2a6137 cli: [list-permissions] backward compatibility for getUserPermsInheritance call
fixes: #3959
2023-12-08 23:52:39 +00:00
Tomas Kopecek
abe0bc47fb Fix test
Test was not mocking properly log calls, creating log file at local
filesystem.
2023-12-08 11:16:36 +01:00
Tomas Kopecek
41869961f6 Remove six.configparser.SafeConfingParser from tests
Fixes: https://pagure.io/koji/issue/3939
2023-11-09 13:58:53 +01:00
Mike McLean
7a6ab7aafa unit test fixes 2023-10-30 11:49:56 +01:00
Tomas Kopecek
0c58cd954d Retrieve task_id for older OSBS builds
Related: https://pagure.io/koji/issue/3906
2023-10-23 14:24:16 +02:00
Tomas Kopecek
268d07caf4 PR#3884: short option for watch-logs --follow
Merges #3884
https://pagure.io/koji/pull-request/3884

Related: #3909
https://pagure.io/koji/issue/3909
2023-10-23 14:21:01 +02:00
Tomas Kopecek
15bdb0cdf9 Revert "short option for watch-logs --follow"
This reverts commit 0b7a97dc19.

It was not pushed via correct PR merge. Same commit will follow with
correct workflow.
2023-10-23 14:09:39 +02:00
Tomas Kopecek
0b7a97dc19 short option for watch-logs --follow
Related: https://pagure.io/koji/issue/3909
2023-10-23 14:04:54 +02:00
Mike McLean
e649e19be5 unit test 2023-10-03 15:23:02 +02:00
Mike McLean
3a1ee5cddb fix unit tests
get_ready_hosts function was dropped
2023-10-03 15:23:02 +02:00
Tomas Kopecek
5a368dd72f fix tests
Text change introduced in PR 3915
2023-10-03 15:18:51 +02:00
Tomas Kopecek
9f1f5b674d short option for watch-logs --follow
Related: https://pagure.io/koji/issue/3909
2023-09-22 09:26:31 +02:00
Jana Cupova
48b34b4680 Unify getSessionInfo output
Fixes: https://pagure.io/koji/issue/3793
2023-09-13 18:32:36 -04:00
Tomas Kopecek
f5f8e6c6a2 refactor get_user_perms 2023-09-04 09:16:21 +02:00
Tomas Kopecek
e1ea85f184 getUserPermsInheritance 2023-09-04 09:16:21 +02:00
Tomas Kopecek
255ec21d00 Inherit group permissions
Related: https://pagure.io/koji/issue/3849
2023-09-04 09:16:21 +02:00
Tomas Kopecek
1f06c98fda fix tests 2023-08-28 13:04:50 +02:00
Tomas Kopecek
60722acf09 Extend getUser to get user groups
Related: https://pagure.io/koji/issue/3854
2023-08-02 12:46:40 +02:00
Tomas Kopecek
ad0566d7cc distrepo will not skip rpm stat by default
There is also CLI option which can override this behaviour if needed.

Related: https://pagure.io/koji/issue/3829
2023-07-18 11:31:07 +02:00
Tomas Kopecek
0f75baac74 Fix user_in_group policy test
Related: https://pagure.io/koji/issue/3858
2023-07-17 16:17:47 +02:00
Tomas Kopecek
7afa72a60d fix tests 2023-07-13 17:03:23 +02:00
Tomas Kopecek
030e37e1fb fix tests/flake8 2023-07-04 09:09:57 +02:00
Mike McLean
61675aec2f be pickier about keyword args and add a note about them in usage 2023-07-04 08:55:12 +02:00
Mike McLean
65d0bbb897 additional unit tests 2023-07-04 08:55:12 +02:00
Mike McLean
97932391de unit tests 2023-07-04 08:55:12 +02:00
Mike McLean
07e4193160 unit test 2023-05-23 17:54:17 +02:00
Tomas Kopecek
576e5d6f3b PR#3819: track update time in host table
Merges #3819
https://pagure.io/koji/pull-request/3819

Fixes: #3789
https://pagure.io/koji/issue/3789
2023-05-17 10:58:12 +02:00
Mike McLean
6455974fd5 adjust unit tests for new args 2023-05-17 09:35:11 +02:00
Tomas Kopecek
0986c118fd fix unit tests 2023-05-17 09:31:35 +02:00
geargyri
0eedf36c41 add policy check
Related: https://pagure.io/koji/issue/3183
2023-05-17 09:31:35 +02:00
Tomas Kopecek
7f7df0165c fix tests
Related: https://pagure.io/koji/issue/3789
2023-05-16 13:14:16 +02:00