Skip to content

Commit

Permalink
rename caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jptosso committed Jan 19, 2023
1 parent f5ad59c commit 4e68df3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
12 changes: 6 additions & 6 deletions coraza_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
const baseURL = "http://127.0.0.1:8080"

func TestPlugin(t *testing.T) {
tester, err := newTester("test/caddyfile", t)
tester, err := newTester("test.init.config", t)
if err != nil {
t.Fatal(err)
}
Expand All @@ -46,7 +46,7 @@ func TestPlugin(t *testing.T) {

func TestPluginReload(t *testing.T) {
tester := caddytest.NewTester(t)
configFile := "test/caddyfile"
configFile := "test.init.config"
configContent, err := ioutil.ReadFile(configFile)
if err != nil {
t.Fatalf("Failed to load configuration file %s: %s", configFile, err)
Expand All @@ -62,7 +62,7 @@ func TestPluginReload(t *testing.T) {
}

func TestSimpleRule(t *testing.T) {
tester, err := newTester("test/caddyfile", t)
tester, err := newTester("test.init.config", t)
if err != nil {
t.Fatal(err)
}
Expand All @@ -83,7 +83,7 @@ func TestSimpleRule(t *testing.T) {
}

func TestPhase3Disruption(t *testing.T) {
tester, err := newTester("test/caddyfile", t)
tester, err := newTester("test.init.config", t)
if err != nil {
t.Fatal(err)
}
Expand All @@ -94,7 +94,7 @@ func TestPhase3Disruption(t *testing.T) {
}

func TestPostUrlEncoded(t *testing.T) {
tester, err := newTester("test/caddyfile", t)
tester, err := newTester("test.init.config", t)
if err != nil {
t.Fatal(err)
}
Expand All @@ -107,7 +107,7 @@ func TestPostUrlEncoded(t *testing.T) {
}

func TestPostMultipart(t *testing.T) {
tester, err := newTester("test/caddyfile", t)
tester, err := newTester("test.init.config", t)
if err != nil {
t.Fatal(err)
}
Expand Down
19 changes: 0 additions & 19 deletions test/Caddyfile

This file was deleted.

0 comments on commit 4e68df3

Please sign in to comment.