You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-05-22 10:15:21 +02:00
rename Upstreams to UpstreamConfig and its Configs member to Upstreams then
This commit is contained in:
@@ -469,8 +469,8 @@ sub:
|
||||
|
||||
It("should load a full example AlphaOptions", func() {
|
||||
config := []byte(`
|
||||
upstreams:
|
||||
configs:
|
||||
upstreamConfig:
|
||||
upstreams:
|
||||
- id: httpbin
|
||||
path: /
|
||||
uri: http://httpbin
|
||||
@@ -503,8 +503,8 @@ injectResponseHeaders:
|
||||
flushInterval := Duration(500 * time.Millisecond)
|
||||
|
||||
Expect(into).To(Equal(&AlphaOptions{
|
||||
Upstreams: Upstreams{
|
||||
Configs: []Upstream{
|
||||
UpstreamConfig: UpstreamConfig{
|
||||
Upstreams: []Upstream{
|
||||
{
|
||||
ID: "httpbin",
|
||||
Path: "/",
|
||||
|
||||
Reference in New Issue
Block a user