Skip to content

Commit

Permalink
chore: update sdk for dedicated server (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
majidkarimizadeh authored Jan 14, 2025
1 parent 007b8de commit fe3380e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 161 deletions.
1 change: 1 addition & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ docs/
node_modules/
LICENSE.md
CHANGELOG.md
node_modules/
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ pnpm-lock.yaml
.pnpm-store
.go
dist
node_modules
node_modules/
12 changes: 4 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ require (
github.com/hashicorp/terraform-plugin-go v0.25.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.11.0
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250108092627-2b29c0ffdbaf
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20250108092627-2b29c0ffdbaf
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20250108092627-2b29c0ffdbaf
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20250108092627-2b29c0ffdbaf
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250114131155-6968b39e2798
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241230111213-3c3be0c1799d
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20241230111213-3c3be0c1799d
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241230111213-3c3be0c1799d
github.com/stretchr/testify v1.10.0
)

Expand Down Expand Up @@ -43,10 +43,6 @@ require (
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
github.com/hashicorp/yamux v0.1.2 // indirect
github.com/leaseweb/leaseweb-go-sdk v1.5.0 // indirect
github.com/leaseweb/leaseweb-go-sdk/abuse v0.0.0-20241230095423-e1ad88be3188 // indirect
github.com/leaseweb/leaseweb-go-sdk/aggregationpack v0.0.0-20241230095423-e1ad88be3188 // indirect
github.com/leaseweb/leaseweb-go-sdk/invoice v0.0.0-20241230095423-e1ad88be3188 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
Expand Down
36 changes: 2 additions & 34 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -110,39 +110,20 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn
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/leaseweb/leaseweb-go-sdk v1.5.0 h1:jJYBREp14dT/EWY0+n9DIqYJs8FxMTciaoq0pKlYHqI=
github.com/leaseweb/leaseweb-go-sdk v1.5.0/go.mod h1:o1uk/VIew+r3J2r4v9yV62MS/ZrqYya3vlxIb6Vk0iU=
github.com/leaseweb/leaseweb-go-sdk/abuse v0.0.0-20241230095423-e1ad88be3188 h1:NhMikDrXP8/V9klgE23tc7BZsvEBCkLPpRL3n25fnD8=
github.com/leaseweb/leaseweb-go-sdk/abuse v0.0.0-20241230095423-e1ad88be3188/go.mod h1:VofRmCtVcL3IWjG1IWrlErHm+NWDq7B1tmfDjn58Xg8=
github.com/leaseweb/leaseweb-go-sdk/aggregationpack v0.0.0-20241230095423-e1ad88be3188 h1:AplZyoUIFOBlPirGcgp+1QCfhz4+falOIf0NUmUQ4xU=
github.com/leaseweb/leaseweb-go-sdk/aggregationpack v0.0.0-20241230095423-e1ad88be3188/go.mod h1:QIKF5Qfot2Yv7/hf/48FDSiL4xGUgPLh1lC+NOVGz58=
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241230111213-3c3be0c1799d h1:8f3E6JqTlFFyUp8geaAnOEDE3DoSbTTUWkPoXjrm+VE=
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s=
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250108092627-2b29c0ffdbaf h1:p+vGxP9VMIB164FmDLHn+A4mkZ0NQaius2NWvlAJx7M=
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s=
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250114131155-6968b39e2798 h1:qWrHouczvy2pYbK+VFY3iS5n3sS/5KsT8T1v52w84hQ=
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250114131155-6968b39e2798/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s=
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241230111213-3c3be0c1799d h1:QZ1Y3Ht4yznT1lENi90eU4LUlyrcHgK3Z8SPV6e2T6E=
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:ntxqh2fT7XDwjPLNsWtq6tTjwjL/75llxnbzEZvvzIo=
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20250108092627-2b29c0ffdbaf h1:11N6m0al5OeeECdaV3FjRoCiboVIdCdLcu3flPp1t9o=
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:ntxqh2fT7XDwjPLNsWtq6tTjwjL/75llxnbzEZvvzIo=
github.com/leaseweb/leaseweb-go-sdk/invoice v0.0.0-20241230095423-e1ad88be3188 h1:Vqdcod/wIfqwtMZl+vaI1y4KQeETDLeuJxpq2JgqeQc=
github.com/leaseweb/leaseweb-go-sdk/invoice v0.0.0-20241230095423-e1ad88be3188/go.mod h1:lI/W9zHBEvjaNrF9tiUqDSxaUose3NkI4H+TqqEdR94=
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20241230111213-3c3be0c1799d h1:+VsKOBalRTClDO3kAAcbx+4qDcJtYbUhsYk4qe82abQ=
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:ipS7tM7zdo0VGHnw6RF5e+7O0aPI7xAj/C5JjJPh6hU=
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20250108092627-2b29c0ffdbaf h1:nK4KIcR1VrtP8dot2PrY6qGGR5mUXAYNKhFpMr2fUJ8=
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:TeCaVUQAQU2MeaJVJMMGAnuq9r6VKQF3kurB4dfN9HY=
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241230111213-3c3be0c1799d h1:y/26SD6eX/Qikvp3u3WdYLWg6QaT6rUv6TWp/m5tw2U=
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:AYJsx8WlHYQXRAzEMuXzuApwIctcLPFazfAo9uy6ogY=
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20250108092627-2b29c0ffdbaf h1:EDmmHbfV6CBO14f6E7iAENpZUftBY0wfecM+nCh9xH4=
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:AYJsx8WlHYQXRAzEMuXzuApwIctcLPFazfAo9uy6ogY=
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
Expand Down Expand Up @@ -195,8 +176,6 @@ go.opentelemetry.io/otel/trace v1.31.0 h1:ffjsj1aRouKewfr85U2aGagJ46+MvodynlQ1HY
go.opentelemetry.io/otel/trace v1.31.0/go.mod h1:TXZkRk7SM2ZQLtR6eoAWQFIHPvzQ06FJAsO1tJg480A=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
Expand All @@ -206,8 +185,6 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand All @@ -225,10 +202,7 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand All @@ -250,18 +224,12 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 h1:3UsHvIr4Wc2aW4brOaSCmcxh9ksica6fHEr8P1XhkYw=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422/go.mod h1:3ENsm/5D1mzDyhpzeRi1NR784I0BcofWBoSc5QqqMK4=
google.golang.org/grpc v1.69.2 h1:U3S9QEtbXC0bYNvRtcoklF3xGtLViumSYxWykJS+7AU=
google.golang.org/grpc v1.69.2/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
google.golang.org/grpc v1.69.4 h1:MF5TftSMkd8GLw/m0KM6V8CMOCY6NZ1NQDPGFgbTt4A=
google.golang.org/grpc v1.69.4/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk=
google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
google.golang.org/protobuf v1.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU=
google.golang.org/protobuf v1.36.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
131 changes: 13 additions & 118 deletions internal/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1652,123 +1652,18 @@ func TestAccDedicatedServerDataSource(t *testing.T) {
{
Config: providerConfig + `
data "leaseweb_dedicated_server" "test" {
id = "12345"
id = "123456"
}`,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"asset_id",
"627294",
"1234561882",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"contract_id",
"674382",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"cpu_quantity",
"4",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"cpu_type",
"Intel Xeon E3-1220",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"internal_gateway",
"123.123.123.126",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"internal_ip",
"123.123.123.123/27",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"internal_mac",
"AA:BB:CC:DD:EE:FF",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"is_automation_feature_available",
"true",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"is_ipmi_reboot_feature_available",
"false",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"is_power_cycle_feature_available",
"true",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"is_private_network_feature_available",
"true",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"is_remote_management_feature_available",
"false",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"location_rack",
"13",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"location_site",
"AMS-01",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"location_suite",
"A6",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"location_unit",
"16-17",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"public_gateway",
"123.123.123.126",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"public_ip",
"123.123.123.123/27",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"public_mac",
"AA:BB:CC:DD:EE:FF",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"rack_type",
"DEDICATED",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"ram_size",
"32",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"ram_unit",
"GB",
),
resource.TestCheckResourceAttr(
"data.leaseweb_dedicated_server.test",
"serial_number",
"JDK18291JK",
"12123412312",
),
),
},
Expand Down Expand Up @@ -2891,7 +2786,7 @@ func TestAccDedicatedServerResource(t *testing.T) {
ResourceName: "leaseweb_dedicated_server.test",
ImportState: true,
ImportStatePersist: true,
ImportStateId: "12345",
ImportStateId: "123456",
},
// Update and Read testing
{
Expand All @@ -2903,12 +2798,12 @@ func TestAccDedicatedServerResource(t *testing.T) {
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"id",
"12345",
"123456",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"reference",
"database.server",
"this is ref",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
Expand Down Expand Up @@ -2938,37 +2833,37 @@ func TestAccDedicatedServerResource(t *testing.T) {
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"public_ip",
"123.123.123.123",
"127.0.0.1",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"remote_management_ip",
"",
"127.0.0.1",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"internal_mac",
"AA:BB:CC:DD:EE:FF",
"macmacmac",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"location.rack",
"13",
"LK18",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"location.site",
"AMS-01",
"AMS-02",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"location.suite",
"A6",
"HALL1",
),
resource.TestCheckResourceAttr(
"leaseweb_dedicated_server.test",
"location.unit",
"16-17",
"12",
),
),
},
Expand Down

0 comments on commit fe3380e

Please sign in to comment.