Skip to content

Commit

Permalink
fix: Update examples' golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmgolub committed Feb 7, 2022
1 parent 4e8b623 commit 54c4a22
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions testdata/multi-project-config-file_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ Key: ~ changed, + added, - removed
4 cloud resources were detected:
∙ 4 were estimated, 4 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/multi-project-matrix-merge_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ Key: ~ changed, + added, - removed
4 cloud resources were detected:
∙ 4 were estimated, 4 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ Key: ~ changed, + added, - removed
4 cloud resources were detected:
∙ 4 were estimated, 4 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/private-terraform-module_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@ Key: ~ changed, + added, - removed
1 cloud resource was detected:
∙ 1 was estimated, 1 includes usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/slack_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ Key: ~ changed, + added, - removed
2 cloud resources were detected:
∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 1 addition & 1 deletion testdata/slack_slack_message_golden.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"attachments":[{"color":"#dcd8e1","blocks":[{"type":"section","text":{"type":"mrkdwn","text":"*Infracost output*\n```Project: infracost/actions/examples/thresholds/code/plan.json\n\n+ aws_instance.web_app\n +$743\n\n + Instance usage (Linux/UNIX, on-demand, m5.4xlarge)\n +$561\n\n + root_block_device\n \n + Storage (general purpose SSD, gp2)\n +$5.00\n\n + ebs_block_device[0]\n \n + Storage (provisioned IOPS SSD, io1)\n +$125\n \n + Provisioned IOPS\n +$52.00\n\n+ aws_lambda_function.hello_world\n Monthly cost depends on usage\n\n + Requests\n Monthly cost depends on usage\n +$0.20 per 1M requests\n\n + Duration\n Monthly cost depends on usage\n +$0.0000166667 per GB-seconds\n\nMonthly cost change for infracost/actions/examples/thresholds/code/plan.json\nAmount: +$743 ($0.00 → $743)\n\n──────────────────────────────────\nKey: ~ changed, + added, - removed\n\n2 cloud resources were detected:\n∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file```"}}]}],"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"💰 Infracost estimate: *monthly cost will increase by $743 📈*"}},{"type":"divider"},{"type":"section","fields":[{"type":"plain_text","text":"Project"},{"type":"plain_text","text":"Diff"},{"type":"plain_text","text":"infracost/actions/ex...olds/code/plan.json"},{"type":"plain_text","text":"+$743 ($0.00 → $743)"}]}]}
{"attachments":[{"color":"#dcd8e1","blocks":[{"type":"section","text":{"type":"mrkdwn","text":"*Infracost output*\n```Project: infracost/actions/examples/thresholds/code/plan.json\n\n+ aws_instance.web_app\n +$743\n\n + Instance usage (Linux/UNIX, on-demand, m5.4xlarge)\n +$561\n\n + root_block_device\n \n + Storage (general purpose SSD, gp2)\n +$5.00\n\n + ebs_block_device[0]\n \n + Storage (provisioned IOPS SSD, io1)\n +$125\n \n + Provisioned IOPS\n +$52.00\n\n+ aws_lambda_function.hello_world\n Monthly cost depends on usage\n\n + Requests\n Monthly cost depends on usage\n +$0.20 per 1M requests\n\n + Duration\n Monthly cost depends on usage\n +$0.0000166667 per GB-seconds\n\nMonthly cost change for infracost/actions/examples/thresholds/code/plan.json\nAmount: +$743 ($0.00 → $743)\n\n──────────────────────────────────\nKey: ~ changed, + added, - removed\n\n2 cloud resources were detected:\n∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file\n\nAdd cost estimates to your pull requests: https://infracost.io/cicd```"}}]}],"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"💰 Infracost estimate: *monthly cost will increase by $743 📈*"}},{"type":"divider"},{"type":"section","fields":[{"type":"plain_text","text":"Project"},{"type":"plain_text","text":"Diff"},{"type":"plain_text","text":"infracost/actions/ex...olds/code/plan.json"},{"type":"plain_text","text":"+$743 ($0.00 → $743)"}]}]}
2 changes: 2 additions & 0 deletions testdata/terraform-cloud-enterprise_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ Key: ~ changed, + added, - removed
2 cloud resources were detected:
∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/terraform-directory_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ Key: ~ changed, + added, - removed
2 cloud resources were detected:
∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/terraform-plan-json_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ Key: ~ changed, + added, - removed
2 cloud resources were detected:
∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/terragrunt_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ Key: ~ changed, + added, - removed
4 cloud resources were detected:
∙ 4 were estimated, 4 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>
2 changes: 2 additions & 0 deletions testdata/thresholds_comment_golden.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ Key: ~ changed, + added, - removed
2 cloud resources were detected:
∙ 2 were estimated, 2 include usage-based costs, see https://infracost.io/usage-file
Add cost estimates to your pull requests: https://infracost.io/cicd
```
</details>

1 comment on commit 54c4a22

@github-actions
Copy link

Choose a reason for hiding this comment

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

💰 Infracost estimate: monthly cost will increase by $110,130 📈

Project Previous New Diff
infracost/infracost/examples/terraform/plan.json $0 $55,065 +$55,065
infracost/infracost/examples/terraform/plan.json $0 $55,065 +$55,065
All projects $0 $110,130 +$110,130
Infracost output
Project: infracost/infracost/examples/terraform/plan.json

+ aws_instance.web_app
  +$55,065

    + Instance usage (Linux/UNIX, on-demand, m5.4xlarge)
      +$41,570

    + root_block_device
    
        + Storage (general purpose SSD, gp2)
          +$371

    + ebs_block_device[0]
    
        + Storage (provisioned IOPS SSD, io1)
          +$9,268
    
        + Provisioned IOPS
          +$3,856

+ aws_lambda_function.hello_world
  Monthly cost depends on usage

    + Requests
      Monthly cost depends on usage
        +$14.83 per 1M requests

    + Duration
      Monthly cost depends on usage
        +$0.0012357988 per GB-seconds

Monthly cost change for infracost/infracost/examples/terraform/plan.json
Amount:  +$55,065 ($0.00 → $55,065)

──────────────────────────────────
Project: infracost/infracost/examples/terraform/plan.json

+ aws_instance.web_app
  +$55,065

    + Instance usage (Linux/UNIX, on-demand, m5.4xlarge)
      +$41,570

    + root_block_device
    
        + Storage (general purpose SSD, gp2)
          +$371

    + ebs_block_device[0]
    
        + Storage (provisioned IOPS SSD, io1)
          +$9,268
    
        + Provisioned IOPS
          +$3,856

+ aws_lambda_function.hello_world
  Monthly cost depends on usage

    + Requests
      Monthly cost depends on usage
        +$14.83 per 1M requests

    + Duration
      Monthly cost depends on usage
        +$0.0012357988 per GB-seconds

Monthly cost change for infracost/infracost/examples/terraform/plan.json
Amount:  +$55,065 ($0.00 → $55,065)

──────────────────────────────────
Key: ~ changed, + added, - removed

4 cloud resources were detected:
∙ 4 were estimated, 4 include usage-based costs, see https://infracost.io/usage-file

Add cost estimates to your pull requests: https://infracost.io/cicd
Is this comment useful? Yes, No

Please sign in to comment.