Skip to content

Commit

Permalink
System tests for aptly publish repo. #10
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Mar 26, 2014
1 parent 9ff49ff commit 2201420
Show file tree
Hide file tree
Showing 20 changed files with 472 additions and 3 deletions.
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo10Test_gold
@@ -0,0 +1 @@
ERROR: unable to publish: invalid prefix ../la
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo11Test_gold
@@ -0,0 +1 @@
ERROR: unable to publish: local repo with name local-repo not found
11 changes: 11 additions & 0 deletions system/t06_publish/PublishRepo12Test_gold
@@ -0,0 +1,11 @@
Loading packages...
Generating metadata files and linking package files...

Local repo local-repo has been successfully published.
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/ maverick main
deb-src http://your-server/ maverick main
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.
9 changes: 9 additions & 0 deletions system/t06_publish/PublishRepo12Test_release
@@ -0,0 +1,9 @@
Origin: . maverick
Label: . maverick
Codename: maverick
Architectures: i386
Components: main
Description: Generated by aptly
MD5Sum:
SHA1:
SHA256:
2 changes: 2 additions & 0 deletions system/t06_publish/PublishRepo13Test_gold
@@ -0,0 +1,2 @@
Loading packages...
ERROR: unable to publish: source is empty
26 changes: 26 additions & 0 deletions system/t06_publish/PublishRepo1Test_binary
@@ -0,0 +1,26 @@


(name, value) pairs from the user, via conventional methods such as
.
.
Boost version (currently 1.49).
Library to let program developers obtain program options, that is
This package forms part of the Boost C++ Libraries collection.
This package is a dependency package, which depends on Debian's default
command line and config file.
Architecture: i386
Depends: libboost-program-options1.49-dev
Description: program options library for C++ (default version)
Filename: pool/main/b/boost-defaults/libboost-program-options-dev_1.49.0.1_i386.deb
Homepage: http://www.boost.org/libs/program_options/
Installed-Size: 26
MD5sum: 0035d7822b2f8f0ec4013f270fd650c2
Maintainer: Debian Boost Team <pkg-boost-devel@lists.alioth.debian.org>
Package: libboost-program-options-dev
Priority: optional
SHA1: 36895eb64cfe89c33c0a2f7ac2f0c6e0e889e04b
SHA256: c76b4bd12fd92e4dfe1b55b18a67a669d92f62985d6a96c8a21d96120982cf12
Section: libdevel
Size: 2738
Source: boost-defaults
Version: 1.49.0.1
13 changes: 13 additions & 0 deletions system/t06_publish/PublishRepo1Test_gold
@@ -0,0 +1,13 @@
Loading packages...
Generating metadata files and linking package files...
Signing file '${HOME}/.aptly/public/dists/maverick/Release' with gpg, please enter your passphrase when prompted:
Clearsigning file '${HOME}/.aptly/public/dists/maverick/Release' with gpg, please enter your passphrase when prompted:

Local repo local-repo has been successfully published.
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/ maverick main
deb-src http://your-server/ maverick main
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.
9 changes: 9 additions & 0 deletions system/t06_publish/PublishRepo1Test_release
@@ -0,0 +1,9 @@
Origin: . maverick
Label: . maverick
Codename: maverick
Architectures: i386
Components: main
Description: Generated by aptly
MD5Sum:
SHA1:
SHA256:
42 changes: 42 additions & 0 deletions system/t06_publish/PublishRepo1Test_sources
@@ -0,0 +1,42 @@
Package: pyspi
Version: 0.6.1-1.3
Maintainer: Jose Carlos Garcia Sogo <jsogo@debian.org>
Architecture: any
Homepage: http://people.redhat.com/zcerza/dogtail
Binary: python-at-spi
Directory: pool/main/p/pyspi
Checksums-Sha1: 95a2468e4bbce730ba286f2211fa41861b9f1d90 3456 pyspi_0.6.1-1.3.diff.gz
56c8a9b1f4ab636052be8966690998cbe865cd6c 1782 pyspi_0.6.1-1.3.dsc
9694b80acc171c0a5bc99f707933864edfce555e 29063 pyspi_0.6.1.orig.tar.gz
Checksums-Sha256: 2e770b28df948f3197ed0b679bdea99f3f2bf745e9ddb440c677df9c3aeaee3c 3456 pyspi_0.6.1-1.3.diff.gz
d494aaf526f1ec6b02f14c2f81e060a5722d6532ddc760ec16972e45c2625989 1782 pyspi_0.6.1-1.3.dsc
64069ee828c50b1c597d10a3fefbba279f093a4723965388cdd0ac02f029bfb9 29063 pyspi_0.6.1.orig.tar.gz
Format: 1.0
Standards-Version: 3.7.3
Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk
Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev
Files: 22ff26db69b73d3438fdde21ab5ba2f1 3456 pyspi_0.6.1-1.3.diff.gz
b72cb94699298a117b7c82641c68b6fd 1782 pyspi_0.6.1-1.3.dsc
def336bd566ea688a06ec03db7ccf1f4 29063 pyspi_0.6.1.orig.tar.gz

Package: pyspi
Version: 0.6.1-1.4
Maintainer: Jose Carlos Garcia Sogo <jsogo@debian.org>
Architecture: any
Binary: python-at-spi
Format: 1.0
Build-Depends: debhelper (>= 5), cdbs, libatspi-dev, python-pyrex, python-support (>= 0.4), python-all-dev, libx11-dev
Homepage: http://people.redhat.com/zcerza/dogtail
Standards-Version: 3.7.3
Directory: pool/main/p/pyspi
Files: 2f5bd47cf38852b6fc927a50f98c1448 893 pyspi-0.6.1-1.3.stripped.dsc
22ff26db69b73d3438fdde21ab5ba2f1 3456 pyspi_0.6.1-1.3.diff.gz
def336bd566ea688a06ec03db7ccf1f4 29063 pyspi_0.6.1.orig.tar.gz
Checksums-Sha256: 289d3aefa970876e9c43686ce2b02f478d7f3ed35a713928464a98d54ae4fca3 893 pyspi-0.6.1-1.3.stripped.dsc
2e770b28df948f3197ed0b679bdea99f3f2bf745e9ddb440c677df9c3aeaee3c 3456 pyspi_0.6.1-1.3.diff.gz
64069ee828c50b1c597d10a3fefbba279f093a4723965388cdd0ac02f029bfb9 29063 pyspi_0.6.1.orig.tar.gz
Vcs-Svn: svn://svn.tribulaciones.org/srv/svn/pyspi/trunk
Checksums-Sha1: 5005fbd1f30637edc1d380b30f45db9b79100d07 893 pyspi-0.6.1-1.3.stripped.dsc
95a2468e4bbce730ba286f2211fa41861b9f1d90 3456 pyspi_0.6.1-1.3.diff.gz
9694b80acc171c0a5bc99f707933864edfce555e 29063 pyspi_0.6.1.orig.tar.gz

13 changes: 13 additions & 0 deletions system/t06_publish/PublishRepo2Test_gold
@@ -0,0 +1,13 @@
Loading packages...
Generating metadata files and linking package files...
Signing file '${HOME}/.aptly/public/dists/maverick/Release' with gpg, please enter your passphrase when prompted:
Clearsigning file '${HOME}/.aptly/public/dists/maverick/Release' with gpg, please enter your passphrase when prompted:

Local repo local-repo has been successfully published.
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/ maverick contrib
deb-src http://your-server/ maverick contrib
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.
12 changes: 12 additions & 0 deletions system/t06_publish/PublishRepo3Test_gold
@@ -0,0 +1,12 @@
Loading packages...
Generating metadata files and linking package files...
Signing file '${HOME}/.aptly/public/dists/maverick/Release' with gpg, please enter your passphrase when prompted:
Clearsigning file '${HOME}/.aptly/public/dists/maverick/Release' with gpg, please enter your passphrase when prompted:

Local repo local-repo has been successfully published.
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/ maverick contrib
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.
13 changes: 13 additions & 0 deletions system/t06_publish/PublishRepo4Test_gold
@@ -0,0 +1,13 @@
Loading packages...
Generating metadata files and linking package files...
Signing file '${HOME}/.aptly/public/ppa/dists/maverick/Release' with gpg, please enter your passphrase when prompted:
Clearsigning file '${HOME}/.aptly/public/ppa/dists/maverick/Release' with gpg, please enter your passphrase when prompted:

Local repo local-repo has been successfully published.
Please setup your webserver to serve directory '${HOME}/.aptly/public' with autoindexing.
Now you can add following line to apt sources:
deb http://your-server/ppa/ maverick main
deb-src http://your-server/ppa/ maverick main
Don't forget to add your GPG key to apt with apt-key.

You can also use `aptly serve` to publish your repositories over HTTP quickly.
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo5Test_gold
@@ -0,0 +1 @@
ERROR: unable to publish: unable to guess distribution name, please specify explicitly
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo6Test_gold
@@ -0,0 +1 @@
ERROR: prefix/distribution already used by another published repo: ./maverick (main) [i386, source] publishes [local-repo]
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo7Test_gold
@@ -0,0 +1 @@
ERROR: prefix/distribution already used by another published repo: ppa/maverick (main) [i386, source] publishes [local-repo]
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo8Test_gold
@@ -0,0 +1 @@
ERROR: unable to publish: invalid prefix ppa/dists/la
1 change: 1 addition & 0 deletions system/t06_publish/PublishRepo9Test_gold
@@ -0,0 +1 @@
ERROR: unable to publish: invalid prefix ppa/pool/la
2 changes: 1 addition & 1 deletion system/t06_publish/PublishSnapshot14Test_gold
@@ -1,2 +1,2 @@
Loading packages...
ERROR: unable to publish: snapshot is empty
ERROR: unable to publish: source is empty
5 changes: 3 additions & 2 deletions system/t06_publish/__init__.py
Expand Up @@ -2,6 +2,7 @@
Testing publishing snapshots
"""

from .snapshot import *
from .list import *
from .drop import *
from .list import *
from .repo import *
from .snapshot import *

0 comments on commit 2201420

Please sign in to comment.