Skip to content

Commit fd0bdbe

Browse files
committed
- fixed functional test
- ecodata-client-plugin:6.1.3
1 parent 36c75f7 commit fd0bdbe

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ jobs:
8686
- name: Run javascript unit tests
8787
run: node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless
8888

89-
# - name: Run BioCollect functional tests
90-
# run: ./src/main/scripts/runFunctionalTests.sh chromeHeadless /tmp/ecodata feature/cognito
91-
# env:
92-
# GITHUB_ACTOR: ${{env.GITHUB_ACTOR}}
93-
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
89+
- name: Run BioCollect functional tests
90+
run: ./src/main/scripts/runFunctionalTests.sh chromeHeadless /tmp/ecodata master
91+
env:
92+
GITHUB_ACTOR: ${{env.GITHUB_ACTOR}}
93+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
9494

9595
- name: Clean to remove clover instrumentation
9696
uses: gradle/gradle-build-action@v2.4.2

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ dependencies {
154154

155155
if (!Boolean.valueOf(inplace)) {
156156
implementation "org.grails.plugins:ala-map-plugin:3.0.1"
157-
implementation "org.grails.plugins:ecodata-client-plugin:6.1.3-SNAPSHOT"
157+
implementation "org.grails.plugins:ecodata-client-plugin:6.1.3"
158158
}
159159

160160
testCompileOnly "org.grails:grails-test-mixins:3.3.0"

src/main/scripts/runFunctionalTests.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,17 @@ mongosh ecodata-functional-test loadAlaHub.js
3939
echo "Hosts file configuration"
4040
cat /etc/hosts
4141

42+
cd $BIOCOLLECT_DIR
43+
echo "Starting wire mock"
44+
./gradlew startWireMock &
45+
4246
cd $ECODATA_LOCAL_DIR
4347
echo "Starting ecodata from `pwd`"
4448
ls -la
4549
GRADLE_OPTS="-Xmx1g" ./gradlew bootRun "-Dorg.gradle.jvmargs=-Xmx1g" -Dgrails.env=meritfunctionaltest &
4650
sleep 240
4751

4852
cd $BIOCOLLECT_DIR
49-
echo "Starting wire mock"
50-
./gradlew startWireMock
51-
5253
echo "Starting biocollect"
5354
GRADLE_OPTS="-Xmx1g" ./gradlew bootRun "-Dorg.gradle.jvmargs=-Xmx1g" -Dgrails.env=test -Dgrails.server.port.http=8087 &
5455
sleep 200

0 commit comments

Comments
 (0)