Skip to content

Commit

Permalink
test: remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 18, 2022
1 parent c0332bd commit bca2e89
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
7 changes: 0 additions & 7 deletions driver/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1104,13 +1104,6 @@ func TestCourierTemplatesConfig(t *testing.T) {
assert.NoError(t, err)
})

t.Run("case=missing required body plaintext on invalid recovery template", func(t *testing.T) {
_, err := config.New(ctx, logrusx.New("", ""), os.Stderr,
configx.WithConfigFiles("stub/.kratos.courier.remote.invalid.body.yaml"))
assert.Error(t, err)
assert.Contains(t, err.Error(), "missing properties: \"plaintext\"")
})

t.Run("case=load remote template with fallback template overrides path", func(t *testing.T) {
_, err := config.New(ctx, logrusx.New("", ""), os.Stderr,
configx.WithConfigFiles("stub/.kratos.courier.remote.templates.yaml"))
Expand Down
30 changes: 0 additions & 30 deletions driver/config/stub/.kratos.courier.remote.invalid.body.yaml

This file was deleted.

0 comments on commit bca2e89

Please sign in to comment.