Skip to content

Commit

Permalink
Fix mockserver host, try shutdown core and mockserver
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 20, 2023
1 parent 0e56a5c commit 89f0a1f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,24 @@ jobs:
uses: BerniWittmann/background-server-action@v1
with:
start: ./core.exe directstart, java -jar ./exec.jar
# wait-on: 'http://localhost:5076, http://localhost:5080'
command: mvn --batch-mode test -pl org.nzbhydra.tests:system -DtrimStackTrace=false

- name: "Shutdown hydra"
uses: fjogeleit/http-request-action@v1
with:
method: "GET"
url: "http://127.0.0.1:5076/internalapi/control/shutdown"

- name: "Shutdown mockserver"
uses: fjogeleit/http-request-action@v1
with:
method: "POST"
url: "http://127.0.0.1:5080/actuator/shutdown"

- name: "Upload data folder artifact"
uses: actions/upload-artifact@v3
if: always()
continue-on-error: true
with:
name: dataWindows
path: data
Expand Down
6 changes: 5 additions & 1 deletion other/mockserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@
<version>3.0.0</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring.boot.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
4 changes: 3 additions & 1 deletion other/mockserver/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
server.port=5080
#spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/
warnLogCategory
management.endpoints.web.exposure.include=*
management.endpoint.shutdown.enabled=true
endpoints.shutdown.enabled=true

0 comments on commit 89f0a1f

Please sign in to comment.