-
Notifications
You must be signed in to change notification settings - Fork 1
/
integration_test.go
35 lines (31 loc) · 847 Bytes
/
integration_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package main
import (
log "github.com/Axway/agent-sdk/pkg/util/log"
"github.com/solace-iot-team/solace-axway-agent/pkg/integrationtest"
"os"
"testing"
)
func TestMain(m *testing.M) {
if err := integrationtest.RootCmd.Execute(); err != nil {
log.Error("Bootstrapping RootCmd failed", err)
os.Exit(1)
}
exitVal := m.Run()
os.Exit(exitVal)
}
func TestConnector(t *testing.T) {
if err := integrationtest.ExecuteIntegrationTestsConnector(t); err != nil {
t.Error("Integration Test of the Connector failed", err)
t.Failed()
} else {
t.Logf("Integration Test of Connector is ok")
}
}
func TestMiddleware(t *testing.T) {
if err := integrationtest.ExecuteIntegrationTestMiddleware(); err != nil {
t.Error("Integration Test of Middleware failed", err)
t.Failed()
} else {
t.Logf("Integration Test of Middleware is ok")
}
}