Skip to content
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

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

szuecs
Copy link
Member

@szuecs szuecs commented Oct 26, 2022

test: skipper basic startup routes file, inlinecontent, status checks…

Signed-off-by: Sandor Szücs sandor.szuecs@zalando.de

…, ..

Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
@szuecs
Copy link
Member Author

szuecs commented Oct 26, 2022

👍

1 similar comment
@MustafaSaber
Copy link
Member

👍

@@ -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"
Copy link
Member

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?

Copy link
Member Author

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.

@szuecs szuecs merged commit a5082dc into master Oct 27, 2022
@szuecs szuecs deleted the test/skipper-basics branch October 27, 2022 08:52
Comment on lines +736 to +757
// 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()
Copy link
Member

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.

Copy link
Member Author

@szuecs szuecs Aug 19, 2023

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #2558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants