debian-koji/tests
Yu Ming Zhu 47c4b5d70b kojid: extend SCM.assert_allowed with hub policy
This is a simple extention of `SCM.assert_allowed`

- `assert_allowed_by_policy` will set the default "use_common" to False which is different to the old behavior
- `channel`, `user_id`, `scratch` are passed in the `policy_data` with scminfo right now.

This is a prototype for this change, and there are some other solutions could be implemented too

- Use a scmpolicy plugin as `postSCMCheckout` callback, the pro is that we can do more checks after the source is initialized on builder, meanwhile, the con is that the source will be downloaded even it is denied by policy. It might be a potential risk?
- Do the scm check in hub's `make_task`, this looks straightforward, but may lack some builder's information

fixes: #2757
2021-08-16 17:55:26 +00:00
..
test_builder fix test_delay_times 2021-08-12 03:35:06 +08:00
test_cli cli: clarify that download-logs operates on tasks 2021-08-16 13:51:01 +02:00
test_hub Add delete-rpm-sig CLI and deleteRPMSig hub call 2021-07-21 13:43:09 +02:00
test_kojira importlib instead of imp 2021-06-02 11:19:33 +02:00
test_lib Fix tests on centos 8 2021-06-22 13:17:10 +02:00
test_plugins Add btype to protonmsg 2021-07-20 10:36:53 +02:00
test_www importlib instead of imp 2021-06-02 11:19:33 +02:00
__init__.py Coverage tracking for the test suite. 2016-03-15 11:29:41 -04:00
test_docs_version.py importlib instead of imp 2021-06-02 11:19:33 +02:00
test_scm.py kojid: extend SCM.assert_allowed with hub policy 2021-08-16 17:55:26 +00:00