Skip to content

Commit

Permalink
Remove tests support for running over proxy and remove ArchLinux from…
Browse files Browse the repository at this point in the history
… tests (#750)
  • Loading branch information
shadowspawn authored Dec 14, 2022
1 parent 4d6f017 commit 6ed06f7
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 115 deletions.
File renamed without changes.
49 changes: 0 additions & 49 deletions test/bin/proxy-build

This file was deleted.

12 changes: 0 additions & 12 deletions test/bin/proxy-run

This file was deleted.

2 changes: 1 addition & 1 deletion test/bin/run-all-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
BIN_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# We want to cover curl and wget especially, gz and xz and variety of OS a bonus.
services=( archlinux-curl ubuntu-wget )
services=( ubuntu-curl ubuntu-wget )

cd "$(dirname "${BIN_DIRECTORY}")" || exit 2
for service in "${services[@]}" ; do
Expand Down
2 changes: 0 additions & 2 deletions test/config/.curlrc

This file was deleted.

2 changes: 0 additions & 2 deletions test/config/.wgetrc

This file was deleted.

7 changes: 0 additions & 7 deletions test/docker-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ services:
- ../node_modules/bats-assert:/mnt/node_modules/bats-assert
# the n script
- ../bin/n:/usr/local/bin/n
# override settings to allow insecure connection in case using mitm proxy
- ./config/.curlrc:/root/.curlrc
- ./config/.wgetrc:/root/.wgetrc
environment:
# pass through proxy settings to allow caching proxy
- http_proxy
- https_proxy
7 changes: 0 additions & 7 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,3 @@ services:
build:
context: dockerfiles
dockerfile: Dockerfile-ubuntu-wget
archlinux-curl:
extends:
file: ./docker-base.yml
service: testbed
build:
context: dockerfiles
dockerfile: Dockerfile-archlinux-curl
3 changes: 0 additions & 3 deletions test/dockerfiles/Dockerfile-archlinux-curl

This file was deleted.

16 changes: 0 additions & 16 deletions test/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,6 @@ Run single test on a single system::
npx bats tests/install-contents.bats
docker-compose run ubuntu-curl bats /mnt/test/tests/install-contents.bats

## Proxy

To speed up running tests multiple times, you can optionally run a caching proxy for the node downloads. The curl settings are modified
to allow an insecure connection through the mitm proxy.

cd test
bin/proxy-build
bin/proxy-run
# follow the instructions for configuring environment variables for using proxy, then run tests

`node` versions added to proxy cache (and used in tests):

* v4.9.1
* lts
* latest

## Docker Tips

Using `docker-compose` in addition to `docker` for convenient mounting of `n` script and the tests into the container. Changes to the tests or to `n` itself are reflected immediately without needing to rebuild the containers.
Expand Down
16 changes: 0 additions & 16 deletions test/tests/install-reference-versions.bash

This file was deleted.

0 comments on commit 6ed06f7

Please sign in to comment.