+
Skip to content

Conversation

aliscott
Copy link
Member

  • First commit fixes up the tests to ensure that they are checking for errored projects.
  • Second commit fixes the issue and shows the test diff.

Errored projects weren't showing the -<env> suffix on their project names in the JSON. This causes found duplicate project name issues when running infracost diff.
This fixes it by making sure that the module always has the suffix, so that if it errors and returns early we still know the suffix. Previously this was only added if the module was parsed successfully.

@aliscott aliscott self-assigned this Jul 17, 2024
aliscott added 2 commits July 17, 2024 12:22
…lly have an error

It seems like this test didn't have any error in the Terraform before, so wasn't checking for what it said it was.
I've also updated the `TestBreakdownMultiProjectWithError` test to be consistent
This test wasn't
Errored projects weren't showing the `-<env>` suffix on their project names in the JSON. This causes `found duplicate project name` issues when running `infracost diff`.
This fixes it by making sure that the module always has the suffix, so that if it errors and returns early we still know the suffix. Previously this was only added if the module was parsed successfully.
@aliscott aliscott force-pushed the fix/errored-project-names branch from 662106a to dd03681 Compare July 17, 2024 11:22
@aliscott aliscott marked this pull request as ready for review July 17, 2024 11:31
@aliscott aliscott requested a review from tim775 July 17, 2024 11:31
@aliscott aliscott merged commit 233eccb into master Jul 17, 2024
@aliscott aliscott deleted the fix/errored-project-names branch July 17, 2024 11:48
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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载