Skip to content

Commit fe3380e

Browse files
author
Majid Karimizadeh
authored
chore: update sdk for dedicated server (#262)
1 parent 007b8de commit fe3380e

File tree

5 files changed

+21
-161
lines changed

5 files changed

+21
-161
lines changed

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ docs/
22
node_modules/
33
LICENSE.md
44
CHANGELOG.md
5+
node_modules/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pnpm-lock.yaml
44
.pnpm-store
55
.go
66
dist
7-
node_modules
7+
node_modules/

go.mod

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ require (
88
github.com/hashicorp/terraform-plugin-go v0.25.0
99
github.com/hashicorp/terraform-plugin-log v0.9.0
1010
github.com/hashicorp/terraform-plugin-testing v1.11.0
11-
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250108092627-2b29c0ffdbaf
12-
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20250108092627-2b29c0ffdbaf
13-
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20250108092627-2b29c0ffdbaf
14-
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20250108092627-2b29c0ffdbaf
11+
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250114131155-6968b39e2798
12+
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241230111213-3c3be0c1799d
13+
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20241230111213-3c3be0c1799d
14+
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241230111213-3c3be0c1799d
1515
github.com/stretchr/testify v1.10.0
1616
)
1717

@@ -43,10 +43,6 @@ require (
4343
github.com/hashicorp/terraform-registry-address v0.2.3 // indirect
4444
github.com/hashicorp/terraform-svchost v0.1.1 // indirect
4545
github.com/hashicorp/yamux v0.1.2 // indirect
46-
github.com/leaseweb/leaseweb-go-sdk v1.5.0 // indirect
47-
github.com/leaseweb/leaseweb-go-sdk/abuse v0.0.0-20241230095423-e1ad88be3188 // indirect
48-
github.com/leaseweb/leaseweb-go-sdk/aggregationpack v0.0.0-20241230095423-e1ad88be3188 // indirect
49-
github.com/leaseweb/leaseweb-go-sdk/invoice v0.0.0-20241230095423-e1ad88be3188 // indirect
5046
github.com/mattn/go-colorable v0.1.14 // indirect
5147
github.com/mattn/go-isatty v0.0.20 // indirect
5248
github.com/mitchellh/copystructure v1.2.0 // indirect

go.sum

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -110,39 +110,20 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn
110110
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
111111
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
112112
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
113-
github.com/leaseweb/leaseweb-go-sdk v1.5.0 h1:jJYBREp14dT/EWY0+n9DIqYJs8FxMTciaoq0pKlYHqI=
114-
github.com/leaseweb/leaseweb-go-sdk v1.5.0/go.mod h1:o1uk/VIew+r3J2r4v9yV62MS/ZrqYya3vlxIb6Vk0iU=
115-
github.com/leaseweb/leaseweb-go-sdk/abuse v0.0.0-20241230095423-e1ad88be3188 h1:NhMikDrXP8/V9klgE23tc7BZsvEBCkLPpRL3n25fnD8=
116-
github.com/leaseweb/leaseweb-go-sdk/abuse v0.0.0-20241230095423-e1ad88be3188/go.mod h1:VofRmCtVcL3IWjG1IWrlErHm+NWDq7B1tmfDjn58Xg8=
117-
github.com/leaseweb/leaseweb-go-sdk/aggregationpack v0.0.0-20241230095423-e1ad88be3188 h1:AplZyoUIFOBlPirGcgp+1QCfhz4+falOIf0NUmUQ4xU=
118-
github.com/leaseweb/leaseweb-go-sdk/aggregationpack v0.0.0-20241230095423-e1ad88be3188/go.mod h1:QIKF5Qfot2Yv7/hf/48FDSiL4xGUgPLh1lC+NOVGz58=
119-
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241230111213-3c3be0c1799d h1:8f3E6JqTlFFyUp8geaAnOEDE3DoSbTTUWkPoXjrm+VE=
120-
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s=
121-
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250108092627-2b29c0ffdbaf h1:p+vGxP9VMIB164FmDLHn+A4mkZ0NQaius2NWvlAJx7M=
122-
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s=
113+
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250114131155-6968b39e2798 h1:qWrHouczvy2pYbK+VFY3iS5n3sS/5KsT8T1v52w84hQ=
114+
github.com/leaseweb/leaseweb-go-sdk/dedicatedserver v0.0.0-20250114131155-6968b39e2798/go.mod h1:8c8VAxXnjCxuUEss0Unrd5NB9o7oAkOPeORCs58y76s=
123115
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241230111213-3c3be0c1799d h1:QZ1Y3Ht4yznT1lENi90eU4LUlyrcHgK3Z8SPV6e2T6E=
124116
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:ntxqh2fT7XDwjPLNsWtq6tTjwjL/75llxnbzEZvvzIo=
125-
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20250108092627-2b29c0ffdbaf h1:11N6m0al5OeeECdaV3FjRoCiboVIdCdLcu3flPp1t9o=
126-
github.com/leaseweb/leaseweb-go-sdk/dns v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:ntxqh2fT7XDwjPLNsWtq6tTjwjL/75llxnbzEZvvzIo=
127-
github.com/leaseweb/leaseweb-go-sdk/invoice v0.0.0-20241230095423-e1ad88be3188 h1:Vqdcod/wIfqwtMZl+vaI1y4KQeETDLeuJxpq2JgqeQc=
128-
github.com/leaseweb/leaseweb-go-sdk/invoice v0.0.0-20241230095423-e1ad88be3188/go.mod h1:lI/W9zHBEvjaNrF9tiUqDSxaUose3NkI4H+TqqEdR94=
129117
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20241230111213-3c3be0c1799d h1:+VsKOBalRTClDO3kAAcbx+4qDcJtYbUhsYk4qe82abQ=
130118
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:ipS7tM7zdo0VGHnw6RF5e+7O0aPI7xAj/C5JjJPh6hU=
131-
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20250108092627-2b29c0ffdbaf h1:nK4KIcR1VrtP8dot2PrY6qGGR5mUXAYNKhFpMr2fUJ8=
132-
github.com/leaseweb/leaseweb-go-sdk/ipmgmt v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:TeCaVUQAQU2MeaJVJMMGAnuq9r6VKQF3kurB4dfN9HY=
133119
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241230111213-3c3be0c1799d h1:y/26SD6eX/Qikvp3u3WdYLWg6QaT6rUv6TWp/m5tw2U=
134120
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20241230111213-3c3be0c1799d/go.mod h1:AYJsx8WlHYQXRAzEMuXzuApwIctcLPFazfAo9uy6ogY=
135-
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20250108092627-2b29c0ffdbaf h1:EDmmHbfV6CBO14f6E7iAENpZUftBY0wfecM+nCh9xH4=
136-
github.com/leaseweb/leaseweb-go-sdk/publiccloud v0.0.0-20250108092627-2b29c0ffdbaf/go.mod h1:AYJsx8WlHYQXRAzEMuXzuApwIctcLPFazfAo9uy6ogY=
137121
github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
138122
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
139-
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
140-
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
141123
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
142124
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
143125
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
144126
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
145-
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
146127
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
147128
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
148129
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
@@ -195,8 +176,6 @@ go.opentelemetry.io/otel/trace v1.31.0 h1:ffjsj1aRouKewfr85U2aGagJ46+MvodynlQ1HY
195176
go.opentelemetry.io/otel/trace v1.31.0/go.mod h1:TXZkRk7SM2ZQLtR6eoAWQFIHPvzQ06FJAsO1tJg480A=
196177
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
197178
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
198-
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
199-
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
200179
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
201180
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
202181
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
@@ -206,8 +185,6 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
206185
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
207186
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
208187
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
209-
golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
210-
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
211188
golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=
212189
golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k=
213190
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -225,10 +202,7 @@ golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBc
225202
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
226203
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
227204
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
228-
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
229205
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
230-
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
231-
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
232206
golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=
233207
golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
234208
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
@@ -250,18 +224,12 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
250224
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
251225
google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
252226
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
253-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8 h1:TqExAhdPaB60Ux47Cn0oLV07rGnxZzIsaRhQaqS666A=
254-
google.golang.org/genproto/googleapis/rpc v0.0.0-20241223144023-3abc09e42ca8/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA=
255227
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422 h1:3UsHvIr4Wc2aW4brOaSCmcxh9ksica6fHEr8P1XhkYw=
256228
google.golang.org/genproto/googleapis/rpc v0.0.0-20250106144421-5f5ef82da422/go.mod h1:3ENsm/5D1mzDyhpzeRi1NR784I0BcofWBoSc5QqqMK4=
257-
google.golang.org/grpc v1.69.2 h1:U3S9QEtbXC0bYNvRtcoklF3xGtLViumSYxWykJS+7AU=
258-
google.golang.org/grpc v1.69.2/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
259229
google.golang.org/grpc v1.69.4 h1:MF5TftSMkd8GLw/m0KM6V8CMOCY6NZ1NQDPGFgbTt4A=
260230
google.golang.org/grpc v1.69.4/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4=
261231
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
262232
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
263-
google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk=
264-
google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
265233
google.golang.org/protobuf v1.36.2 h1:R8FeyR1/eLmkutZOM5CWghmo5itiG9z0ktFlTVLuTmU=
266234
google.golang.org/protobuf v1.36.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
267235
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

internal/provider/provider_test.go

Lines changed: 13 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,123 +1652,18 @@ func TestAccDedicatedServerDataSource(t *testing.T) {
16521652
{
16531653
Config: providerConfig + `
16541654
data "leaseweb_dedicated_server" "test" {
1655-
id = "12345"
1655+
id = "123456"
16561656
}`,
16571657
Check: resource.ComposeAggregateTestCheckFunc(
16581658
resource.TestCheckResourceAttr(
16591659
"data.leaseweb_dedicated_server.test",
16601660
"asset_id",
1661-
"627294",
1661+
"1234561882",
16621662
),
16631663
resource.TestCheckResourceAttr(
16641664
"data.leaseweb_dedicated_server.test",
16651665
"contract_id",
1666-
"674382",
1667-
),
1668-
resource.TestCheckResourceAttr(
1669-
"data.leaseweb_dedicated_server.test",
1670-
"cpu_quantity",
1671-
"4",
1672-
),
1673-
resource.TestCheckResourceAttr(
1674-
"data.leaseweb_dedicated_server.test",
1675-
"cpu_type",
1676-
"Intel Xeon E3-1220",
1677-
),
1678-
resource.TestCheckResourceAttr(
1679-
"data.leaseweb_dedicated_server.test",
1680-
"internal_gateway",
1681-
"123.123.123.126",
1682-
),
1683-
resource.TestCheckResourceAttr(
1684-
"data.leaseweb_dedicated_server.test",
1685-
"internal_ip",
1686-
"123.123.123.123/27",
1687-
),
1688-
resource.TestCheckResourceAttr(
1689-
"data.leaseweb_dedicated_server.test",
1690-
"internal_mac",
1691-
"AA:BB:CC:DD:EE:FF",
1692-
),
1693-
resource.TestCheckResourceAttr(
1694-
"data.leaseweb_dedicated_server.test",
1695-
"is_automation_feature_available",
1696-
"true",
1697-
),
1698-
resource.TestCheckResourceAttr(
1699-
"data.leaseweb_dedicated_server.test",
1700-
"is_ipmi_reboot_feature_available",
1701-
"false",
1702-
),
1703-
resource.TestCheckResourceAttr(
1704-
"data.leaseweb_dedicated_server.test",
1705-
"is_power_cycle_feature_available",
1706-
"true",
1707-
),
1708-
resource.TestCheckResourceAttr(
1709-
"data.leaseweb_dedicated_server.test",
1710-
"is_private_network_feature_available",
1711-
"true",
1712-
),
1713-
resource.TestCheckResourceAttr(
1714-
"data.leaseweb_dedicated_server.test",
1715-
"is_remote_management_feature_available",
1716-
"false",
1717-
),
1718-
resource.TestCheckResourceAttr(
1719-
"data.leaseweb_dedicated_server.test",
1720-
"location_rack",
1721-
"13",
1722-
),
1723-
resource.TestCheckResourceAttr(
1724-
"data.leaseweb_dedicated_server.test",
1725-
"location_site",
1726-
"AMS-01",
1727-
),
1728-
resource.TestCheckResourceAttr(
1729-
"data.leaseweb_dedicated_server.test",
1730-
"location_suite",
1731-
"A6",
1732-
),
1733-
resource.TestCheckResourceAttr(
1734-
"data.leaseweb_dedicated_server.test",
1735-
"location_unit",
1736-
"16-17",
1737-
),
1738-
resource.TestCheckResourceAttr(
1739-
"data.leaseweb_dedicated_server.test",
1740-
"public_gateway",
1741-
"123.123.123.126",
1742-
),
1743-
resource.TestCheckResourceAttr(
1744-
"data.leaseweb_dedicated_server.test",
1745-
"public_ip",
1746-
"123.123.123.123/27",
1747-
),
1748-
resource.TestCheckResourceAttr(
1749-
"data.leaseweb_dedicated_server.test",
1750-
"public_mac",
1751-
"AA:BB:CC:DD:EE:FF",
1752-
),
1753-
resource.TestCheckResourceAttr(
1754-
"data.leaseweb_dedicated_server.test",
1755-
"rack_type",
1756-
"DEDICATED",
1757-
),
1758-
resource.TestCheckResourceAttr(
1759-
"data.leaseweb_dedicated_server.test",
1760-
"ram_size",
1761-
"32",
1762-
),
1763-
resource.TestCheckResourceAttr(
1764-
"data.leaseweb_dedicated_server.test",
1765-
"ram_unit",
1766-
"GB",
1767-
),
1768-
resource.TestCheckResourceAttr(
1769-
"data.leaseweb_dedicated_server.test",
1770-
"serial_number",
1771-
"JDK18291JK",
1666+
"12123412312",
17721667
),
17731668
),
17741669
},
@@ -2891,7 +2786,7 @@ func TestAccDedicatedServerResource(t *testing.T) {
28912786
ResourceName: "leaseweb_dedicated_server.test",
28922787
ImportState: true,
28932788
ImportStatePersist: true,
2894-
ImportStateId: "12345",
2789+
ImportStateId: "123456",
28952790
},
28962791
// Update and Read testing
28972792
{
@@ -2903,12 +2798,12 @@ func TestAccDedicatedServerResource(t *testing.T) {
29032798
resource.TestCheckResourceAttr(
29042799
"leaseweb_dedicated_server.test",
29052800
"id",
2906-
"12345",
2801+
"123456",
29072802
),
29082803
resource.TestCheckResourceAttr(
29092804
"leaseweb_dedicated_server.test",
29102805
"reference",
2911-
"database.server",
2806+
"this is ref",
29122807
),
29132808
resource.TestCheckResourceAttr(
29142809
"leaseweb_dedicated_server.test",
@@ -2938,37 +2833,37 @@ func TestAccDedicatedServerResource(t *testing.T) {
29382833
resource.TestCheckResourceAttr(
29392834
"leaseweb_dedicated_server.test",
29402835
"public_ip",
2941-
"123.123.123.123",
2836+
"127.0.0.1",
29422837
),
29432838
resource.TestCheckResourceAttr(
29442839
"leaseweb_dedicated_server.test",
29452840
"remote_management_ip",
2946-
"",
2841+
"127.0.0.1",
29472842
),
29482843
resource.TestCheckResourceAttr(
29492844
"leaseweb_dedicated_server.test",
29502845
"internal_mac",
2951-
"AA:BB:CC:DD:EE:FF",
2846+
"macmacmac",
29522847
),
29532848
resource.TestCheckResourceAttr(
29542849
"leaseweb_dedicated_server.test",
29552850
"location.rack",
2956-
"13",
2851+
"LK18",
29572852
),
29582853
resource.TestCheckResourceAttr(
29592854
"leaseweb_dedicated_server.test",
29602855
"location.site",
2961-
"AMS-01",
2856+
"AMS-02",
29622857
),
29632858
resource.TestCheckResourceAttr(
29642859
"leaseweb_dedicated_server.test",
29652860
"location.suite",
2966-
"A6",
2861+
"HALL1",
29672862
),
29682863
resource.TestCheckResourceAttr(
29692864
"leaseweb_dedicated_server.test",
29702865
"location.unit",
2971-
"16-17",
2866+
"12",
29722867
),
29732868
),
29742869
},

0 commit comments

Comments
 (0)