Toxresult_upload Permission In Devpi Index
I am using the Python devpi server, and when I create an index, it adds a default a setting acl_toxresult_upload=:ANONYMOUS:, but I cannot find out what it means. When I view the i
Solution 1:
devpi supports running tests for an uploaded package with tox on the client side. The process is roughly the following:
- create the dist (e.g.
python setup.py sdist). For tests to work, the distribution must include the test scripts and thetox.iniconfig. upload the dist to
devpi, e.g.devpi upload --index hoefling/dev dist/mypkg-0.1.tar.gzrun the tests via
devpi test --index hoefling/dev mypkgThis will download the dist from the specified index and start the test run as configured in
tox.ini.- once the tests finish,
devpi-clientwill upload the test results to the server so they can be viewed anytime via the web UI:
When clicking on the testslink, you will land on the page showing the test run overview:
By clicking on the links referring to the separate test runs, you can inspect the test run logs in details.
Now, acl_toxresult_upload, similar to acl_upload, is the list of users that are allowed to upload test results to that index. acl_toxresult_upload=:ANONYMOUS: means that anyone can run devpi test --index your_index yourpkg and upload the test results. If you want to restrict the access, do it the same way you restrict the package upload access:
$ devpi index your_index acl_toxresult_upload=me,admin,ci-bot
Post a Comment for "Toxresult_upload Permission In Devpi Index"