-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from aremm/handle-forced-closed-conns
Fix 2 issues with reopening a channel and publishing confirmation
- Loading branch information
Showing
9 changed files
with
94 additions
and
7 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
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,23 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
TEST_HOST="${TEST_HOST:-127.0.0.1}" | ||
|
||
get_exposed_port() { | ||
docker-compose port "$@" | cut -d: -f2 | ||
} | ||
|
||
rm -rf build && mkdir build | ||
|
||
docker-compose down --volumes --remove-orphans | ||
docker-compose pull -q | ||
docker-compose up -d | ||
|
||
echo "Environment variables (build/test-environment):" | ||
tee build/test-environment << EOF | ||
export AMQP_EXCHANGE=amq.topic | ||
export AMQP_URL=amqp://guest:guest@$TEST_HOST:$(get_exposed_port rabbitmq 5672)/%2f | ||
export RABBIMQ_URL=http://guest:guest@$TEST_HOST:$(get_exposed_port rabbitmq 15672) | ||
EOF | ||
|
||
echo 'Bootstrap complete' |
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,7 @@ | ||
version: "2.4" | ||
services: | ||
rabbitmq: | ||
image: rabbitmq:management-alpine | ||
ports: | ||
- 5672:5672 | ||
- 15672:15672 |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[coverage:report] | ||
show_missing = 1 | ||
|
||
[nosetests] | ||
cover-branches = 1 | ||
cover-erase = 1 | ||
|
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,13 @@ | ||
import os | ||
|
||
|
||
def setup_module(): | ||
try: | ||
with open('build/test-environment') as f: | ||
for line in f: | ||
if line.startswith('export '): | ||
line = line[7:] | ||
name, _, value = line.strip().partition('=') | ||
os.environ[name] = value | ||
except IOError: | ||
pass |
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