Skip to content

Commit

Permalink
chore: updating the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Nov 9, 2024
1 parent 24730ae commit 6a43402
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/controller/configuration/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func makeFakeController(cc client.Client) *Controller {
cache: cache.New(5*time.Minute, 10*time.Minute),
recorder: recorder,
BackoffLimit: 2,
BinaryPath: "/bin/opentofu",
BinaryPath: "/usr/local/bin/tofu",
ControllerNamespace: "terraform-system",
DefaultExecutorCPULimit: "1",
DefaultExecutorCPURequest: "5m",
Expand Down Expand Up @@ -937,7 +937,7 @@ var _ = Describe("Configuration Controller", func() {
kc: kfake.NewSimpleClientset(),
cache: cache.New(5*time.Minute, 10*time.Minute),
recorder: recorder,
BinaryPath: "/bin/opentofu",
BinaryPath: "/usr/local/bin/tofu",
DefaultExecutorCPULimit: "1",
DefaultExecutorCPURequest: "5m",
DefaultExecutorMemoryLimit: "1Gi",
Expand Down Expand Up @@ -2012,8 +2012,8 @@ terraform {

expected := []string{
"--comment=Executing Terraform",
"--command=/bin/opentofu plan --var-file variables.tfvars.json -out=/run/plan.out -lock=false -no-color -input=false",
"--command=/bin/opentofu show -json /run/plan.out > /run/tfplan.json",
"--command=/usr/local/bin/tofu plan --var-file variables.tfvars.json -out=/run/plan.out -lock=false -no-color -input=false",
"--command=/usr/local/bin/tofu show -json /run/plan.out > /run/tfplan.json",
"--command=/bin/cp /run/tfplan.json /run/plan.json",
"--command=/bin/gzip /run/plan.json",
"--command=/bin/mv /run/plan.json.gz /run/plan.json",
Expand Down Expand Up @@ -3295,7 +3295,7 @@ terraform {

expected := []string{
"--comment=Executing Terraform",
"--command=/bin/opentofu apply --var-file variables.tfvars.json -lock=false -no-color -input=false -auto-approve",
"--command=/usr/local/bin/tofu apply --var-file variables.tfvars.json -lock=false -no-color -input=false -auto-approve",
"--on-error=/run/steps/terraform.failed",
"--on-success=/run/steps/terraform.complete",
}
Expand Down

0 comments on commit 6a43402

Please sign in to comment.