mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 14:57:16 +08:00
fix: tests
This commit is contained in:
@@ -519,7 +519,7 @@ func (s *ProxyVhostTestSuite) TestProxyConfig() {
|
||||
proxies := []types.Proxy{
|
||||
{
|
||||
Location: "/",
|
||||
Pass: "http://backend",
|
||||
Pass: "https://backend",
|
||||
Host: "example.com",
|
||||
SNI: "example.com",
|
||||
Buffering: true,
|
||||
@@ -533,7 +533,7 @@ func (s *ProxyVhostTestSuite) TestProxyConfig() {
|
||||
s.NoError(err)
|
||||
|
||||
s.Contains(string(content), "location /")
|
||||
s.Contains(string(content), "proxy_pass http://backend")
|
||||
s.Contains(string(content), "proxy_pass https://backend")
|
||||
s.Contains(string(content), "proxy_set_header Host")
|
||||
s.Contains(string(content), "example.com")
|
||||
s.Contains(string(content), "proxy_ssl_name")
|
||||
|
||||
Reference in New Issue
Block a user