-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Danny Browning
committed
Apr 14, 2021
1 parent
e234408
commit 92dc8a1
Showing
3 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,24 @@ jobs: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
all_but_latest: true # can cancel workflows scheduled later | ||
|
||
test-integration-amqp: | ||
name: Integration - Linux, Amqp | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make ci-sweep | ||
- uses: actions/[email protected] | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- run: sudo bash scripts/environment/bootstrap-ubuntu-20.04.sh | ||
- run: bash scripts/environment/prepare.sh | ||
- run: echo "::add-matcher::.github/matchers/rust.json" | ||
- run: make slim-builds | ||
- run: make test-integration-amqp | ||
|
||
test-integration-aws: | ||
name: Integration - Linux, AWS | ||
runs-on: ubuntu-20.04 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
set -o pipefail | ||
|
||
# amqp_integration_env.sh | ||
# | ||
# SUMMARY | ||
# | ||
# Builds and pulls down the Vector Amqp Integration test environment | ||
|
||
if [ $# -ne 1 ] | ||
then | ||
echo "Usage: $0 {stop|start}" 1>&2; exit 1; | ||
exit 1 | ||
fi | ||
ACTION=$1 | ||
|
||
# | ||
# Functions | ||
# | ||
|
||
start_podman () { | ||
podman pod create --replace --name vector-test-integration-amqp -p 5672:5672 | ||
podman run -d --pod=vector-test-integration-amqp --name vector_amqp rabbitmq:3.8 | ||
} | ||
|
||
start_docker () { | ||
docker network create vector-test-integration-amqp | ||
docker run -d --network=vector-test-integration-amqp -p 5672:5672 --name vector_amqp rabbitmq:3.8 | ||
} | ||
|
||
stop_podman () { | ||
podman pod stop vector-test-integration-amqp 2>/dev/null; true | ||
podman pod rm --force vector-test-integration-amqp 2>/dev/null; true | ||
} | ||
|
||
stop_docker () { | ||
docker rm --force vector_amqp vector_amqp 2>/dev/null; true | ||
docker network rm vector-test-integration-amqp 2>/dev/null; true | ||
} | ||
|
||
echo "Running $ACTION action for Amqp integration tests environment" | ||
|
||
"${ACTION}"_"${CONTAINER_TOOL}" |