-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cassandra driver for v4, adjust CI, upgrade dep
Squashed commit of the following: commit 6f951b4 Author: Rafael Espinoza <rafael@rafaelespinoza.com> Date: Sat Jan 22 10:28:16 2022 -0800 ci: Add separate configs for cassandra v3, v4 Fixing the driver for v4, shouldn't break compatibility for v3. Demonstrate that with automated tests for both cassandra versions. commit a326bc8 Author: Rafael Espinoza <rafael@rafaelespinoza.com> Date: Wed Jan 5 15:25:38 2022 -0800 Fix cassandra driver for v4 v4.0.1 is the latest at this time. commit d589238 Author: Rafael Espinoza <rafael@rafaelespinoza.com> Date: Sun Jan 9 16:50:54 2022 -0800 Upgrade github.com/gocql/gocql
- Loading branch information
1 parent
28476fb
commit 20ceb6a
Showing
12 changed files
with
96 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
FROM cassandra:3.11.11 | ||
LABEL driver=cassandra role=server | ||
|
||
# Tests run on a single node, only need to expose the CQL listener port. | ||
EXPOSE 9042 |
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,5 @@ | ||
FROM cassandra:4.0.1 | ||
LABEL driver=cassandra role=server | ||
|
||
# Tests run on a single node, only need to expose the CQL listener port. | ||
EXPOSE 9042 |
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,25 @@ | ||
version: "3.9" | ||
|
||
services: | ||
client: | ||
image: godfish_test/cassandra/client:latest | ||
container_name: godfish_ci_cassandra_client | ||
depends_on: | ||
- server | ||
entrypoint: /client.sh server | ||
environment: | ||
CGO_ENABLED: 0 | ||
DB_DSN: "cassandra://server:9042/godfish_test?timeout_ms=2000&connect_timeout_ms=2000" | ||
tty: true | ||
server: | ||
image: godfish_test/cassandra/server_v4:latest | ||
container_name: godfish_ci_cassandra_server_v4 | ||
expose: | ||
- "9042" | ||
volumes: | ||
- | ||
type: volume | ||
source: server | ||
target: /var/lib/cassandra | ||
volumes: | ||
server: |
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,12 +1,23 @@ | ||
name: cassandra | ||
on: [push, pull_request] | ||
jobs: | ||
all: | ||
v3: | ||
name: cassandra_v3 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v1 | ||
- name: Build environment and run tests | ||
run: make -f Makefile.docker ci-cassandra-up | ||
run: make -f Makefile.docker ci-cassandra3-up | ||
- name: Teardown | ||
run: make -f Makefile.docker ci-cassandra-down | ||
run: make -f Makefile.docker ci-cassandra3-down | ||
v4: | ||
name: cassandra_v4 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v1 | ||
- name: Build environment and run tests | ||
run: make -f Makefile.docker ci-cassandra4-up | ||
- name: Teardown | ||
run: make -f Makefile.docker ci-cassandra4-down |
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