mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-22 22:42:57 +00:00
fix tests and cleanup the repo after last two unintended commits
This commit is contained in:
parent
5d2ef7c18d
commit
c682b80fdd
17 changed files with 46 additions and 66 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.swp
|
||||
.vagrant
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
1.5:4636a095-0c1a-40b8-bd59-8b556bf6875b
|
|
@ -1 +0,0 @@
|
|||
0
|
|
@ -1 +0,0 @@
|
|||
4636a095-0c1a-40b8-bd59-8b556bf6875b
|
|
@ -1 +0,0 @@
|
|||
7406c2e7b0a84342953f8568d9fcf4f0
|
|
@ -1,27 +0,0 @@
|
|||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpQIBAAKCAQEAzERE28zyGAlPETd0HilrWv0P1hNYth/mBmJH8YrDN1Ms28Qa
|
||||
P+j5j+/vOJ9HaAmshpUv7bHAg/icprzXP97iZErnOfQ67y0dk/u/lkm6ZGXBKKe3
|
||||
3Hn8s2hTh1fnGKOmKkcelKjeEzqFXs6L3g/9te0gtweCO7QnJerGfjRYGCkhG0kA
|
||||
CqVDqgHTV8ZzLK2Es5D+TydPLWtPgVFYM7DDbBcZwICpcAl3Q+kcam7AHbbYoWF5
|
||||
HJ4m2tCn7yb2J2NJJsQEyYzTKYG7NsBKVKKDIqGBt0UQkhsYd3saadhiW3G2X+2W
|
||||
xXykYr+NC0f4ZXgVj5fBPG+17cgeuJBKs8G2FQIDAQABAoIBAE39KsU5BJ3EwBl0
|
||||
sLLrYX/F6wvzKwWuPCbn00wXjN1Mtm3Z+6O3EcGw/AcEWUERoHtp7ni0SyqX+0d2
|
||||
BkDumkVsi8gGxZGYChj8H3QEBlRavVsGXh6hvKfLB0k/eI5hvQmbScO8jb2NtGo0
|
||||
Nha8yENzm/AFv+WHrQK/FrYMyi2+p4/zabyIs8leDm2NJ/DguhvgjgnvB0LdhZL8
|
||||
axLcb3BX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2ai7qG6aXxWbM3IVk=
|
||||
-----END RSA PRIVATE KEY-----
|
|
@ -1 +0,0 @@
|
|||
{"rsync":{"/vagrant":{"type":"rsync","guestpath":"/vagrant","hostpath":"/home/clime/dist-git","disabled":false,"__vagrantfile":true,"owner":"vagrant","group":"vagrant"}}}
|
41
Vagrantfile
vendored
41
Vagrantfile
vendored
|
@ -9,9 +9,15 @@ Vagrant.configure(2) do |config|
|
|||
|
||||
distgit.vm.synced_folder ".", "/vagrant", type: "rsync"
|
||||
|
||||
# setup test user
|
||||
distgit.vm.provision "shell",
|
||||
inline: "echo 'nameserver 8.8.8.8' >> /etc/resolv.conf",
|
||||
run: "always"
|
||||
inline: "useradd clime -G packager"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "echo 'clime ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "echo 'nameserver 8.8.8.8' >> /etc/resolv.conf"
|
||||
|
||||
# Update the system
|
||||
distgit.vm.provision "shell",
|
||||
|
@ -28,46 +34,33 @@ Vagrant.configure(2) do |config|
|
|||
inline: "cd /vagrant/ && tito build -i --test --rpm",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "cp /etc/httpd/conf.d/dist-git/lookaside-upload.conf.example /etc/httpd/conf.d/dist-git/lookaside-upload.conf",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "file",
|
||||
source: "./beaker-tests/pkgs-files/pkgs.example.org.pem", destination: "/tmp/pkgs.example.org.pem",
|
||||
source: "./beaker-tests/pkgs-files/", destination: "/tmp/",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "mv /tmp/pkgs.example.org.pem /etc/pki/tls/certs/pkgs.example.org.pem && restorecon -R /etc/pki/tls/certs/",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "file",
|
||||
source: "./beaker-tests/pkgs-files/ca-bundle.crt", destination: "/tmp/ca-bundle.crt",
|
||||
inline: "mv /tmp/pkgs-files/pkgs.example.org.pem /etc/pki/tls/certs/pkgs.example.org.pem && restorecon -R /etc/pki/tls/certs/",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "mv /tmp/ca-bundle.crt /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem && restorecon -R /etc/pki/ca-trust/extracted/pem/",
|
||||
inline: "mv /tmp/pkgs-files/ca-bundle.crt /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem && restorecon -R /etc/pki/ca-trust/extracted/pem/",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "mv /tmp/pkgs-files/lookaside-upload.conf /etc/httpd/conf.d/dist-git/ && restorecon -R /etc/httpd/conf.d/dist-git/",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "systemctl enable dist-git.socket && systemctl restart dist-git.socket",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "rm -f /etc/httpd/conf.d/ssl.conf", # remove default ssl config for it conflicts with lookaside-upload.conf
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "systemctl enable httpd && systemctl restart httpd",
|
||||
run: "always"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "useradd clime -G packager"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "echo 'clime ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
|
||||
|
||||
distgit.vm.provision "shell",
|
||||
inline: "dnf install -y python-grokmirror"
|
||||
inline: "dnf install -y python-grokmirror",
|
||||
run: "always"
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[fedpkg]
|
||||
lookaside = http://pkgs.example.org/repo/pkgs
|
||||
lookasidehash = md5
|
||||
lookasidehash = sha512
|
||||
lookaside_cgi = https://pkgs.example.org/repo/pkgs/upload.cgi
|
||||
gitbaseurl = ssh://clime@pkgs.example.org/%(module)s
|
||||
anongiturl = git://pkgs.example.org/%(module)s
|
||||
|
|
24
beaker-tests/pkgs-files/lookaside-upload.conf
Normal file
24
beaker-tests/pkgs-files/lookaside-upload.conf
Normal file
|
@ -0,0 +1,24 @@
|
|||
<VirtualHost _default_:443>
|
||||
# This alias must come before the /repo/ one to avoid being overridden.
|
||||
ScriptAlias /repo/pkgs/upload.cgi /var/lib/dist-git/web/upload.cgi
|
||||
|
||||
Alias /repo/ /var/lib/dist-git/cache/lookaside/
|
||||
|
||||
ServerName pkgs.example.org
|
||||
ServerAdmin webmaster@fedoraproject.org
|
||||
|
||||
SSLCertificateFile /etc/pki/tls/certs/pkgs.example.org.pem
|
||||
SSLCertificateKeyFile /etc/pki/tls/certs/pkgs.example.org.pem
|
||||
SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
|
||||
|
||||
LogLevel trace8
|
||||
|
||||
# provide this manually for upload.cgi
|
||||
SetEnv SSL_CLIENT_S_DN_CN clime
|
||||
|
||||
<Location /repo/pkgs/upload.cgi>
|
||||
Options +ExecCGI
|
||||
Require all granted
|
||||
</Location>
|
||||
|
||||
</VirtualHost>
|
|
@ -24,9 +24,7 @@ dnf -y install vagrant-libvirt
|
|||
dnf -y install jq
|
||||
dnf -y install git
|
||||
dnf -y install wget
|
||||
dnf -y --best install fedpkg
|
||||
|
||||
dnf -y downgrade fedpkg --allowerasing # FIXME: the dist-git Vagrantfile is not compatible with fedpkg-1.26 due to it not sending server cert
|
||||
dnf -y install fedpkg
|
||||
|
||||
# enable libvirtd for Vagrant (distgit)
|
||||
systemctl enable libvirtd && systemctl start libvirtd
|
||||
|
|
|
@ -32,7 +32,7 @@ rlJournalStart
|
|||
rlRun "fedpkg import --skip-diffs ../prunerepo-1.1-1.fc23.src.rpm"
|
||||
|
||||
# test of presence of the uploaded file
|
||||
rlRun 'wget http://pkgs.example.org/repo/pkgs/prunerepo/prunerepo-1.1.tar.gz/md5/c5af09c7fb2c05e556898c93c62b1e35/prunerepo-1.1.tar.gz'
|
||||
rlRun 'wget http://pkgs.example.org/repo/pkgs/prunerepo/prunerepo-1.1.tar.gz/sha512/6a6a30c0e8c661176ba0cf7e8f1909a493a298fd5088389f5eb630b577dee157106e5f89dc429bcf2a6fdffe4bc10b498906b9746220882827560bc5f72a1b01/prunerepo-1.1.tar.gz'
|
||||
|
||||
# commit of spec and updated sources and push into the git repo
|
||||
rlRun "git add -A && git commit -m 'test commit'"
|
||||
|
@ -79,6 +79,6 @@ rlJournalStart
|
|||
rlPhaseStartCleanup BasicTest
|
||||
rm -rf $TESTPATH/prunerepo $TESTPATH/prunerepo-copy* $TESTPATH/prunerepo2 $TESTPATH/prunerepo-1.1.tar.gz $TESTPATH/manifest*
|
||||
pkgs_cmd 'rm -rf /var/lib/dist-git/git/prunerepo.git'
|
||||
#pkgs_cmd 'sudo rm -rf /var/lib/dist-git/cache/lookaside/pkgs/prunerepo'
|
||||
pkgs_cmd 'sudo rm -rf /var/lib/dist-git/cache/lookaside/pkgs/prunerepo'
|
||||
rlPhaseEnd
|
||||
rlJournalEnd &> /dev/null
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"/prunerepo.git": {"owner": null, "fingerprint": "915058d82e629002f80ce05cc5e0d768794fea02", "description": "prunerepo", "reference": null, "modified": 1500904204}}
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e40ea73f6e4fbc1b3eeb921bc98b5800aaee9ada
|
|
@ -1 +0,0 @@
|
|||
Subproject commit e40ea73f6e4fbc1b3eeb921bc98b5800aaee9ada
|
|
@ -1 +0,0 @@
|
|||
manifest test
|
Loading…
Add table
Reference in a new issue