Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/command: Replace initialise with initialize in error message… #35655

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions internal/command/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2726,7 +2726,7 @@ func TestInit_invalidSyntaxNoBackend(t *testing.T) {
}

errStr := testOutput.Stderr()
if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr)
}
if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) {
Expand Down Expand Up @@ -2757,7 +2757,7 @@ func TestInit_invalidSyntaxWithBackend(t *testing.T) {
}

errStr := testOutput.Stderr()
if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr)
}
if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) {
Expand Down Expand Up @@ -2788,7 +2788,7 @@ func TestInit_invalidSyntaxInvalidBackend(t *testing.T) {
}

errStr := testOutput.Stderr()
if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr)
}
if subStr := "Error: Unsupported block type"; !strings.Contains(errStr, subStr) {
Expand Down Expand Up @@ -2822,7 +2822,7 @@ func TestInit_invalidSyntaxBackendAttribute(t *testing.T) {
}

errStr := testOutput.All()
if subStr := "Terraform encountered problems during initialisation, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
if subStr := "Terraform encountered problems during initialization, including problems\nwith the configuration, described below."; !strings.Contains(errStr, subStr) {
t.Errorf("Error output should include preamble\nwant substr: %s\ngot:\n%s", subStr, errStr)
}
if subStr := "Error: Invalid character"; !strings.Contains(errStr, subStr) {
Expand Down
4 changes: 2 additions & 2 deletions internal/command/views/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ const partnerAndCommunityProvidersInfo = "\nPartner and community providers are
"https://www.terraform.io/docs/cli/plugins/signing.html"

const errInitConfigError = `
[reset]Terraform encountered problems during initialisation, including problems
[reset]Terraform encountered problems during initialization, including problems
with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
`

const errInitConfigErrorJSON = `
Terraform encountered problems during initialisation, including problems
Terraform encountered problems during initialization, including problems
with the configuration, described below.

The Terraform configuration must be valid before initialization so that
Expand Down