Skip to content

Commit

Permalink
Merge pull request #21 from kristofferahl/fix/go-mods-tests-and-examples
Browse files Browse the repository at this point in the history
Update go modules, examples and tests
  • Loading branch information
kristofferahl committed Oct 15, 2020
2 parents 75e8abc + 0dd6a97 commit 12263bf
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -16,7 +16,7 @@
```terraform
provider "healthchecksio" {
api_key = var.healthchecks_io_api_key
version = "~> 1.3"
version = "~> 1.5.0"
}
variable "healthchecks_io_api_key" {
Expand All @@ -26,6 +26,7 @@ variable "healthchecks_io_api_key" {
resource "healthchecksio_check" "test" {
name = "test-check"
desc = "A description for the check"
tags = [
"go",
Expand Down
3 changes: 2 additions & 1 deletion examples/full/main.tf
@@ -1,9 +1,10 @@
provider "healthchecksio" {
version = "~> 1.3"
version = "~> 1.5.0"
}

resource "healthchecksio_check" "test" {
name = "test-check"
desc = "A test check"

tags = [
"go",
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/main.tf
@@ -1,5 +1,5 @@
provider "healthchecksio" {
version = "~> 1.3"
version = "~> 1.5.0"
}

resource "healthchecksio_check" "bare_minimum" {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -4,5 +4,5 @@ go 1.13

require (
github.com/hashicorp/terraform-plugin-sdk v1.1.0
github.com/kristofferahl/go-healthchecksio v1.0.0
github.com/kristofferahl/go-healthchecksio v1.2.0
)
10 changes: 3 additions & 7 deletions go.sum
Expand Up @@ -111,8 +111,6 @@ github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKe
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/icaho/go-healthchecksio v1.0.0 h1:xa61eBogLGCaJLK8xteOrIVK/Gs1HCBBmVLYUld8LpY=
github.com/icaho/go-healthchecksio v1.0.0/go.mod h1:cfshcEKCX/jDmoIYSOwZnfyCyaIEmaeiRJC1beJDv1k=
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
Expand All @@ -124,10 +122,8 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kristofferahl/go-healthchecksio v1.0.0 h1:OSrjUFjXLp1vR1MrFKufmO3A5NjD/CMYSwIqABmqWkE=
github.com/kristofferahl/go-healthchecksio v1.0.0/go.mod h1:kM2vqIphKHp+Rp3DjFN9ogxOtiZmmWAWf7NK1YYrHYo=
github.com/kristofferahl/go-healthchecksio v1.1.0 h1:attem/nlXO5/ekdPBd+x2qSjG4e8LqGmgw+zqx9QD40=
github.com/kristofferahl/go-healthchecksio v1.1.0/go.mod h1:Y6ptmTrDSCGukP22zlbddM4KGwnOqMjT4itv++OIX6M=
github.com/kristofferahl/go-healthchecksio v1.2.0 h1:pPpKtASkDAJ2GxyZgt3M5S1Jqgd5iFIDZsdYWhVxvRM=
github.com/kristofferahl/go-healthchecksio v1.2.0/go.mod h1:Y6ptmTrDSCGukP22zlbddM4KGwnOqMjT4itv++OIX6M=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
Expand Down Expand Up @@ -162,7 +158,7 @@ github.com/mitchellh/reflectwalk v1.0.1 h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY7
github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw=
github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.5.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
Expand Down
2 changes: 1 addition & 1 deletion healthchecksio/resource_check.go
Expand Up @@ -71,7 +71,7 @@ func resourceHealthcheck() *schema.Resource {
Computed: true,
},
"desc": &schema.Schema{
Type: schema.TypeString,
Type: schema.TypeString,
Description: "Description of the healthcheck",
Optional: true,
},
Expand Down
8 changes: 7 additions & 1 deletion test/minimal/main.tf
@@ -1,8 +1,14 @@
provider "healthchecksio" {
version = "~> 1.3"
version = "~> 1.5.0"
}

resource "healthchecksio_check" "bare_minimum" {
name = "test-bare-minimum-check"
timeout = 86400
}

resource "healthchecksio_check" "extended" {
name = "test-extended-check"
desc = "An extended check"
timeout = 86400
}

0 comments on commit 12263bf

Please sign in to comment.