Skip to content

Commit

Permalink
update JayDeBeApi version to 1.2.0 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi committed Dec 22, 2020
1 parent 71c936a commit 87fdb38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN mkdir -p /usr/share/man/man1 \
&& apt-get update && apt-get install -y openjdk-11-jre libpq-dev \
&& savedAptMark="$(apt-mark showmanual)" \
&& apt-get install -y gcc curl \
&& pip install JPype1==0.7.5 psycopg2==2.8.5\
&& pip install JPype1==1.2.0 psycopg2==2.8.5\
&& curl -o /usr/lib/jvm/mariadb-java-client.jar \
https://downloads.mariadb.com/Connectors/java/connector-java-${MARIADB_CLIENT_VERSION}/mariadb-java-client-${MARIADB_CLIENT_VERSION}.jar \
&& curl -o /usr/lib/jvm/postgresql-java-client.jar \
Expand Down
4 changes: 4 additions & 0 deletions scripts/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function test {
--database 'test' \
--resource-arn $RDS_DATA_API_CLIENT_RESOURCE_ARN \
--secret-arn $RDS_DATA_API_CLIENT_SECRETARN \
--include-result-metadata \
--sql 'SELECT 1 AS value' \
| jq -e '.records[0][0].longValue == 1'

Expand All @@ -54,6 +55,7 @@ function test {
--database 'test' \
--resource-arn $RDS_DATA_API_CLIENT_RESOURCE_ARN \
--secret-arn $RDS_DATA_API_CLIENT_SECRETARN \
--include-result-metadata \
--sql 'SELECT 1 > 0 AS value' \
| jq -e '.records[0][0].booleanValue == true'
fi
Expand All @@ -67,6 +69,7 @@ function test {
--database 'test' \
--resource-arn $RDS_DATA_API_CLIENT_RESOURCE_ARN \
--secret-arn $RDS_DATA_API_CLIENT_SECRETARN \
--include-result-metadata \
--sql 'SELECT 1 > 0 AS value' \
| jq -e '.records[0][0].longValue == 1'
fi
Expand All @@ -76,6 +79,7 @@ function test {
--database 'test' \
--resource-arn $RDS_DATA_API_CLIENT_RESOURCE_ARN \
--secret-arn $RDS_DATA_API_CLIENT_SECRETARN \
--include-result-metadata \
--sql 'SELECT NOW() AS value' \
| jq -e '.records[0][0].stringValue | length >= 19' # eg "2020-07-01 20:21:35.738998" or "2020-07-01 19:45:27"

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install_requires =
fastapi == 0.45.0
SQLAlchemy == 1.3.11
PyMySQL == 0.9.3
JPype1 == 0.7.5
JPype1 == 1.2.0
JayDeBeApi == 1.2.3
psycopg2 == 2.8.5

Expand Down

0 comments on commit 87fdb38

Please sign in to comment.