Skip to content

Commit

Permalink
Remove _test for e2e files for exporting funcs
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Fabry <[email protected]>
  • Loading branch information
ondrej-fabry committed Oct 30, 2020
1 parent 6e02c60 commit 3e6ee30
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 12 additions & 0 deletions tests/e2e/e2e_test.go → tests/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"bytes"
"context"
"encoding/json"
"flag"
"fmt"
"io"
"log"
Expand Down Expand Up @@ -51,6 +52,17 @@ import (
"go.ligato.io/vpp-agent/v3/tests/e2e/utils"
)

var (
vppPath = flag.String("vpp-path", "/usr/bin/vpp", "VPP program path")
vppConfig = flag.String("vpp-config", "", "VPP config file")
vppSockAddr = flag.String("vpp-sock-addr", "", "VPP binapi socket address")
covPath = flag.String("cov", "", "Path to collect coverage data")
agentHTTPPort = flag.Int("agent-http-port", 9191, "VPP-Agent HTTP port")
agentGrpcPort = flag.Int("agent-grpc-port", 9111, "VPP-Agent GRPC port")
debugHTTP = flag.Bool("debug-http", false, "Enable HTTP client debugging")
debug = flag.Bool("debug", false, "Turn on debug mode.")
)

const (
etcdImage = "gcr.io/etcd-development/etcd"

Expand Down
11 changes: 0 additions & 11 deletions tests/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ import (
"go.ligato.io/vpp-agent/v3/tests/testutils"
)

var (
vppPath = flag.String("vpp-path", "/usr/bin/vpp", "VPP program path")
vppConfig = flag.String("vpp-config", "", "VPP config file")
vppSockAddr = flag.String("vpp-sock-addr", "", "VPP binapi socket address")
covPath = flag.String("cov", "", "Path to collect coverage data")
agentHTTPPort = flag.Int("agent-http-port", 9191, "VPP-Agent HTTP port")
agentGrpcPort = flag.Int("agent-grpc-port", 9111, "VPP-Agent GRPC port")
debugHTTP = flag.Bool("debug-http", false, "Enable HTTP client debugging")
debug = flag.Bool("debug", false, "Turn on debug mode.")
)

func TestMain(m *testing.M) {
log.SetFlags(log.Lmicroseconds | log.Lshortfile)
flag.Parse()
Expand Down
File renamed without changes.

0 comments on commit 3e6ee30

Please sign in to comment.