feat: add middlewares config for rest (#2765)

* feat: add middlewares config for rest

* chore: disable logs in tests

* chore: enable verbose in tests
This commit is contained in:
Kevin Wan
2023-01-08 16:41:53 +08:00
committed by GitHub
parent f4502171ea
commit ade6f9ee46
5 changed files with 67 additions and 17 deletions

View File

@@ -18,10 +18,14 @@ func TestNewEngine(t *testing.T) {
yamls := []string{
`Name: foo
Port: 54321
Middlewares:
Log: false
`,
`Name: foo
Port: 54321
CpuThreshold: 500
Middlewares:
Log: false
`,
`Name: foo
Port: 54321