Lorenzo Bolla
370e3cdfea
Fix unittests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
787cc8e3ee
Fix system tests
2022-01-27 09:30:14 +01:00
Joshua Colson
129eb8644d
Add -json flag to mirror list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
d582f9bab2
Add Debian 11 keys to test fixture keyring
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Lorenzo Bolla
b385b1e975
Fix test breaking on newer versions of Go
...
Apparently, Go error message slightly changed in newer versions.
2021-02-12 09:23:24 +01:00
Lorenzo Bolla
e4259c5045
Always try to get a version
...
Even if a simple git hash.
2021-02-08 10:52:27 +01:00
Lorenzo Bolla
3201244d9b
Fix tests and fixtures relying on expired pgp keys
...
PGP tests relied on expired gpg keys: upgrade with newer Debian keys from
https://ftp-master.debian.org/keys.html .
Download new fixtures files from http://ftp.debian.org/debian/dists/buster/
2021-02-08 10:52:27 +01:00
Andrey Smirnov
b731e17850
Update nvidia repo key
2019-09-27 13:01:03 +03:00
Andrey Smirnov
c75ef8546e
Fix system tests for Debian Stretch 9.11
2019-09-18 01:23:58 +03:00
Andrey Smirnov
060c6669c1
Remove test which relied on now gone mongodb repository
...
Looks like Mongo doesn't provide any regular structure repository
anymore (only flat one?).
2019-09-02 23:54:07 +03:00
Andrey Smirnov
26098f6c8d
Print redirects being followed, drop mirror.yandex.ru.
...
Use CDN-backed Debian mirror to make tests run faster hopefully for
everyone. Redirects might be important to know what exactly is going on
when items are being downloaded.
2019-08-07 21:10:04 +03:00
Andrey Smirnov
021b6f694b
Fix flakey tests related to identity name ordering.
2019-08-07 20:47:52 +03:00
Andrey Smirnov
f0a370db24
Rework HTTP downloader retry logic
...
Apply retries as global, config-level option `downloadRetries` so that
it can be applied to any aptly command which downloads objects.
Unwrap `errors.Wrap` which is used in downloader.
Unwrap `*url.Error` which should be the actual error returned from the
HTTP client, catch more cases, be more specific around failures.
2019-08-07 20:23:05 +03:00
Andrey Smirnov
673abae1be
Update system tests after Debian buster was released.
2019-07-10 22:27:11 +03:00
Andrey Smirnov
56ca5e9e62
Temporary disable test as linux.dell.com is NXDOMAIN
2019-07-05 21:32:41 +03:00
Andrey Smirnov
2c91bcdc30
Bump Go versions for Travis, fix tests
...
Replace gometalinter with golangci-lint.
Fix system tests (wheezy is gone, replace with stretch).
Fix linter warnings.
2019-07-04 00:16:12 +03:00
Andrey Smirnov
61e00b5fbd
Test updates for Travis CI
...
Travis is running Trusty with GPG 2.0.x, which is
much different from 2.1.x.
Add tests for default key signing.
Add test for gpg1/2 in functional.
2018-10-10 01:34:58 +03:00
Oliver Sauder
e23e30eb44
Merge branch 'master' into with_installer
2018-09-21 13:26:15 +02:00
Andrey Smirnov
5a9f4bee12
Fix system tests on master branch
2018-08-17 18:11:49 +03:00
Oliver Sauder
108b0ea226
Add support to mirror non package installer files
2018-07-06 15:02:37 +02:00
Oliver Sauder
57a51d94ed
Fix failing SHA512 checksums only test
...
This test has been failing very often because of changes in nvidia
repository. As this test is not related to filtering
remove number of filtered packages from output for a more robust test.
2018-06-15 15:43:37 +02:00
Harald Sitter
2be0b7859d
update nvidia reference again
...
package count chainged again -.-
I am working on a fixture set for repositories so we can stop talking to
live repositories. that's quite the undertaking though, so let's fix the
output reference to unbreak the test in the meantime
2018-05-03 10:45:01 +02:00
Andrey Smirnov
b3b0dbb217
Go 1.10 fix
2018-03-16 13:02:38 +03:00
Andrey Smirnov
d76259496d
Disable FTP tests in Travis
2018-03-16 11:32:22 +03:00
Andrey Smirnov
aa3a2ab595
New signing key for aptly repo, and small fixes
...
Build on Go 1.10, drop Go 1.7
Remove references to now defunct pgp.mit.edu, fix system test
2018-03-16 01:27:57 +03:00
Harald Sitter
4fb57f65fb
update nvidia mirror output ref
...
this repo now contains 12 packages not 8
2018-01-19 13:09:29 +01:00
Oliver Sauder
5d301fb1b7
Prepare archive root when editing it
2017-11-27 11:08:31 +01:00
Oliver Sauder
b98abcc049
Allow editing of mirror archive url
...
This is needed in case a mirror has moved or is down and need to move
to new mirror.
2017-11-21 16:31:49 +01:00
Andrey Smirnov
359cda9d99
Add system test for repo with SHA512-only checksums
2017-11-08 19:45:22 +03:00
Andrey Smirnov
6d2f265980
Prefer exact match on package name over provides match
...
When searching for packages which might satisfy given dependency,
aptly was first returning packages which `Provides` mentioned
name. By default aptly is picking up only first match (unless
follow all variants options is enabled), so `Provides:` takes
precedence over exact package name match.
Invert this logic by searching first for package name match.
2017-09-25 18:24:45 +03:00
Andrey Smirnov
72ac1bc33c
Update PD GPG key id to fix the tests
2017-09-18 18:09:36 +03:00
Andrey Smirnov
bd5fc8ae62
Varnish repos got moved
2017-09-15 23:43:51 +03:00
Andrey Smirnov
cbb576cbcc
Fix up system tests
2017-07-28 22:37:20 +03:00
Andrey Smirnov
d137bcf8d4
Fix up/add mirror update tests
2017-07-26 00:00:06 +03:00
Andrey Smirnov
3674e1adee
System tests for mirror create/update with internal PGP implementation
2017-07-21 01:09:20 +03:00
Andrey Smirnov
211ac0501f
Rework the way database is open/re-open in aptly
...
Allow database to be initialized without opening, unify all the
open paths to retry on failure.
In API router make sure open requests are matched with acks in explicit
way.
This also enables re-open attempts in all the aptly commands, so it
should make running aptly CLI much easier now hopefully.
Fix up system tests for oldoldstable ;)
2017-07-05 00:17:48 +03:00
Andrey Smirnov
f54e798eac
Add system test for fixed checksum matching
2017-05-23 03:00:16 +03:00
Andrey Smirnov
829ea2e65c
Fix tests for flat repos
2017-05-17 00:09:18 +03:00
Andrey Smirnov
589dc93380
Sort package lists when searching or showing objects
...
Fixes #135
Fixes #214
2017-05-05 18:42:46 +03:00
Andrey Smirnov
c798db8056
Add system's requirements.txt, enforce flake8 linter
...
Fix style issues in functional tests.
2017-04-28 00:05:11 +03:00
Andrey Smirnov
1941418c10
Add system test for disabled legacy pool path support
2017-04-27 00:51:46 +03:00
Andrey Smirnov
2308632683
Add system tests for legacy pool files
2017-04-26 23:17:04 +03:00
Andrey Smirnov
ee21b69402
Add test for mirror without MD5 checksums
2017-04-26 23:17:04 +03:00
Andrey Smirnov
c3acabe303
Fix system tests for flat repos
...
Old mirror used for testing is gone, switch to CRAN.
2017-04-24 23:04:48 +03:00
Clemens Rabe
16a0d0d428
Added option --skip-existing-packages to speed up mirror update.
2017-03-23 22:01:11 +01:00
Clemens Rabe
66f51d2b17
Added option --skip-existing-packages to speed up mirror update.
2017-03-23 21:55:22 +01:00
Andrey Smirnov
11d828b3b1
Add govet/golint into Travis CI build
...
Fix current issues
2017-03-22 21:49:16 +03:00
Andrey Smirnov
c9768416ed
Fix up tests
2017-03-16 23:06:41 +03:00
Andrey Smirnov
b102562478
Fix up system test for Go 1.8
2017-03-16 20:58:21 +03:00
Andrey Smirnov
33d6cd8c0a
Allow filter to be empty for aptly * search commands
...
Empty filter implies "select all packages".
2017-02-10 23:07:06 +03:00