Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to go1.24 #2941

Merged
merged 4 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/acceptance-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Run Acceptance Tests
run: go test -v ./internal/services/${{ matrix.products }} -timeout=2h
env:
Expand All @@ -76,7 +76,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
- name: Run scwconfig tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- docs/**

env:
GO_VERSION: "1.23.5"
GO_VERSION: "1.24.0"
GO111MODULE: on

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Run Acceptance Tests
run: go test -v ./internal/services/${{ matrix.products }} -timeout=4h
env:
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
- name: Run sweepers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/purge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
- name: Run sweepers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0

- name: Import GPG key
id: import_gpg
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tfproviderlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Install tfproviderlint
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
- name: Run tfproviderlint
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- uses: hashicorp/setup-terraform@v3
- run: go install github.com/bflad/tfproviderdocs@latest
- run: make tfproviderdocs
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23.5
go-version: 1.24.0
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
- name: Build binaries
Expand Down
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ website:
.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website

tfproviderlint:
go run github.com/bflad/tfproviderlint/cmd/tfproviderlint -R014=false -AT001.ignored-filename-suffixes=_data_source_test.go ./...
go tool tfproviderlint -R014=false -AT001.ignored-filename-suffixes=_data_source_test.go ./...

tfproviderdocs:
go run github.com/bflad/tfproviderdocs check -provider-name scaleway -enable-contents-check
go tool tfproviderdocs check -provider-name scaleway -enable-contents-check
21 changes: 13 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/scaleway/terraform-provider-scaleway/v2

go 1.23.5
go 1.24.0

require (
github.com/aws/aws-sdk-go-v2 v1.36.0
Expand All @@ -10,8 +10,6 @@ require (
github.com/aws/aws-sdk-go-v2/service/sns v1.33.17
github.com/aws/aws-sdk-go-v2/service/sqs v1.37.12
github.com/aws/smithy-go v1.22.2
github.com/bflad/tfproviderdocs v0.12.1
github.com/bflad/tfproviderlint v0.30.0
github.com/docker/docker v27.5.1+incompatible
github.com/dustin/go-humanize v1.0.1
github.com/google/go-cmp v0.6.0
Expand All @@ -30,7 +28,7 @@ require (
github.com/robfig/cron/v3 v3.0.1
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250206152403-1eed2f2ce9d3
github.com/stretchr/testify v1.10.0
golang.org/x/crypto v0.32.0
golang.org/x/crypto v0.33.0
gopkg.in/dnaeon/go-vcr.v3 v3.2.0
)

Expand Down Expand Up @@ -58,6 +56,8 @@ require (
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.13 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.33.12 // indirect
github.com/bflad/gopaniccheck v0.1.0 // indirect
github.com/bflad/tfproviderdocs v0.12.1 // indirect
github.com/bflad/tfproviderlint v0.31.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/bmatcuk/doublestar v1.3.4 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
Expand Down Expand Up @@ -123,13 +123,13 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.22.0 // indirect
go.opentelemetry.io/otel/metric v1.31.0 // indirect
go.opentelemetry.io/otel/trace v1.31.0 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/mod v0.23.0 // indirect
golang.org/x/net v0.35.0 // indirect
golang.org/x/sync v0.11.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/sys v0.30.0 // indirect
golang.org/x/text v0.22.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
golang.org/x/tools v0.30.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/grpc v1.69.4 // indirect
Expand All @@ -138,3 +138,8 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
gotest.tools/v3 v3.0.3 // indirect
)

tool (
github.com/bflad/tfproviderdocs
github.com/bflad/tfproviderlint/cmd/tfproviderlint
)
28 changes: 14 additions & 14 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ github.com/bflad/gopaniccheck v0.1.0 h1:tJftp+bv42ouERmUMWLoUn/5bi/iQZjHPznM00cP
github.com/bflad/gopaniccheck v0.1.0/go.mod h1:ZCj2vSr7EqVeDaqVsWN4n2MwdROx1YL+LFo47TSWtsA=
github.com/bflad/tfproviderdocs v0.12.1 h1:MlHjrSa+pz1RxaCdvUWj+ZI5IwKMF7tjL4JTLg+dlTs=
github.com/bflad/tfproviderdocs v0.12.1/go.mod h1:3zyWdyOoqheS0xjftKuFboq5k405mJrblp9leVIvvDo=
github.com/bflad/tfproviderlint v0.30.0 h1:XBbTGPS4ZagSt4Qtnus3Vgh5yOeHNLZhnjcTcsSJ7ZM=
github.com/bflad/tfproviderlint v0.30.0/go.mod h1:eBZHT0r7HKPGw1uZEyGMzcR1/d+GAXq9KzQfw0I7wtY=
github.com/bflad/tfproviderlint v0.31.0 h1:9N/dUzFARsTpAQOjdZzIWnHKMzQc7UDDEYrSNV2xnrw=
github.com/bflad/tfproviderlint v0.31.0/go.mod h1:yZQdJs4uobBIgVHt1Tv5OpHhgM8fwh29OgxL/La5BFs=
github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQrS0=
Expand Down Expand Up @@ -346,14 +346,14 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=
golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc=
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=
golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
Expand All @@ -363,8 +363,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
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.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
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/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand All @@ -388,13 +388,13 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
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/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg=
golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek=
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand All @@ -412,8 +412,8 @@ golang.org/x/tools v0.0.0-20200214201135-548b770e2dfa/go.mod h1:TB2adYChydJhpapK
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
3 changes: 1 addition & 2 deletions internal/acctest/acctest.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package acctest

import (
"context"
"os"
"strconv"
"strings"
Expand All @@ -27,7 +26,7 @@ type TestTools struct {
func NewTestTools(t *testing.T) *TestTools {
t.Helper()

ctx := context.Background()
ctx := t.Context()

folder, err := os.Getwd()
if err != nil {
Expand Down
5 changes: 2 additions & 3 deletions internal/provider/provider_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package provider_test

import (
"context"
"fmt"
"testing"

Expand All @@ -20,7 +19,7 @@ func TestAccProvider_InstanceIPZones(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(t) },
Expand Down Expand Up @@ -78,7 +77,7 @@ func TestAccProvider_SSHKeys(t *testing.T) {
SSHKeyName := "TestAccScalewayProvider_SSHKeys"
SSHKey := "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEEYrzDOZmhItdKaDAEqJQ4ORS2GyBMtBozYsK5kiXXX [email protected]"

ctx := context.Background()
ctx := t.Context()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(t) },
Expand Down
15 changes: 7 additions & 8 deletions internal/services/iam/policy_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package iam_test

import (
"context"
"fmt"
"testing"

Expand All @@ -18,7 +17,7 @@ func TestAccPolicy_Basic(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down Expand Up @@ -92,7 +91,7 @@ func TestAccPolicy_NoUpdate(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down Expand Up @@ -155,7 +154,7 @@ func TestAccPolicy_ChangeLinkedEntity(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down Expand Up @@ -261,7 +260,7 @@ func TestAccPolicy_ChangePermissions(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down Expand Up @@ -352,7 +351,7 @@ func TestAccPolicy_ProjectID(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down Expand Up @@ -418,7 +417,7 @@ func TestAccPolicy_Condition(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down Expand Up @@ -513,7 +512,7 @@ func TestAccPolicy_ChangeRulePrincipal(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
project, iamAPIKey, terminateFakeSideProject, err := acctest.CreateFakeIAMManager(tt)
require.NoError(t, err)

Expand Down
3 changes: 1 addition & 2 deletions internal/services/lb/lb_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package lb_test

import (
"context"
"errors"
"fmt"
"reflect"
Expand Down Expand Up @@ -692,7 +691,7 @@ func TestLbUpgradeV1SchemaUpgradeFunc(t *testing.T) {
"id": "fr-par-1/22c61530-834c-4ab4-aa71-aaaa2ac9d45a",
}

actual, err := lb.UpgradeStateV1Func(context.Background(), v0Schema, nil)
actual, err := lb.UpgradeStateV1Func(t.Context(), v0Schema, nil)
if err != nil {
t.Fatalf("error migrating state: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/mnq/sns_topic_subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestAccSNSTopicSubscription_Basic(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(t) },
ProviderFactories: tt.ProviderFactories,
Expand Down
2 changes: 1 addition & 1 deletion internal/services/mnq/sns_topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestAccSNSTopic_Basic(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(t) },
Expand Down
4 changes: 2 additions & 2 deletions internal/services/mnq/sqs_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestAccSQSQueue_Basic(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(t) },
Expand Down Expand Up @@ -104,7 +104,7 @@ func TestAccSQSQueue_DefaultProject(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()

ctx := context.Background()
ctx := t.Context()

accountAPI := accountSDK.NewProjectAPI(tt.Meta.ScwClient())
projectID := ""
Expand Down
Loading
Loading