Skip to content

Commit

Permalink
Update tests (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
shilgapira authored Jan 27, 2025
1 parent 2081eb9 commit fbd14ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion internal/models/authentication/authentication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestAuthentication(t *testing.T) {
}
}
`),
ExpectError: regexp.MustCompile(`Missing Client Secret`),
ExpectError: regexp.MustCompile(`Missing Attribute Value`),
},
resource.TestStep{
Config: p.Config(`
Expand Down
2 changes: 1 addition & 1 deletion internal/models/jwttemplates/jwttemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (m *JWTTemplateModel) Values(h *helpers.Handler) map[string]any {
h.Log("Updating reference for JWT template '%s' to: %s", templateName, refValue)
data["id"] = refValue
} else {
h.Error("Unknown JWT template reference", "No JWT template named '"+templateName+"' was defined")
h.Error("Unknown JWT template reference", "No JWT template named '%s' was defined", templateName)
}

return data
Expand Down
19 changes: 0 additions & 19 deletions internal/models/settings/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,6 @@ func TestSettings(t *testing.T) {
`),
ExpectError: regexp.MustCompile(`value must be one of`),
},
resource.TestStep{
Config: p.Config(`
project_settings = {
domain = "example1.com"
}
`),
Check: p.Check(map[string]any{
"project_settings.domain": "example1.com",
}),
},
resource.TestStep{
Config: p.Config(`
project_settings = {
Expand All @@ -242,15 +232,6 @@ func TestSettings(t *testing.T) {
"project_settings.cookie_domain": "example2.com",
}),
},
resource.TestStep{
Config: p.Config(`
project_settings = {
domain = "example.com"
cookie_domain = "example.com"
}
`),
ExpectError: regexp.MustCompile(`Conflicting Attributes`),
},
resource.TestStep{
Config: p.Config(`
project_settings = {
Expand Down

0 comments on commit fbd14ae

Please sign in to comment.