mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 11:38:59 +02:00
🧪 fix test
This commit is contained in:
+3
-2
@@ -9,6 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
configuration "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/configuration"
|
||||||
ip "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/ip"
|
ip "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin/pkg/ip"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ func TestNew(t *testing.T) {
|
|||||||
type args struct {
|
type args struct {
|
||||||
ctx context.Context
|
ctx context.Context
|
||||||
next http.Handler
|
next http.Handler
|
||||||
config *Config
|
config *configuration.Config
|
||||||
name string
|
name string
|
||||||
}
|
}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
@@ -180,7 +181,7 @@ func Test_crowdsecQuery(t *testing.T) {
|
|||||||
|
|
||||||
func Test_getTLSConfigCrowdsec(t *testing.T) {
|
func Test_getTLSConfigCrowdsec(t *testing.T) {
|
||||||
type args struct {
|
type args struct {
|
||||||
config *Config
|
config *configuration.Config
|
||||||
}
|
}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
|
|||||||
Reference in New Issue
Block a user