Lorenzo Bolla
fd404064c9
Use University of Utah mirror in tests
...
Fix #1034
2022-02-13 20:44:28 +01:00
Lorenzo Bolla
e8ec6385f3
Fix linting errors
2022-02-08 11:18:50 +01:00
Lorenzo Bolla
1361bf20dd
Revive skipped tests
2022-02-08 11:18:50 +01:00
Lorenzo Bolla
5d98546e1d
Use a more recent GPG key server
2022-02-08 11:18:50 +01:00
Lorenzo Bolla
1afcd68e01
Make downloader type configurable
2022-01-31 10:32:54 +01:00
Lorenzo Bolla
035d5314b0
Convert tests to Python 3
...
Fix #938
2022-01-27 15:06:33 +01:00
Lorenzo Bolla
70f7d7409a
Allow to check for empty output in tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
48635c8057
Strip irrelevant lines from test output
...
It may happen that aptly retries to download data during tests (maybe because
of a network issue), but our fixtures doesn't account for it. So, we strip
those irrelevant lines before comparison.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
30e94064e5
Ignore dates in test
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
91c3ed8ec4
Fix failing tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
8ecd01be1f
Temporarily skip test failing on CI
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
4933e3caf4
Try to fix test failing on CI
...
PublishRepo26Test fails to run because something in the CI environment forces
gpg to ask for the user's password. Try to require gpg1 for the test, which
seems to run fine in other environments.
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
4a9a5bc713
Fix some failing system tests
2022-01-27 09:30:14 +01:00
Lorenzo Bolla
7412b84e04
Fix flake8 lint errors
2022-01-27 09:30:14 +01:00
Ximon Eighteen
8e309b57b3
Workaround differences in the GHA Ubuntu 18.04 environment compared to the Travis CI Ubuntu 16.04 environment.
2022-01-27 09:30:14 +01:00
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
Lorenzo Bolla
914ddf4859
Fix syntax error
2022-01-27 09:30:14 +01:00
Oliver Sauder
b4efe6a810
Add db cleanup api
2022-01-27 09:30:14 +01:00
Oliver Sauder
f09a273ad7
Add publish output progress counting remaining number of packages
2022-01-27 09:30:14 +01:00
Oliver Sauder
b0ab8f417d
Added gpg api so mirror updates are fully functional from api
2022-01-27 09:30:14 +01:00
Oliver Sauder
d7ccf95499
Added mirror api based on task list
2022-01-27 09:30:14 +01:00
Oliver Sauder
6ab5e60833
Add task api and resource locking ability
2022-01-27 09:30:14 +01:00
chuan
bb42a2158d
Add support for Azure storage as a publishing backend
...
This adds a new configuration setting: AzurePublishEndpoints, similar
to the existing S3PublishEndpoints and SwiftPublishEndpoints.
For each endpoint, the following has to be defined:
- accountName
- accountKey
- container
- prefix
Azure tests require the following environment variables to be set:
- AZURE_STORAGE_ACCOUNT
- AZURE_STORAGE_ACCESS_KEY
With either of these not set, Azure-specific tests are skipped.
2022-01-21 11:46:36 +01:00
Joshua Colson
899ed92ebc
Add -json flag to publish list|show
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02: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
Joshua Colson
0f1575d5af
Add -json flag to snapshot show|list
...
Signed-off-by: Joshua Colson <joshua.colson@gmail.com >
2021-09-24 10:29:33 +02:00
Joshua Colson
1f56fb86e3
Add -json output flag to repo list|show
...
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
c43d31f693
Don't fail hard if we can't clean Swift up
2021-02-08 10:52:27 +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
993dd2ad1c
Print test exception right away, in case the full test run crashes
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
d80c2b6104
Fix system tests
2019-09-06 23:42:56 +03:00
Raúl Benencia
7a5ac3dbc2
Tests for custom and default suite
2019-09-06 23:42:56 +03:00
Frank Steinborn
98e75f6d97
Make database open attempts configurable also via config file
2019-09-03 00:52:24 +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
2e7f624b34
Add test for publishing with non-empty Origin & Label
...
See also #848
2019-07-19 22:58:56 +03:00
Andrey Smirnov
ca5b7758ce
Print when test is skipped
2019-07-11 00:49:36 +03:00
Andrey Smirnov
bb1def2910
Try Travis on xenial workers
2019-07-11 00:16:20 +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