Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit cadccc6

Browse files
committed
Skip TestRoutes if extension or router-id is missing
1 parent 9e86b19 commit cadccc6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/cloudprovider/providers/openstack/openstack_routes_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ func TestRoutes(t *testing.T) {
3737
t.Fatalf("Failed to construct/authenticate OpenStack: %s", err)
3838
}
3939

40+
if os.routeOpts.RouterId == "" {
41+
t.Skip("router-id is empty. skipping test")
42+
}
43+
4044
r, ok := os.Routes()
4145
if !ok {
42-
t.Fatalf("Routes() returned false - perhaps your stack doens't support Neutron?")
46+
t.Skip("Routes() returned false - perhaps your stack does not support Neutron extraroute extension?")
4347
}
4448

4549
newroute := cloudprovider.Route{

0 commit comments

Comments
 (0)