mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Simplify integration tests
This commit is contained in:
parent
de6f29102b
commit
3b73cfef11
@ -46,10 +46,6 @@ jobs:
|
||||
command: |
|
||||
docker run --name backuppc-integration --detach -p 8080:8080 adferrand/backuppc
|
||||
sleep 5
|
||||
status=`docker exec backuppc-integration su backuppc -c "/usr/local/BackupPC/bin/BackupPC_serverMesg status"`
|
||||
pattern="Got reply:"" ok"
|
||||
echo "Expect following reply => '$pattern'"
|
||||
grep "$pattern" <(echo $status)
|
||||
output=`curl http://backuppc:password@localhost:8080/BackupPC_Admin`
|
||||
echo "Expect the backupp configuration page without errors"
|
||||
grep "The servers PID is" <(echo $output)
|
||||
|
Loading…
Reference in New Issue
Block a user