Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <[email protected]>
  • Loading branch information
Yisaer committed Jan 10, 2024
1 parent 648e60e commit 44ee17b
Showing 1 changed file with 41 additions and 32 deletions.
73 changes: 41 additions & 32 deletions internal/io/http/httppull_lookup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/lf-edge/ekuiper/internal/conf"
"github.com/lf-edge/ekuiper/internal/pkg/cert"
"github.com/lf-edge/ekuiper/internal/topo/context"
)

Expand Down Expand Up @@ -53,14 +54,16 @@ func TestConfigureLookup(t *testing.T) {
},
},
config: &RawConf{
Url: "http://localhost:52345/",
ResendUrl: "http://localhost:52345/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
InsecureSkipVerify: true,
Url: "http://localhost:52345/",
ResendUrl: "http://localhost:52345/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
TlsConfigurationOptions: &cert.TlsConfigurationOptions{
SkipCertVerify: true,
},
Headers: map[string]interface{}{
"Authorization": "Bearer {{.token}}",
},
Expand Down Expand Up @@ -104,14 +107,16 @@ func TestConfigureLookup(t *testing.T) {
},
},
config: &RawConf{
Url: "http://localhost:52345/",
ResendUrl: "http://localhost:52345/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
InsecureSkipVerify: true,
Url: "http://localhost:52345/",
ResendUrl: "http://localhost:52345/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
TlsConfigurationOptions: &cert.TlsConfigurationOptions{
SkipCertVerify: true,
},
Headers: map[string]interface{}{
"Authorization": "Bearer {{.token}}",
},
Expand Down Expand Up @@ -162,14 +167,16 @@ func TestConfigureLookup(t *testing.T) {
},
},
config: &RawConf{
Url: "http://localhost:52345/",
ResendUrl: "http://localhost:52345/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
InsecureSkipVerify: true,
Url: "http://localhost:52345/",
ResendUrl: "http://localhost:52345/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
TlsConfigurationOptions: &cert.TlsConfigurationOptions{
SkipCertVerify: true,
},
Headers: map[string]interface{}{
"Authorization": "Bearer {{.token}}",
},
Expand Down Expand Up @@ -218,14 +225,16 @@ func TestConfigureLookup(t *testing.T) {
"url": "http://localhost:9090/",
},
config: &RawConf{
Url: "http://localhost:9090/",
ResendUrl: "http://localhost:9090/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
InsecureSkipVerify: true,
Url: "http://localhost:9090/",
ResendUrl: "http://localhost:9090/",
Method: http.MethodGet,
Interval: DefaultInterval,
Timeout: DefaultTimeout,
BodyType: "none",
ResponseType: "code",
TlsConfigurationOptions: &cert.TlsConfigurationOptions{
SkipCertVerify: true,
},
},
},
}
Expand Down

0 comments on commit 44ee17b

Please sign in to comment.