Call go tests in ci docker build 05/2505/1
authorJuha Hyttinen <juha.hyttinen@nokia.com>
Thu, 13 Feb 2020 11:51:00 +0000 (13:51 +0200)
committerJuha Hyttinen <juha.hyttinen@nokia.com>
Thu, 13 Feb 2020 11:51:43 +0000 (13:51 +0200)
Change-Id: I32197a40c49784d297278ebbc28b911d2c6c1d40
Signed-off-by: Juha Hyttinen <juha.hyttinen@nokia.com>
ci/Dockerfile
pkg/xapp/xapp_test.go

index f2fc04e..3372520 100755 (executable)
@@ -75,4 +75,4 @@ RUN make -C /ws go-build
 RUN make -C /ws go-test-fmt
 
 # Test Requires dbaas
-#RUN make -C /ws go-test
+RUN make -C /ws go-test
index c1a049f..27fb445 100755 (executable)
@@ -21,21 +21,21 @@ package xapp
 
 import (
        "github.com/gorilla/mux"
+       "github.com/spf13/viper"
        "net/http"
        "net/http/httptest"
-       "github.com/spf13/viper"
        "os"
        "strings"
        "testing"
        "time"
 )
 
-var _ = func() bool {
-       testing.Init()
-       return true
-}()
+//var _ = func() bool {
+//     testing.Init()
+//     return true
+//}()
 
-type Consumer struct {}
+type Consumer struct{}
 
 func (m Consumer) Consume(params *RMRParams) (err error) {
        Sdl.Store("myKey", params.Payload)