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

Chore: Integration test for the bug not possible to use OpenTofu as b… #976

Conversation

TomerHeber
Copy link
Collaborator

…ackend for Terragrunt via env0 Terraform provider (#974)

  • chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider

  • chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider

Issue & Steps to Reproduce / Feature Request

resolves #975

Solution

Add an integration test to reproduce an issue.

…ackend for Terragrunt via env0 Terraform provider (#974)

* chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider

* chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider
@TomerHeber
Copy link
Collaborator Author

hi @onhate

It looks like the test has failed:

Error: -12T14:39:23.816Z [ERROR] provider.terraform-provider-env0: Response contains error diagnostic: @caller=/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:62 diagnostic_detail= diagnostic_severity=ERROR tf_proto_version=5.4 tf_req_id=4f39ca40-25ce-7610-6fc2-fab2e4820be9 tf_rpc=ApplyResourceChange @module=sdk.proto diagnostic_summary="could not create environment: 400 Bad Request: can't create a template with undefined terraform version value" tf_provider_addr=provider tf_resource_type=env0_environment timestamp=2024-11-12T14:39:23.815Z
╷
│ Error: could not create environment: 400 Bad Request: can't create a template with undefined terraform version value
│ 
│   with env0_environment.environment,
│   on main.tf line 14, in resource "env0_environment" "environment":
│   14: resource "env0_environment" "environment" {
│ 
╵

Is this what you expected?

CC - @yaronya

@onhate
Copy link
Contributor

onhate commented Nov 12, 2024

yes, that's the expected behavior until the fix is release to production on env0 APIs.

@razbensimon
Copy link
Contributor

@TomerHeber BE side merged, please check and continue :)

@TomerHeber
Copy link
Collaborator Author

/review

@bot-env0 bot-env0 requested a review from a team November 17, 2024 14:48
@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels Nov 17, 2024
@TomerHeber TomerHeber merged commit 74b8a6d into main Nov 17, 2024
5 checks passed
@TomerHeber TomerHeber deleted the chore-integration-test-without_template_settings-terragrunt-opentofu-#975 branch November 17, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore integration-tests ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Not possible to use OpenTofu as backend binary for Terragrunt
3 participants