Skip to content

Commit 5d4f76e

Browse files
committed
test: do not enable opencontrail probe by default to avoid unrelated error
1 parent 6bdfa82 commit 5d4f76e

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ endif
162162

163163
ifeq ($(WITH_OPENCONTRAIL), true)
164164
BUILD_TAGS+=opencontrail
165+
EXTRA_ARGS+=-opencontrail
165166
ifeq ($(OS_RHEL),Y)
166167
STATIC_LIBS+=libxml2.a
167168
endif

scripts/ci/opencontrail-tests.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let
1515
testScript = ''
1616
# This is to wait until OpenContrail is ready
1717
$machine->waitUntilSucceeds("curl -s http://localhost:8083/Snh_ShowBgpNeighborSummaryReq | grep machine | grep -q Established");
18-
$machine->succeed("${skydiveTestFunctionals} -test.run TestOpenContrail -standalone");
18+
$machine->succeed("${skydiveTestFunctionals} -test.run TestOpenContrail -standalone -opencontrail");
1919
'';
2020

2121
in

scripts/ci/run-functional-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ DIR="$(dirname "$0")"
77

88
. "$DIR/run-tests-utils.sh"
99
network_setup
10-
tests_run
10+
WITH_OPENCONTRAIL=false tests_run
1111
exit $RETCODE

tests/tests.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ agent:
8787
- ovsdb
8888
- docker
8989
- lxd
90-
- opencontrail
9190
- lldp
9291
- runc
92+
{{.OpencontrailProbe}}
9393
netlink:
9494
metrics_update: 5
9595
lldp:
@@ -219,6 +219,7 @@ var (
219219
noOFTests bool
220220
standalone bool
221221
topologyBackend string
222+
opencontrailProbe bool
222223
)
223224

224225
func initConfig(conf string, params ...helperParams) error {
@@ -268,6 +269,9 @@ func initConfig(conf string, params ...helperParams) error {
268269
if analyzerProbes != "" {
269270
params[0]["AnalyzerProbes"] = strings.Split(analyzerProbes, ",")
270271
}
272+
if opencontrailProbe {
273+
params[0]["OpencontrailProbe"] = "- opencontrail"
274+
}
271275

272276
tmpl, err := template.New("config").Parse(conf)
273277
if err != nil {
@@ -782,6 +786,7 @@ func init() {
782786
flag.StringVar(&flowBackend, "analyzer.flow.backend", "", "Specify the flow storage backend used")
783787
flag.StringVar(&analyzerListen, "analyzer.listen", "0.0.0.0:64500", "Specify the analyzer listen address")
784788
flag.StringVar(&analyzerProbes, "analyzer.topology.probes", "", "Specify the analyzer probes to enable")
789+
flag.BoolVar(&opencontrailProbe, "opencontrail", false, "Enable opencontrail probe")
785790
flag.Parse()
786791

787792
http.DefaultTransport.(*http.Transport).MaxIdleConnsPerHost = 100

0 commit comments

Comments
 (0)