-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Templating support in redirect error handler mechanism (#395)
- Loading branch information
Showing
32 changed files
with
323 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package serve | ||
|
||
import ( | ||
"strconv" | ||
"testing" | ||
|
||
"github.com/spf13/cobra" | ||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/dadrus/heimdall/internal/x/testsupport" | ||
) | ||
|
||
func TestCreateDecisionApp(t *testing.T) { | ||
// this test verifies that all dependencies are resolved | ||
// and nothing has been forgotten | ||
port1, err := testsupport.GetFreePort() | ||
require.NoError(t, err) | ||
|
||
port2, err := testsupport.GetFreePort() | ||
require.NoError(t, err) | ||
|
||
t.Setenv("SERVE_DECISION_PORT", strconv.Itoa(port1)) | ||
t.Setenv("SERVE_MANAGEMENT_PORT", strconv.Itoa(port2)) | ||
|
||
_, err = createDecisionApp(&cobra.Command{}) | ||
require.NoError(t, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package serve | ||
|
||
import ( | ||
"strconv" | ||
"testing" | ||
|
||
"github.com/spf13/cobra" | ||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/dadrus/heimdall/internal/x/testsupport" | ||
) | ||
|
||
func TestCreateProxyApp(t *testing.T) { | ||
// this test verifies that all dependencies are resolved | ||
// and nothing has been forgotten | ||
port1, err := testsupport.GetFreePort() | ||
require.NoError(t, err) | ||
|
||
port2, err := testsupport.GetFreePort() | ||
require.NoError(t, err) | ||
|
||
t.Setenv("SERVE_PROXY_PORT", strconv.Itoa(port1)) | ||
t.Setenv("SERVE_MANAGEMENT_PORT", strconv.Itoa(port2)) | ||
|
||
_, err = createProxyApp(&cobra.Command{}) | ||
require.NoError(t, err) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.