Add tests for user recommendation endpoint

6 jobs for development in 3 minutes and 7 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
passed #7263
e2etest

00:03:02

failed #7261
precheck

00:02:08

failed #7262
unittest

00:00:42

 
  Build
skipped #7264
compile
 
  Deploy
skipped #7265
allowed to fail
dev_service
skipped #7266
allowed to fail
dev_swagger
 
Name Stage Failure
failed
precheck Test
schemas/course.go
schemas/flashcard.go
schemas/traininglist.go
test/login_test.go
$ go vet $(go list ./... | grep -v /vendor/)
# gitlab.akamu.de/akamu/game-server-go/test
vet: test/user_test.go:461:129: too few arguments in call to setup.SetupRoutes
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
unittest Test
$ git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.akamu.de/".insteadOf "https://gitlab.akamu.de/"
$ go get -u github.com/jstemmer/go-junit-report
$ go test ./test -v 2>&1 | $GOPATH/bin/go-junit-report > report-unit.xml
Uploading artifacts for failed job
Uploading artifacts...
report-unit.xml: found 1 matching files and directories

Uploading artifacts as "junit" to coordinator... ok
id=7262 responseStatus=201 Created token=gkJfD6kX
Cleaning up file based variables
ERROR: Job failed: exit code 1