Skip to content

Commit 9402a85

Browse files
author
Liam Cervante
authored
Update noisy equivalence test (#36036)
* update noisy equivalence test * also run on opened PRs * don't need to ignore fields anymore
1 parent d11ae2c commit 9402a85

File tree

8 files changed

+57
-14
lines changed

8 files changed

+57
-14
lines changed

.github/actions/equivalence-test/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ runs:
7070
shell: bash
7171
run: |
7272
gh pr create \
73+
--draft \
7374
--base ${{ inputs.current-branch }} \
7475
--head ${{ inputs.new-branch }} \
7576
--title "Update equivalence test golden files" \

.github/workflows/equivalence-test-diff.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: equivalence-test-diff
33
on:
44
pull_request:
55
types:
6+
- opened
67
- synchronize
78
- ready_for_review
89
- reopened

.github/workflows/equivalence-test-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ jobs:
6666
current-branch: ${{ github.event.pull_request.base.ref }}
6767
new-branch: equivalence-testing/${{ github.event.pull_request.head.ref }}
6868
reviewers: ${{ github.event.pull_request.merged_by.login }}
69-
message: "Update equivalence test golden files after ${{ github.event.pull_request.url }}."
69+
message: "Update equivalence test golden files after ${{ github.event.pull_request.html_url }}."

testing/equivalence-tests/tests/null_provider_basic/spec.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

testing/equivalence-tests/tests/null_provider_update/.terraform.lock.hcl

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/equivalence-tests/tests/null_provider_basic/main.tf renamed to testing/equivalence-tests/tests/null_provider_update/main.tf

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"description": "tests creating a simple resource created by the null provider",
3+
"include_files": [],
4+
"ignore_fields": {}
5+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": 4,
3+
"terraform_version": "1.10.0",
4+
"serial": 1,
5+
"lineage": "afca9e36-5040-2a11-9225-a64c8caa4605",
6+
"outputs": {},
7+
"resources": [
8+
{
9+
"mode": "managed",
10+
"type": "null_resource",
11+
"name": "null_resource",
12+
"provider": "provider[\"registry.terraform.io/hashicorp/null\"]",
13+
"instances": [
14+
{
15+
"schema_version": 0,
16+
"attributes": {
17+
"id": "3637779521417605172",
18+
"triggers": null
19+
},
20+
"sensitive_attributes": [],
21+
"private": "bnVsbA=="
22+
}
23+
]
24+
}
25+
],
26+
"check_results": null
27+
}

0 commit comments

Comments
 (0)