Commit graph

276 commits

Author SHA1 Message Date
clime
e86faa6965 use f32 instead of f31 in Vagrantfile, fix definition for centos 2020-05-13 09:00:33 +02:00
clime
c9715b953e use rpkg for epel8 2020-05-13 09:00:33 +02:00
clime
5965ea4148 add vagrant definition for CentOS 8, try to use dist-git or DistGit where possible 2020-05-13 09:00:33 +02:00
clime
9e347994b0 use f31 in tests 2020-05-13 09:00:33 +02:00
Michal Novotný
968cd7b1f3
Merge pull request #34 from FrostyX/upload-cgi-tests
Upload cgi tests
2020-05-11 19:58:12 +02:00
Jakub Kadlcik
2368a283a8 Run tests within spec %check phase 2020-05-11 15:47:57 +02:00
Jakub Kadlcik
dbab995424 Describe how to run python tests 2020-05-11 15:47:57 +02:00
Jakub Kadlcik
104a272130 tests: use an appropriate imports and shebang in python3 2020-05-11 15:47:57 +02:00
Jakub Kadlcik
9dceb5baa1 tests: use the correct path to upload.cgi script 2020-05-11 12:08:52 +02:00
Jakub Kadlcik
6a42424c6a tests: in real-life usage, REQUEST_URI will exist 2020-05-11 12:08:52 +02:00
Jakub Kadlcik
6ddb5115d5 tests: polish the asserted output messages 2020-05-11 12:08:52 +02:00
Jakub Kadlcik
2a79155be6 tests: override shebang to python2 2020-05-11 12:08:52 +02:00
Jakub Kadlcik
982fe628f6 tests: generate config file 2020-05-11 12:08:52 +02:00
Jakub Kadlcik
9cb830b23f Add tests for upload.cgi script
Moving this test file from Red Hat's internal distgit package
to upstream. This is a 1:1 copy without any changes,
so the tests will fail. I just want a point in commit history
where the file is identical and we can easily see changes that
were done since then.
2020-05-11 12:08:52 +02:00
Jakub Kadlcik
b1574ccad3 Add executable bit for upload.cgi script
It doesn't make much sense to have a shebang in a script that is
not executable. Also, we set 775 permissions to it in a spec file
anyway.

I am adding it because the tests need to run the script.
2020-05-11 12:08:52 +02:00
Michal Novotný
74a83c77fe
Merge pull request #32 from FrostyX/upload-cgi-refactoring-2
Small improvements of upload.cgi script
2020-05-03 14:50:32 +02:00
Jakub Kadlcik
5c4de58f41 Move form hash parsing to its own function 2020-05-03 14:35:06 +02:00
Jakub Kadlcik
77dccfad21 Move fedmsg code to its own function
Except for a simple refactoring that shortens our over-complicated
`main` function, this also have an added value. Not every distgit
instance is interested in sending `fedmsg` messages. In such cases,
we don't want to force them to install the `python-fedmsg` package.
2020-05-03 01:36:43 +02:00
Jakub Kadlcik
57eac00d19 Move config parsing to its own function
At the same time, allow to use a non-default config file by specifying
its path in `DISTGIT_CONFIG` environment variable.
2020-05-02 15:35:26 +02:00
Pavel Raiskup
25a94ec4e7 remove_unused_sources: print to log what we are unlinking 2019-10-02 16:26:23 +02:00
clime
6ff6fb94bd we first need to read all the input to be able to send an error
* this is done by creating the cgi.FieldStorage
2019-06-14 10:34:08 +02:00
clime
3111958b1e use more generic conversion to float for mtime 2019-06-14 10:34:08 +02:00
clime
48f795801f fix bug with renderring error responses
* they were rendered incorrectly due to printing Content-type with
extra new line already in main body. That means error statuses were
not properly handed to httpd. Also fix related buggy test.
2019-06-14 10:34:08 +02:00
Miroslav Suchý
80a6fbea98 bump up version 2019-05-28 16:56:11 +02:00
Miroslav Suchý
3f74ef778d update link to rpkg site 2019-05-28 16:51:21 +02:00
Miroslav Suchý
b81e4098ec remove old changelog entries 2019-05-28 16:46:13 +02:00
Miroslav Suchý
0827f91cbb do not specify full path for hardlink [RHBZ#1714637]
on Fedora 30- it is in /usr/sbin/
on Fedora 31+ it is in /usr/bin/
Both variants are in $PATH so calling it without full path is fine.
2019-05-28 16:45:34 +02:00
Dominik Turecek
ba39b12442 add script for removing unused source tarballs in lookaside cache
The script goes through all branches of a project (specified
by a path to the package git directory) and deletes all sources
in lookaside cache that are not referenced by the latest commits
in any of the branches.
2019-05-17 10:49:17 +02:00
clime
27d2617f74 add rpkg.conf with auto_pack = True so that srpm can be built 2019-05-16 12:20:51 +02:00
clime
1a3597b6ad bump version
* should have been bumped already on the prev commit with 1.11 tag
2019-05-16 12:20:16 +02:00
clime
1c3f79400f remove python3-configparser from requires as it is contained in python3
standard lib
2019-04-29 22:52:03 +02:00
Miroslav Suchý
468638d0bf readme: mention license in readme 2019-04-04 09:54:46 +02:00
Miroslav Suchý
2b18c5c706 readme: add examples of deployements 2019-04-04 09:52:19 +02:00
clime
c3dd2d971b create /usr/bin links to dist-git's executable files 2019-03-12 10:27:26 +01:00
clime
2092ddc97c version bump to 1.10 2019-03-11 22:37:57 +01:00
clime
98db9de1ce we need to read whole stdin in post-receive hook to avoid error during git push
the error being 'error in sideband demultiplexer'
2019-03-11 22:28:35 +01:00
clime
482915fc40 update tests to f29 2019-03-11 16:09:32 +01:00
clime
2e30538b1a fix naming of GroupCheckTest 2019-03-11 16:01:45 +01:00
clime
f1068438d2 in tests first install the desired config, then run setup_git_package
setup_git_package uses information from the config. This fixes problem
with failing grokmirror test.
2019-03-11 16:00:02 +01:00
clime
465967d52b fix post-receive hook to account for empty post-receive-chained.d 2019-03-11 15:59:05 +01:00
clime
eb9ab02d02 make upload.cgi python2/3 compatible, fix formatting 2019-03-11 12:41:08 +01:00
Miroslav Suchý
d558c4054b
Mention fedpkg as well. 2019-03-07 20:03:42 +01:00
Michal Novotný
e1f8955f98
Merge pull request #23 from zhongtianxie/master
update to real rpkg client url
2019-03-04 12:51:49 +01:00
xiezhongtian
cb85bfd512 update to real rpkg client url 2019-03-04 14:03:44 +08:00
clime
941f838d9e version bump to 1.9, add missing changelog for 1.8 2018-11-23 08:51:24 +01:00
Miroslav Suchý
65883ca546
Merge pull request #22 from release-engineering/allow_setting_mtime
Allow setting mtime
2018-11-15 22:47:24 +01:00
clime
ed72dfc827 fix check for existing distgit VM in beaker-tests 2018-11-15 15:49:17 +01:00
clime
d2329ea330 add support for setting mtime for an uploaded file 2018-11-15 15:49:13 +01:00
Michal Novotný
d012620be9
Merge pull request #20 from puiterwijk/use-remote-user
Use REMOTE_USER as fallback for GSS_NAME
2018-10-01 08:16:39 -04:00
Patrick Uiterwijk
0141af8a39 Use REMOTE_USER as fallback for GSS_NAME
GSS_NAME is only set in a specific configuration (with GssapiLocalNames on).
Make the upload.cgi also work if that configuration is not set.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-09-30 20:34:59 +02:00