Skip to content

Commit

Permalink
Update terraform-plugin-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
fbreckle committed Apr 23, 2021
1 parent 023f4eb commit b335b82
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 27 deletions.
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ test:

.PHONY: fmt
fmt:
go fmt
go fmt netbox/*.go
2 changes: 1 addition & 1 deletion docker/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ until $(curl --connect-timeout 1 --output /dev/null --silent --head --fail ${SER
sleep 5
done

docker-compose -f $SCRIPTPATH/docker-compose.yml logs
docker-compose -f $SCRIPTPATH/docker-compose.yml logs
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/fbreckle/go-netbox v0.0.0-20201127231152-23f80e06cb3d
github.com/go-openapi/runtime v0.19.26
github.com/goware/urlx v0.3.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.0.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.0
github.com/sirupsen/logrus v1.7.0
github.com/stretchr/testify v1.7.0
)
98 changes: 80 additions & 18 deletions go.sum

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion netbox/data_source_netbox_cluster_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ data "netbox_cluster_group" "test" {
resource.TestCheckResourceAttrPair("data.netbox_cluster_group.test", "cluster_group_id", "netbox_cluster_group.test", "id"),
resource.TestCheckResourceAttrPair("data.netbox_cluster_group.test", "id", "netbox_cluster_group.test", "id"),
),
ExpectNonEmptyPlan: true,
},
},
})
Expand Down
1 change: 0 additions & 1 deletion netbox/data_source_netbox_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ data "netbox_cluster" "test" {
resource.TestCheckResourceAttrPair("data.netbox_cluster.test", "cluster_id", "netbox_cluster.test", "id"),
resource.TestCheckResourceAttrPair("data.netbox_cluster.test", "id", "netbox_cluster.test", "id"),
),
ExpectNonEmptyPlan: true,
},
},
})
Expand Down
1 change: 0 additions & 1 deletion netbox/data_source_netbox_device_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ data "netbox_device_role" "test" {
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair("data.netbox_device_role.test", "id", "netbox_device_role.test", "id"),
),
ExpectNonEmptyPlan: true,
},
},
})
Expand Down
1 change: 0 additions & 1 deletion netbox/data_source_netbox_platform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ data "netbox_platform" "test" {
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair("data.netbox_platform.test", "id", "netbox_platform.test", "id"),
),
ExpectNonEmptyPlan: true,
},
},
})
Expand Down
1 change: 0 additions & 1 deletion netbox/data_source_netbox_tenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ data "netbox_tenant" "test" {
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair("data.netbox_tenant.test", "id", "netbox_tenant.test", "id"),
),
ExpectNonEmptyPlan: true,
},
},
})
Expand Down
1 change: 0 additions & 1 deletion netbox/data_source_netbox_vrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ data "netbox_vrf" "test" {
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrPair("data.netbox_vrf.test", "id", "netbox_vrf.test", "id"),
),
ExpectNonEmptyPlan: true,
},
},
})
Expand Down
1 change: 0 additions & 1 deletion netbox/resource_netbox_interface_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func TestAccNetboxInterface_basic(t *testing.T) {
resource "netbox_interface" "test" {
name = "%s"
virtual_machine_id = netbox_virtual_machine.test.id
type = "thisattributeisdeprecated" # deprecated attribute
}`, testName),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("netbox_interface.test", "name", testName),
Expand Down

0 comments on commit b335b82

Please sign in to comment.