We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4d04e commit a5e35b7Copy full SHA for a5e35b7
internal/mode/static/nginx/config/sockets_test.go
@@ -6,9 +6,16 @@ import (
6
. "github.com/onsi/gomega"
7
)
8
9
-func TestGetSocketName(t *testing.T) {
+func TestGetSocketNameTLS(t *testing.T) {
10
res := getSocketNameTLS(800, "*.cafe.example.com")
11
12
g := NewGomegaWithT(t)
13
g.Expect(res).To(Equal("unix:/var/run/nginx/*.cafe.example.com800.sock"))
14
}
15
+
16
+func TestGetSocketNameHTTPS(t *testing.T) {
17
+ res := getSocketNameHTTPS(800)
18
19
+ g := NewGomegaWithT(t)
20
+ g.Expect(res).To(Equal("unix:/var/run/nginx/https800.sock"))
21
+}
0 commit comments