-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: skipper basic startup routes file, inlinecontent, status checks… #2115
Conversation
…, .. Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
👍 |
1 similar comment
👍 |
@@ -23,6 +23,7 @@ import ( | |||
"github.com/zalando/skipper/filters/auth" | |||
"github.com/zalando/skipper/filters/builtin" | |||
fscheduler "github.com/zalando/skipper/filters/scheduler" | |||
"github.com/zalando/skipper/innkeeper" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we rather deprecate this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already since long time, but I need to use to to create the default data clients. I can refactor the code to drop it from test, but I don't really care for now.
// create LB in front of apiservers to be able to switch the data served by apiserver | ||
ro := routing.Options{ | ||
SignalFirstLoad: true, | ||
FilterRegistry: fr, | ||
DataClients: dcs, //[]routing.DataClient{dc}, | ||
PostProcessors: []routing.PostProcessor{ | ||
loadbalancer.NewAlgorithmProvider(), | ||
reg, | ||
}, | ||
SuppressLogs: true, | ||
} | ||
rt := routing.New(ro) | ||
defer rt.Close() | ||
<-rt.FirstLoad() | ||
tracer := &tracingtest.Tracer{} | ||
pr := proxy.WithParams(proxy.Params{ | ||
Routing: rt, | ||
OpenTracing: &proxy.OpenTracingParams{Tracer: tracer}, | ||
}) | ||
defer pr.Close() | ||
lb := stdlibhttptest.NewServer(pr) | ||
defer lb.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw a flake
--- FAIL: TestDataClients (1.01s)
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:527: Waiting for proxy being ready
skipper_test.go:538: Failed to GET routes file route: Get "http://localhost:8090/routes-file": dial tcp 127.0.0.1:8090: connect: connection refused
TBH I can not understand what this is testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That skipper starts with dataclients and safety nets enabled like status check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #2558
test: skipper basic startup routes file, inlinecontent, status checks…
Signed-off-by: Sandor Szücs sandor.szuecs@zalando.de