-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services/horizon: Move integration tests away from stellar/quickstart. (
#3143) * Get tests to use Docker Compose over stellar/quickstart * Handle captive-core runs a little more graciously * Add manual close configuration for docker-compose * Simplify tests by using dedicated yaml config for integration tests * Clear ledgerstate between test runs Co-authored-by: Tamir Sen <[email protected]> Co-authored-by: tamirms <[email protected]> Co-authored-by: Bartek Nowotarski <[email protected]>
- Loading branch information
1 parent
9bf59df
commit 38aec89
Showing
11 changed files
with
264 additions
and
340 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
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
25 changes: 25 additions & 0 deletions
25
services/horizon/docker/docker-compose.integration-tests.yml
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,25 @@ | ||
version: '3' | ||
services: | ||
core-postgres: | ||
image: postgres:9.6.17-alpine | ||
restart: on-failure | ||
environment: | ||
- POSTGRES_PASSWORD=mysecretpassword | ||
- POSTGRES_DB=stellar | ||
ports: | ||
- "5641:5641" | ||
command: ["-p", "5641"] | ||
core: | ||
image: stellar/stellar-core | ||
depends_on: | ||
- core-postgres | ||
restart: on-failure | ||
ports: | ||
- "11625:11625" | ||
- "11626:11626" | ||
# add extra port for history archive server | ||
- "1570:1570" | ||
command: /start standalone | ||
volumes: | ||
- ./stellar-core-integration-tests.cfg:/stellar-core.cfg | ||
- ./core-start.sh:/start |
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
28 changes: 28 additions & 0 deletions
28
services/horizon/docker/stellar-core-integration-tests.cfg
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,28 @@ | ||
# simple configuration for a standalone test "network" | ||
# see stellar-core_example.cfg for a description of the configuration parameters | ||
|
||
RUN_STANDALONE=false | ||
MANUAL_CLOSE=true | ||
|
||
NETWORK_PASSPHRASE="Standalone Network ; February 2017" | ||
|
||
PEER_PORT=11625 | ||
HTTP_PORT=11626 | ||
PUBLIC_HTTP_PORT=true | ||
|
||
NODE_SEED="SACJC372QBSSKJYTV5A7LWT4NXWHTQO6GHG4QDAVC2XDPX6CNNXFZ4JK" | ||
|
||
NODE_IS_VALIDATOR=true | ||
UNSAFE_QUORUM=true | ||
FAILURE_SAFETY=0 | ||
|
||
DATABASE="postgresql://user=postgres password=mysecretpassword host=core-postgres port=5641 dbname=stellar" | ||
|
||
[QUORUM_SET] | ||
THRESHOLD_PERCENT=100 | ||
VALIDATORS=["GD5KD2KEZJIGTC63IGW6UMUSMVUVG5IHG64HUTFWCHVZH2N2IBOQN7PS"] | ||
|
||
[HISTORY.vs] | ||
get="cp history/vs/{0} {1}" | ||
put="cp {0} history/vs/{1}" | ||
mkdir="mkdir -p history/vs/{0}" |
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
Oops, something went wrong.