Watchdog: Verify Server TLS Certificate

This commit is contained in:
Maximilian Paß
2024-01-16 15:03:52 +01:00
committed by Sebastian Serth
parent b48c7fe8b6
commit 221a6ff1b2
5 changed files with 52 additions and 28 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/openHPI/poseidon/tests/e2e"
"github.com/openHPI/poseidon/tests/helpers"
"github.com/shirou/gopsutil/v3/process"
"golang.org/x/sys/unix"
"net/http"
"time"
)
@ -59,7 +60,7 @@ func killPoseidon() {
continue
}
if n == "poseidon" {
err = p.Kill()
err = p.SendSignal(unix.SIGTERM)
if err != nil {
log.WithError(err).Error("Error killing Poseidon")
} else {