0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GithubActionsでterratestを実行すると「invalid character 'c' looking for beginning of value」とテスト失敗する

0
Posted at

状況

ローカル実行するとうまくいく。
githubactionsでも、同様にgo testで実行している

go test -v -timeout 30m

メッセージ

| TestTerraformAwsCloudFrontCustomDomain 2022-11-25T08:12:43Z logger.go:66: ::set-output name=exitcode::0
|     output.go:19:
|               Error Trace:    /home/yuta/terraform/aws/infra/test/output.go:19
|                                                       /home/yuta/terraform/aws/infra/test/custom_header_test.go:49
|                                                       /home/yuta/terraform/aws/infra/test/custom_header_test.go:38
|               Error:          Received unexpected error:
|                               invalid character 'c' looking for beginning of value
|               Test:           TestTerraformAwsCloudFrontCustomDomain
| --- FAIL: TestTerraformAwsCloudFrontCustomDomain (499.91s)
| FAIL
| exit status 1
| FAIL  test    499.914s

対処方法

terraform_wrapper: falseをつける

steps:
- uses: hashicorp/setup-terraform@v2
  with:
    terraform_wrapper: false

参考

https://github.com/gruntwork-io/terratest/issues/706
https://github.com/gruntwork-io/terratest/issues/779

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?