Skip to content

Commit ac2af44

Browse files
committed
avniproject/avni-server#836 | Fix build failures
1 parent b3f665f commit ac2af44

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.java-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.0
1+
17.0

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ application_jar=integrator-0.0.2-SNAPSHOT.jar
2121
dbPort=5432
2222

2323
define _build_db
24-
-psql -h localhost -p $(dbPort) -U $(SU) -d postgres -c "create user $(ADMIN_USER) with password 'password' createrole";
25-
-psql -h localhost -p $(dbPort) -U $(SU) -d postgres -c 'create database $1 with owner $(ADMIN_USER)';
26-
-psql -h localhost -p $(dbPort) -U $(SU) -d $1 -c 'create extension if not exists "uuid-ossp"';
24+
-psql -h localhost -p $(dbPort) -U $(postgres_user) -d postgres -c "create user $(ADMIN_USER) with password 'password' createrole";
25+
-psql -h localhost -p $(dbPort) -U $(postgres_user) -d postgres -c 'create database $1 with owner $(ADMIN_USER)';
26+
-psql -h localhost -p $(dbPort) -U $(postgres_user) -d $1 -c 'create extension if not exists "uuid-ossp"';
2727
endef
2828

2929
define _drop_db
3030
-psql -h localhost -p $(dbPort) -U $(SU) -d postgres -c "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '$1' AND pid <> pg_backend_pid()"
3131
-psql -h localhost -p $(dbPort) -U $(SU) -d postgres -c 'drop database $1';
3232
endef
3333

34+
_drop_roles:
35+
-psql -h localhost -p $(dbPort) -U $(postgres_user) -d postgres -c 'drop role avni_int';
36+
3437
define _run_server
3538
java -jar --enable-preview integrator/build/libs/$(application_jar) --app.cron.main="0/3 * * * * ?" --app.cron.full.error="0 1 * * * ?" --avni.api.url=https://staging.avniproject.org/ --avni.impl.username=test-user@bahmni_ashwini --avni.impl.password=password
3639
endef
@@ -84,7 +87,7 @@ drop-test-db:
8487
rebuild-test-db: drop-test-db build-test-db
8588

8689
drop-roles:
87-
-psql -h localhost -p $(dbPort) -U $(SU) -d postgres -c 'drop role $(ADMIN_USER)';
90+
-psql -h localhost -p $(dbPort) -U $(postgres_user) -d postgres -c 'drop role $(ADMIN_USER)';
8891
#######
8992

9093
####### BUILD, TEST, LOCAL RUN
@@ -111,6 +114,8 @@ test-server-only:
111114
-touch amrit/src/test/resources/amrit-secret.properties
112115
-touch goonj/src/test/resources/goonj-secret.properties
113116
-touch goonj/src/test/resources/avni-secret.properties
117+
-touch lahi/src/test/resources/lahi-secret.properties
118+
-touch rwb/src/test/resources/rwb-secret.properties
114119
./gradlew clean build
115120

116121
test-server-starts:
@@ -186,6 +191,7 @@ setup: setup-log-dir
186191
touch bahmni/src/test/resources/bahmni-secret.properties
187192
touch amrit/src/test/resources/amrit-secret.properties
188193
touch lahi/src/test/resources/lahi-secret.properties
194+
touch rwb/src/test/resources/rwb-secret.properties
189195

190196
create-test-db-extensions:
191197
-psql -h localhost -U avni_int -d avni_int_test -c 'create extension if not exists "uuid-ossp"';

glific/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dependencies {
4747
implementation "log4j:log4j:1.2.17"
4848
implementation project(':util')
4949

50-
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.0.1'
50+
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
5151
testImplementation 'org.mockito:mockito-core:3.+'
5252
}
5353

0 commit comments

Comments
 (0)