Update noisy equivalence test (#36036)

* update noisy equivalence test

* also run on opened PRs

* don't need to ignore fields anymore
This commit is contained in:
Liam Cervante 2024-11-19 08:56:51 +01:00 committed by GitHub
parent d11ae2ceca
commit 9402a85c5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 57 additions and 14 deletions

View file

@ -70,6 +70,7 @@ runs:
shell: bash
run: |
gh pr create \
--draft \
--base ${{ inputs.current-branch }} \
--head ${{ inputs.new-branch }} \
--title "Update equivalence test golden files" \

View file

@ -3,6 +3,7 @@ name: equivalence-test-diff
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened

View file

@ -66,4 +66,4 @@ jobs:
current-branch: ${{ github.event.pull_request.base.ref }}
new-branch: equivalence-testing/${{ github.event.pull_request.head.ref }}
reviewers: ${{ github.event.pull_request.merged_by.login }}
message: "Update equivalence test golden files after ${{ github.event.pull_request.url }}."
message: "Update equivalence test golden files after ${{ github.event.pull_request.html_url }}."

View file

@ -1,13 +0,0 @@
{
"description": "tests creating a simple resource created by the null provider",
"include_files": [],
"ignore_fields": {
"apply.json": [
"2.@message",
"2.hook.id_value"
],
"state.json": [
"values.root_module.resources.*.values.id"
]
}
}

View file

@ -0,0 +1,22 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/hashicorp/null" {
version = "3.1.1"
constraints = "3.1.1"
hashes = [
"h1:YvH6gTaQzGdNv+SKTZujU1O0bO+Pw6vJHOPhqgN8XNs=",
"zh:063466f41f1d9fd0dd93722840c1314f046d8760b1812fa67c34de0afcba5597",
"zh:08c058e367de6debdad35fc24d97131c7cf75103baec8279aba3506a08b53faf",
"zh:73ce6dff935150d6ddc6ac4a10071e02647d10175c173cfe5dca81f3d13d8afe",
"zh:78d5eefdd9e494defcb3c68d282b8f96630502cac21d1ea161f53cfe9bb483b3",
"zh:8fdd792a626413502e68c195f2097352bdc6a0df694f7df350ed784741eb587e",
"zh:976bbaf268cb497400fd5b3c774d218f3933271864345f18deebe4dcbfcd6afa",
"zh:b21b78ca581f98f4cdb7a366b03ae9db23a73dfa7df12c533d7c19b68e9e72e5",
"zh:b7fc0c1615dbdb1d6fd4abb9c7dc7da286631f7ca2299fb9cd4664258ccfbff4",
"zh:d1efc942b2c44345e0c29bc976594cb7278c38cfb8897b344669eafbc3cddf46",
"zh:e356c245b3cd9d4789bab010893566acace682d7db877e52d40fc4ca34a50924",
"zh:ea98802ba92fcfa8cf12cbce2e9e7ebe999afbf8ed47fa45fc847a098d89468b",
"zh:eff8872458806499889f6927b5d954560f3d74bf20b6043409edf94d26cd906f",
]
}

View file

@ -0,0 +1,5 @@
{
"description": "tests creating a simple resource created by the null provider",
"include_files": [],
"ignore_fields": {}
}

View file

@ -0,0 +1,27 @@
{
"version": 4,
"terraform_version": "1.10.0",
"serial": 1,
"lineage": "afca9e36-5040-2a11-9225-a64c8caa4605",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "null_resource",
"name": "null_resource",
"provider": "provider[\"registry.terraform.io/hashicorp/null\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "3637779521417605172",
"triggers": null
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
}
],
"check_results": null
}