mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
- add t13_etcd test directory - etcd will be started for the unit tests and each system test - etcd will load fixture DB export if requested by the test - existing tests are reused for etcd testing
13 lines
374 B
Bash
Executable File
13 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# etcd test env
|
|
ETCD_VER=v3.5.2
|
|
DOWNLOAD_URL=https://storage.googleapis.com/etcd
|
|
|
|
if [ ! -e /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz ]; then
|
|
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz
|
|
fi
|
|
|
|
mkdir /srv/etcd
|
|
tar xf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /srv/etcd --strip-components=1
|