From 57bdc9aecd525ea2876931dc990c594f9f20f930 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 24 May 2023 17:57:09 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/cloudflare/cloudflare-go Bumps [github.com/cloudflare/cloudflare-go](https://github.com/cloudflare/cloudflare-go) from 0.67.0 to 0.68.0. - [Release notes](https://github.com/cloudflare/cloudflare-go/releases) - [Changelog](https://github.com/cloudflare/cloudflare-go/blob/master/CHANGELOG.md) - [Commits](https://github.com/cloudflare/cloudflare-go/compare/v0.67.0...v0.68.0) --- updated-dependencies: - dependency-name: github.com/cloudflare/cloudflare-go dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 749bff32f..5cbc4f366 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/MakeNowJust/heredoc/v2 v2.0.1 - github.com/cloudflare/cloudflare-go v0.67.0 + github.com/cloudflare/cloudflare-go v0.68.0 github.com/dnaeon/go-vcr v1.2.0 github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/hc-install v0.5.2 diff --git a/go.sum b/go.sum index c3836d7b4..f6c3b96d5 100644 --- a/go.sum +++ b/go.sum @@ -57,8 +57,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= -github.com/cloudflare/cloudflare-go v0.67.0 h1:cTwYOAlycKb7cx4+ObSNd9iW8Om4ydqNhwcWEnVyRaE= -github.com/cloudflare/cloudflare-go v0.67.0/go.mod h1:FfMEQEtz3ZciNqer63pwAnQTpAn0pijqov0WxnOQ7rM= +github.com/cloudflare/cloudflare-go v0.68.0 h1:YmCaLt0lUqZwxJp6fTrFX2fjb0zQZoKS8lFRMdwZKDI= +github.com/cloudflare/cloudflare-go v0.68.0/go.mod h1:b6oSYwhXmZUdaF83Od/uefT092M41HHis/z6JFsT/kw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= From 6de63b49f19a9fdd92fc75951f51c2070d241c90 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Thu, 25 May 2023 13:46:55 +1000 Subject: [PATCH 2/2] trim down resource assertions --- .../cloudflare/cloudflare_turnstile_widget.yaml | 2 +- .../cloudflare_turnstile_widget/test.tf | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/testdata/cloudflare/cloudflare_turnstile_widget.yaml b/testdata/cloudflare/cloudflare_turnstile_widget.yaml index a8fce5216..78d66fe4b 100644 --- a/testdata/cloudflare/cloudflare_turnstile_widget.yaml +++ b/testdata/cloudflare/cloudflare_turnstile_widget.yaml @@ -11,7 +11,7 @@ interactions: method: GET response: body: | - {"result":[{"sitekey":"0x4AAAAAAAEg5sP3rwf91fe8","modified_on":"2023-05-08T11:49:41.862676Z","created_on":"2023-05-08T11:49:41.862676Z","mode":"managed","domains":["example.com"],"name":"test site","bot_fight_mode":false,"region":"world","offlabel":false},{"sitekey":"0x4AAAAAAAE0gwg0H1StXlOx","modified_on":"2023-05-17T02:08:18.399564Z","created_on":"2023-05-17T02:08:18.399564Z","mode":"managed","domains":["example.org"],"name":"My Terraform-managed widget","bot_fight_mode":false,"region":"world","offlabel":false},{"sitekey":"0x4AAAAAAAE2z4LbxEka5UBh","modified_on":"2023-05-17T19:11:26.151063Z","created_on":"2023-05-17T19:11:26.151063Z","mode":"managed","domains":["example.net"],"name":"My website","bot_fight_mode":false,"region":"world","offlabel":false}],"success":true,"errors":[],"messages":[],"result_info":{"page":1,"per_page":25,"count":3,"total_count":3,"total_pages":1}} + {"result":[{"sitekey":"0x4AAAAAAAEg5sP3rwf91fe8","modified_on":"2023-05-08T11:49:41.862676Z","created_on":"2023-05-08T11:49:41.862676Z","mode":"managed","domains":["example.com"],"name":"test site","bot_fight_mode":false,"region":"world","offlabel":false}],"success":true,"errors":[],"messages":[],"result_info":{"page":1,"per_page":25,"count":3,"total_count":3,"total_pages":1}} headers: Content-Type: - application/json diff --git a/testdata/terraform/cloudflare_turnstile_widget/test.tf b/testdata/terraform/cloudflare_turnstile_widget/test.tf index 6691f1429..0c4eddee2 100644 --- a/testdata/terraform/cloudflare_turnstile_widget/test.tf +++ b/testdata/terraform/cloudflare_turnstile_widget/test.tf @@ -5,19 +5,3 @@ resource "cloudflare_turnstile_widget" "terraform_managed_resource" { name = "test site" region = "world" } - -resource "cloudflare_turnstile_widget" "terraform_managed_resource" { - account_id = "f037e56e89293a057740de681ac9abbe" - domains = ["example.org"] - mode = "managed" - name = "My Terraform-managed widget" - region = "world" -} - -resource "cloudflare_turnstile_widget" "terraform_managed_resource" { - account_id = "f037e56e89293a057740de681ac9abbe" - domains = ["example.net"] - mode = "managed" - name = "My website" - region = "world" -} \ No newline at end of file