Win CNM plugin unit tests fail if Agent is running on host
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Undecided
|
Unassigned | |||
OpenContrail |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Seems like we hardcoded IP and port to localhost:9091 in test cases, instead of using URL provided by httptest package.
2018-11-30 17:29:56.915071 | test-runner | [1543595396] [1mCore test suite [0m - 29/31 specs time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0mtime=
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | time="2018-
2018-11-30 17:29:56.915071 | test-runner | [32m+ [0m [32m+ [0m [32m+ [0m [33mP [0m [33mP [0m
2018-11-30 17:29:56.915071 | test-runner | [90m---
2018-11-30 17:29:56.915071 | test-runner | [91m [1m+ Failure in Spec Setup (BeforeEach) [0.003 seconds] [0m
2018-11-30 17:29:56.915071 | test-runner | [90mCore tests [0m [0mCreateEndpoint [0m [91m [1m[BeforeEach] Controller network and local network exist [0m [0mreturns container resource allocated in controller [0m
2018-11-30 17:29:56.915071 | test-runner | [37mJ:/
2018-11-30 17:29:56.915071 | test-runner |
2018-11-30 17:29:56.915071 | test-runner | [91mExpected error:
2018-11-30 17:29:56.915071 | test-runner | <*net.OpError | 0xc00008e9b0>: {
2018-11-30 17:29:56.915071 | test-runner | Op: "listen",
2018-11-30 17:29:56.915071 | test-runner | Net: "tcp",
2018-11-30 17:29:56.915071 | test-runner | Source: nil,
2018-11-30 17:29:56.915071 | test-runner | Addr: {
2018-11-30 17:29:56.915071 | test-runner | IP: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 127, 0, 0, 1],
2018-11-30 17:29:56.915071 | test-runner | Port: 9091,
2018-11-30 17:29:56.915071 | test-runner | Zone: "",
2018-11-30 17:29:56.915071 | test-runner | },
2018-11-30 17:29:56.915071 | test-runner | Err: {Syscall: "bind", Err: 0x271d},
2018-11-30 17:29:56.915071 | test-runner | }
2018-11-30 17:29:56.915071 | test-runner | listen tcp 127.0.0.1:9091: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
2018-11-30 17:29:56.915071 | test-runner | not to have occurred [0m
2018-11-30 17:29:56.915071 | test-runner |
2018-11-30 17:29:56.915071 | test-runner | J:/Jenkins/
2018-11-30 17:29:56.915071 | test-runner | [90m---
2018-11-30 17:29:56.915071 | test-runner | [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m [36mS [0m
2018-11-30 17:29:56.915071 | test-runner |
2018-11-30 17:29:56.915071 | test-runner | [91m [1mSummarizing 1 Failure: [0m
2018-11-30 17:29:56.915071 | test-runner |
2018-11-30 17:29:56.915071 | test-runner | [91m [1m[Fail] [0m [90mCore tests [0m [0mCreateEndpoint [0m [91m [1m[BeforeEach] Controller network and local network exist [0m [0mreturns container resource allocated in controller [0m
2018-11-30 17:29:56.915071 | test-runner | [37mJ:/
2018-11-30 17:29:56.915071 | test-runner |
2018-11-30 17:29:56.915071 | test-runner | [1m [91mRan 14 of 31 Specs in 0.012 seconds [0m
2018-11-30 17:29:56.915071 | test-runner | [1m [91mFAIL! [0m -- [32m [1m13 Passed [0m | [91m [1m1 Failed [0m | [33m [1m2 Pending [0m | [36m [1m15 Skipped [0m --- FAIL: TestCore (0.02s)
2018-11-30 17:29:56.915071 | test-runner | FAIL
2018-11-30 17:30:00.369901 | test-runner | =======
2018-11-30 17:30:00.389384 | test-runner | Logs from 10.7.0.95:
2018-11-30 17:30:00.723306 | test-runner | -------
2018-11-30 17:30:00.748269 | test-runner | Contents of C:\ProgramData\
2018-11-30 17:30:00.764637 | test-runner | <EMPTY>
2018-11-30 17:30:00.783875 | test-runner | =======
CNM Plugin.Tests for module in driver_
Open with Google Docs
Displaying CNM Plugin.Tests for module in driver_
2018-11-30 17:30:17.049071 | test-runner | panic: runtime error: invalid memory address or nil pointer dereference
2018-11-30 17:30:17.049071 | test-runner | [signal 0xc0000005 code=0x0 addr=0x20 pc=0x7a36cb]
goroutine 1 [running]:
net/http/
C:/tools/
github.
J:/Jenkins/
github.
J:/Jenkins/
github.
J:/Jenkins/
github.
J:/Jenkins/
github.
J:/Jenkins/
github.
J:/Jenkins/
github.
J:/Jenkins/
github.
J:/Jenkins/
2018-11-30 17:30:20.000148 | test-runner | =======
2018-11-30 17:30:20.027657 | test-runner | Logs from 10.7.0.95:
2018-11-30 17:30:20.288638 | test-runner | -------
2018-11-30 17:30:20.321759 | test-runner | Contents of C:\ProgramData\
2018-11-30 17:30:20.340669 | test-runner | <EMPTY>
2018-11-30 17:30:20.357666 | test-runner | =======
CNM Plugin.Tests for module in logging.test.passes tests.txt
Open with Google Docs
Displaying CNM Plugin.Tests for module in driver_
description: | updated |
Changed in opencontrail: | |
status: | New → Fix Committed |
Review in progress for https:/ /review. opencontrail. org/47978
Submitter: Michal Kostrzewa (<email address hidden>)