feat: Add support for bgp dynamic neighbours subcommand for metal gateway#433
feat: Add support for bgp dynamic neighbours subcommand for metal gateway#433ctreatma merged 14 commits intoequinix:mainfrom
Conversation
b877e93 to
9eb41dd
Compare
9eb41dd to
17aa269
Compare
17aa269 to
4d1bc15
Compare
4d1bc15 to
1c1bdb5
Compare
ctreatma
left a comment
There was a problem hiding this comment.
Can you add tests for this subcommand?
@ctreatma I am working on the tests but should we keep small PRs and raise tests in the next one? It'll be easier to review as well. And anyway this is a new functionality which is not release |
Tests build the reviewer's confidence that the changes actually work the way they are supposed to. Doing them in a separate PR only serves to delay finishing the code. |
| "github.com/equinix/metal-cli/test/helper" | ||
| ) | ||
|
|
||
| func TestBgpDynamicNeighbours_Create(t *testing.T) { |
There was a problem hiding this comment.
All of the new tests are failing with 404s:
=== RUN TestBgpDynamicNeighbours_Create/create_bgp_dynamic_neighbour
Error: Could not create BGP Dynamic Neighbour: 404 Not Found Not found
helper.go:591: Could not create BGP Dynamic Neighbour: 404 Not Found Not found
--- FAIL: TestBgpDynamicNeighbours_Create (2.54s)
--- FAIL: TestBgpDynamicNeighbours_Create/create_bgp_dynamic_neighbour (0.14s)
=== RUN TestBgpDynamicNeighbours_Delete
delete_test.go:27: Error when calling `VRFsApi.CreateBgpDynamicNeighbor`: 404 Not Found Not found
--- FAIL: TestBgpDynamicNeighbours_Delete (3.10s)
=== RUN TestBgpDynamicNeighbours_Get
get_test.go:25: Error when calling `VRFsApi.CreateBgpDynamicNeighbor`: 404 Not Found Not found
--- FAIL: TestBgpDynamicNeighbours_Get (2.65s)
=== RUN TestBgpDynamicNeighbours_List
list_test.go:25: Error when calling `VRFsApi.CreateBgpDynamicNeighbor`: 404 Not Found Not found
--- FAIL: TestBgpDynamicNeighbours_List (3.00s)
FAIL
Do we need to pass in any additional CLI flags?
There was a problem hiding this comment.
Not sure why its failing with 404 on the CI, its passing at local
~/go/src/metal-cli gw-bgp-neighbours *2 !15 ?4 ❯ go test -v ./test/e2e/gateways/bgp-dynamic-neighbour/... 27s
=== RUN TestBgpDynamicNeighbors_Create
=== RUN TestBgpDynamicNeighbors_Create/create_bgp_dynamic_neighbor
--- PASS: TestBgpDynamicNeighbors_Create (6.15s)
--- PASS: TestBgpDynamicNeighbors_Create/create_bgp_dynamic_neighbor (0.83s)
=== RUN TestBgpDynamicNeighbors_Delete
=== RUN TestBgpDynamicNeighbors_Delete/delete_bgpDynamicNeighbor_by_ID
--- PASS: TestBgpDynamicNeighbors_Delete (6.11s)
--- PASS: TestBgpDynamicNeighbors_Delete/delete_bgpDynamicNeighbor_by_ID (0.82s)
=== RUN TestBgpDynamicNeighbors_Get
=== RUN TestBgpDynamicNeighbors_Get/get_bgpDynamicNeighbor_by_ID
--- PASS: TestBgpDynamicNeighbors_Get (5.97s)
--- PASS: TestBgpDynamicNeighbors_Get/get_bgpDynamicNeighbor_by_ID (0.43s)
=== RUN TestBgpDynamicNeighbors_List
=== RUN TestBgpDynamicNeighbors_List/list_bgpDynamicNeighbor_by_ID
--- PASS: TestBgpDynamicNeighbors_List (6.04s)
--- PASS: TestBgpDynamicNeighbors_List/list_bgpDynamicNeighbor_by_ID (0.66s)
PASS
ok github.com/equinix/metal-cli/test/e2e/gateways/bgp-dynamic-neighbour 24.716s
There was a problem hiding this comment.
I'm also getting the 404 Not found Not Found on my local tests.
0fd6301 to
268a1ff
Compare
268a1ff to
0facfe8
Compare
|
I enabled VRF over Shared Connections, VRF Static Routers, and BGP Dynamic Neighbors for the testing org. We should see better progress in the E2E. |
Yes after enabling FFs, tests started passing for BGP |
9e1f7a6 to
e5c2c1f
Compare
…eway Signed-off-by: Ayush Rangwala <[email protected]>
Signed-off-by: Ayush Rangwala <[email protected]>
Signed-off-by: Ayush Rangwala <[email protected]>
Signed-off-by: Ayush Rangwala <[email protected]>
Signed-off-by: Ayush Rangwala <[email protected]>
Signed-off-by: Ayush Rangwala <[email protected]>
Signed-off-by: Ayush Rangwala <[email protected]>
32d0f63 to
6c4f34d
Compare
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
Signed-off-by: Chris Privitere <[email protected]>
All related tests are passing in this test run @ctreatma can you please approve this PR |
Signed-off-by: Ayush Rangwala <[email protected]>
ctreatma
left a comment
There was a problem hiding this comment.
The only test failure in CI was a panic due to hitting the go test timeout. I'm going to assume it's unrelated and deal with any consequences later.
Fixes: #413