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

Initialize tfexec.Terraform once per request + refactoring/cleanup #6630

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

kachawla
Copy link
Contributor

@kachawla kachawla commented Nov 2, 2023

Description

  • Terraform instance along with logging configuration is being called multiple times for same request - consolidating it to be initialized only once.

  • Move working directory creation to tfexec.Terraform initialization to remove duplicated code.

Type of change

  • This pull request fixes a bug in Radius and has an approved issue (issue link required).

Fixes: #6456

Auto-generated summary

🤖 Generated by Copilot at b523d6e

Summary

📝🛠️🚀

Refactored the terraform package to use the tfexec.Terraform type and a custom logger. Improved the consistency and readability of the tests and the code. Added new files log.go and types_test.go to implement and test the new features.

Oh we're the terraform crew and we've got work to do
We'll refactor and improve our code with tfexec too
We'll stream our logs and test our types and make our imports clear
So heave away, me hearties, heave away with cheer

Walkthrough

  • Fix import alias for datastoresrp package in show_test.go (link, link, link, link, link, link, link, link, link)
  • Refactor Terraform executor creation and configuration in types.go and log.go (link, link, link, link, link, link)
  • Simplify generateConfig, initAndApply, initAndDestroy, downloadAndInspect, and downloadModule functions to accept a Terraform executor instead of a working directory and an exec path in execute.go and module.go (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Update TestGeneratedConfig, Test_GetTerraformConfig, Test_GetTerraformConfig_EmptyRecipeName, and Test_GetTerraformConfig_InvalidDirectory functions to use the NewTerraform function and pass the test directory instead of the working directory in execute_test.go (link, link, link, link, link, link, link, link, link, link, link)
  • Remove Test_DownloadModule_EmptyWorkingDirPath_Error test case as it is no longer relevant in module_test.go (link, link)
  • Rename test case for empty recipe name error in execute_test.go (link)
  • Change test directory name and error message in Test_GetTerraformConfig_InvalidDirectory function in execute_test.go (link, link)

@kachawla kachawla requested review from a team as code owners November 2, 2023 01:52
@kachawla kachawla changed the title Initialize tfexec.Terraform once per request Initialize tfexec.Terraform once per request; refactoring/cleanup Nov 2, 2023
@kachawla kachawla changed the title Initialize tfexec.Terraform once per request; refactoring/cleanup Initialize tfexec.Terraform once per request + refactoring/cleanup Nov 2, 2023
@kachawla kachawla force-pushed the kachawla/terraform-improvements branch from b523d6e to cb91333 Compare November 2, 2023 01:55
@kachawla
Copy link
Contributor Author

kachawla commented Nov 2, 2023

/ok-to-test

Copy link

github-actions bot commented Nov 2, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref cb91333
Unique ID 97d619b182
Image tag pr-97d619b182
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-97d619b182
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-97d619b182
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-97d619b182
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-97d619b182
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting datastoresrp functional tests...
⌛ Starting shared functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting msgrp functional tests...
✅ datastoresrp functional tests succeeded
✅ ucp functional tests succeeded
✅ shared functional tests succeeded
✅ samples functional tests succeeded
✅ msgrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ daprrp functional tests succeeded

Copy link

github-actions bot commented Nov 2, 2023

Test Results

2 975 tests   - 1   2 963 ✔️  - 1   3m 4s ⏱️ +3s
   256 suites ±0        12 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit f7666c2. ± Comparison against base commit c6a9049.

This pull request removes 8 and adds 7 tests. Note that renamed tests count towards both.
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/44a10bba-f640-4d77-a6de-4e068f0e3800
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/44a10bba-f640-4d77-a6de-4e068f0e3800#01
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestGeneratedConfig
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestGeneratedConfig/empty_recipe_name
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestGeneratedConfig/invalid_exec_path
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestGeneratedConfig/invalid_working_dir
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestInitAndApply_EmptyWorkingDirPath
github.com/radius-project/radius/pkg/recipes/terraform ‑ Test_DownloadModule_EmptyWorkingDirPath_Error
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/b7292b72-b0df-40f4-ace6-eea7a0aec38e
github.com/radius-project/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/b7292b72-b0df-40f4-ace6-eea7a0aec38e#01
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestGenerateConfig
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestGenerateConfig/empty_recipe_name_error
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestNewTerraform_EmptyExecPath
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestNewTerraform_InvalidDir
github.com/radius-project/radius/pkg/recipes/terraform ‑ TestNewTerraform_Success

♻️ This comment has been updated with latest results.

@kachawla kachawla force-pushed the kachawla/terraform-improvements branch from cb91333 to 8db01f4 Compare November 2, 2023 16:59
Copy link

github-actions bot commented Nov 2, 2023

65.0

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.0 %
  • main branch coverage: 65.1 %
  • diff coverage: -.1 %

The coverage result does not include the functional test coverage.

@kachawla kachawla force-pushed the kachawla/terraform-improvements branch from 8db01f4 to 2dde25c Compare November 2, 2023 17:27
Copy link

github-actions bot commented Nov 2, 2023

65.0

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 65.0 %
  • main branch coverage: 65.1 %
  • diff coverage: -.1 %

The coverage result does not include the functional test coverage.

@kachawla
Copy link
Contributor Author

kachawla commented Nov 2, 2023

/ok-to-test

Copy link

github-actions bot commented Nov 2, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository radius-project/radius
Commit ref 2dde25c
Unique ID fd412fb9cc
Image tag pr-fd412fb9cc
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.20.0
  • Dapr: 1.11.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.1.0
  • Bicep recipe location ghcr.io/radius-project/dev/test/functional/shared/recipes/<name>:pr-fd412fb9cc
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • applications-rp test image location: ghcr.io/radius-project/dev/applications-rp:pr-fd412fb9cc
  • controller test image location: ghcr.io/radius-project/dev/controller:pr-fd412fb9cc
  • ucp test image location: ghcr.io/radius-project/dev/ucpd:pr-fd412fb9cc
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:latest

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp functional tests...
⌛ Starting daprrp functional tests...
⌛ Starting kubernetes functional tests...
⌛ Starting shared functional tests...
⌛ Starting msgrp functional tests...
⌛ Starting samples functional tests...
⌛ Starting datastoresrp functional tests...
✅ ucp functional tests succeeded
✅ samples functional tests succeeded
✅ daprrp functional tests succeeded
✅ datastoresrp functional tests succeeded
✅ msgrp functional tests succeeded
✅ kubernetes functional tests succeeded
✅ shared functional tests succeeded

// Create Working Directory
workingDir, err := createWorkingDir(ctx, options.RootDir)
// Create a new instance of tfexec.Terraform with current Terraform installation path
tf, err := NewTerraform(ctx, options.RootDir, execPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could working in the Terraform installation path cause clashes with other files that will take place in the same directory?

Before we were creating a working directory (workingDir) in the root directory, now we will not create a working directory but will work in the execution path (execPath) -- the working directory and execution path will be the same. Would that cause any problems?

Copy link
Contributor Author

@kachawla kachawla Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are still creating the working directory inside the root directory

workingDir, err := createWorkingDir(ctx, tfRootDir)
, this PR is just moving creation of working directory closer to the initialization of terraform-exec. Did you mean something else?

}

if err = tf.Get(ctx); err != nil {
func downloadModule(ctx context.Context, tf *tfexec.Terraform, templatePath string) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that, in the future, we could have a struct that has tfexec.Terraform as a property. That could have a constructor and some functions. One of the functions could be downloadModule, which could be something like this:

func (td *TerraformDriver) downloadModule(ctx context.Context, templatePath string) error {
         td.Terraform.Get(ctx)...
...
}

Note: The struct name will probably something other than TerraformDriver :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way we could also mock some of the functions of tfexec.Terraform.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense to me. Some of the functions called from execute.go can be cleaned up as well downloadModule, inspectModule etc, but it's best to do that in smaller PRs so didn't include that here.

Copy link

github-actions bot commented Nov 3, 2023

64.9

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 64.9 %
  • main branch coverage: 64.9 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@kachawla kachawla merged commit d680f7d into main Nov 3, 2023
16 checks passed
@kachawla kachawla deleted the kachawla/terraform-improvements branch November 3, 2023 17:17
willdavsmith pushed a commit to willdavsmith/radius that referenced this pull request Nov 3, 2023
…adius-project#6630)

# Description

* Terraform instance along with logging configuration is being called
multiple times for same request - consolidating it to be initialized
only once.

* Move working directory creation to tfexec.Terraform initialization to
remove duplicated code.

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request fixes a bug in Radius and has an approved issue
(issue link required).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: radius-project#6456

## Auto-generated summary

<!--
GitHub Copilot for docs will auto-generate a summary of the PR
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at b523d6e</samp>

### Summary
📝🛠️🚀

<!--
1. 📝 - This emoji represents the addition of the log.go file and the
types_test.go file, which implement and test new features for the
terraform package. The emoji also represents the refactoring of the test
cases and the error messages in the package, which improve the
documentation and clarity of the code.
2. 🛠️ - This emoji represents the refactoring of the terraform package
in execute.go and module_test.go, which use the tfexec package and the
new functions in types.go to simplify the function signatures and reduce
the duplication of parameters. The emoji also represents the fixing of
the import alias and the resource types in the show command test cases,
which improve the consistency and readability of the code.
3. 🚀 - This emoji represents the enhancement of the terraform package in
types.go, which adds functions and constants to create and configure a
working directory for Terraform execution and logging. The emoji also
represents the use of the tfLogWrapper struct in log.go, which streams
the Terraform logs to the Radius logger. These features improve the
performance and user experience of the terraform package.
-->
Refactored the terraform package to use the `tfexec.Terraform` type and
a custom logger. Improved the consistency and readability of the tests
and the code. Added new files `log.go` and `types_test.go` to implement
and test the new features.

> _Oh we're the `terraform` crew and we've got work to do_
> _We'll refactor and improve our code with `tfexec` too_
> _We'll stream our logs and test our types and make our imports clear_
> _So heave away, me hearties, heave away with cheer_

### Walkthrough
* Fix import alias for datastoresrp package in `show_test.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L33-R33),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L49-R49),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L58-R58),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L67-R67),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L76-R76),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L114-R114),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L148-R148),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L190-R190),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-13fc0c59e89a1fa92926d4fdd0ef9a6ef372c9816c6c43ec6b003427b63e0852L225-R225))
* Refactor Terraform executor creation and configuration in `types.go`
and `log.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-0ad85ed086350c77c3e366408120b4c3020d1cec542671ab3586fd0c34dafe6fL22-R25),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-0ad85ed086350c77c3e366408120b4c3020d1cec542671ab3586fd0c34dafe6fL30-R37),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-0ad85ed086350c77c3e366408120b4c3020d1cec542671ab3586fd0c34dafe6fL59-R71),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-0ad85ed086350c77c3e366408120b4c3020d1cec542671ab3586fd0c34dafe6fL71-R92),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-cd97896943008b717cf4f1a771f6dd35263008aebb0ebccb272755793d10a1acR1-R87),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-8242ca1f206aeefb27fdc2d73686357bf7cb70572c1003c0586e2ba189a6e7f6R1-R56))
* Simplify generateConfig, initAndApply, initAndDestroy,
downloadAndInspect, and downloadModule functions to accept a Terraform
executor instead of a working directory and an exec path in `execute.go`
and `module.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L23-R26),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L45-L49),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L92-R86),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L99-R92),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L105-R98),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L141-R135),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L148-R141),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L168-R161),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L201-R205),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L222-R218),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L243-R225),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L301-R283),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L307-R289),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L320-R302),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L353-R339),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-41ec31c0ceb8bd50c0329b55a8d27aeba69648059faef4e785302155f4e97482L385-R371),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-4f4cb2009f77e8f5e252eee95f3ed880148fc285798ef4b7bbeb970525ad7b5aR25),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-4f4cb2009f77e8f5e252eee95f3ed880148fc285798ef4b7bbeb970525ad7b5aL101-R103))
* Update TestGeneratedConfig, Test_GetTerraformConfig,
Test_GetTerraformConfig_EmptyRecipeName, and
Test_GetTerraformConfig_InvalidDirectory functions to use the
NewTerraform function and pass the test directory instead of the working
directory in `execute_test.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL20-R23),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL30-R30),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL78-R38),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL85-L105),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL115-R58),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL128-L129),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL142-R81),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL151-L152),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL161-R98),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL167-R104),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL179-R115))
* Remove Test_DownloadModule_EmptyWorkingDirPath_Error test case as it
is no longer relevant in `module_test.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-35f143c273df8b35733ba5b5e44bc5bb5e4dbe8467aeabc3e861b5e19354791bL20-R22),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-35f143c273df8b35733ba5b5e44bc5bb5e4dbe8467aeabc3e861b5e19354791bL92-L101))
* Rename test case for empty recipe name error in `execute_test.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL78-R38))
* Change test directory name and error message in
Test_GetTerraformConfig_InvalidDirectory function in `execute_test.go`
([link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL167-R104),
[link](https://github.com/radius-project/radius/pull/6630/files?diff=unified&w=0#diff-3b5890b2cb244038dacda842a1e285235330c421ad27e8bc02d6f979ee8869caL179-R115))

---------

Signed-off-by: Karishma Chawla <[email protected]>
Co-authored-by: karishma-chawla <[email protected]>
Signed-off-by: willdavsmith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate multiple initializations of tfexec.Terraform + logging configuration
3 participants