-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker based integration tests for networked calls (eventually) using the containers as mock hosts. Additionally adds some missing predefined serialization implementations for `Vec<T>` concrete types and `char`
- Loading branch information
Showing
30 changed files
with
1,122 additions
and
316 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# Remove all target compilation folders from all sub-folders as well | ||
**/target/ | ||
|
||
# Remove code-coverage generated files from git | ||
debug/ | ||
coverage/ | ||
**/*.profraw | ||
|
||
.github/ |
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,40 @@ | ||
name: Ractor Cluster integration tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'ractor_cluster*/**' | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
paths: | ||
- 'ractor_cluster*/**' | ||
|
||
jobs: | ||
test: | ||
name: Test ractor_cluster with Docker based networked images | ||
runs-on: ${{matrix.os}}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable] | ||
os: [ubuntu] | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
|
||
- name: Build the docker image | ||
working-directory: . | ||
run: | | ||
docker compose build | ||
- name: Authentication Handshake | ||
working-directory: . | ||
run: | | ||
docker compose --env-file ./ractor_cluster_integration_tests/envs/auth-handshake.env up --exit-code-from node-b | ||
- name: Process Groups | ||
working-directory: . | ||
run: | | ||
docker compose --env-file ./ractor_cluster_integration_tests/envs/pg-groups.env up --exit-code-from node-b | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: '3.3' | ||
services: | ||
node-a: | ||
container_name: "node-a" | ||
build: | ||
context: . | ||
dockerfile: ractor_cluster_integration_tests/Dockerfile | ||
image: ractor_cluster_tests:latest | ||
networks: | ||
- test-net | ||
entrypoint: '' | ||
command: ractor_cluster_integration_tests test ${A_TEST} | ||
environment: | ||
RUST_LOG: debug | ||
node-b: | ||
depends_on: | ||
- node-a | ||
container_name: "node-b" | ||
build: | ||
context: . | ||
dockerfile: ractor_cluster_integration_tests/Dockerfile | ||
image: ractor_cluster_tests:latest | ||
networks: | ||
- test-net | ||
entrypoint: '' | ||
command: ractor_cluster_integration_tests test ${B_TEST} | ||
environment: | ||
RUST_LOG: debug | ||
networks: | ||
test-net: | ||
external: false |
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
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.