Skip to content

Commit e2e8dfe

Browse files
committed
update sdk-go
1 parent 4ad91b7 commit e2e8dfe

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/nats-io/jwt/v2 v2.7.3
2828
github.com/nats-io/nats.go v1.38.0
2929
github.com/robfig/cron/v3 v3.0.1
30-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250425085959-ea0a849e0b26
30+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250430141548-732d26562240
3131
github.com/stretchr/testify v1.10.0
3232
golang.org/x/crypto v0.36.0
3333
gopkg.in/dnaeon/go-vcr.v3 v3.2.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
298298
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
299299
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
300300
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
301-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250425085959-ea0a849e0b26 h1:6KJ16mZbrP/ahxkbJGTCjHdJJdCJF1Hfwnw92Q5sf3I=
302-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250425085959-ea0a849e0b26/go.mod h1:w4o02EHpO0CBGy2nehzWRaFQKd62G9HIf+Q07PDaUcE=
301+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250430141548-732d26562240 h1:Knc/ScGwR83ZQ6hXg9ZxGzRu2X9PPEYcU1CrDfH3k8E=
302+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250430141548-732d26562240/go.mod h1:w4o02EHpO0CBGy2nehzWRaFQKd62G9HIf+Q07PDaUcE=
303303
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
304304
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
305305
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=

internal/services/inference/model_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestAccModel_Basic(t *testing.T) {
2626
resource.ParallelTest(t, resource.TestCase{
2727
PreCheck: func() { acctest.PreCheck(t) },
2828
ProviderFactories: tt.ProviderFactories,
29-
CheckDestroy: inferencetestfuncs.IsCustomModelDestroyed(tt),
29+
CheckDestroy: inferencetestfuncs.IsModelDestroyed(tt),
3030
Steps: []resource.TestStep{
3131
{
3232
Config: fmt.Sprintf(`
@@ -52,7 +52,7 @@ func TestAccModel_DeployModelOnServer(t *testing.T) {
5252
resource.ParallelTest(t, resource.TestCase{
5353
PreCheck: func() { acctest.PreCheck(t) },
5454
ProviderFactories: tt.ProviderFactories,
55-
CheckDestroy: inferencetestfuncs.IsCustomModelDestroyed(tt),
55+
CheckDestroy: inferencetestfuncs.IsModelDestroyed(tt),
5656
Steps: []resource.TestStep{
5757
{
5858
Config: fmt.Sprintf(`

internal/services/inference/testfuncs/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func IsDeploymentDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
4141
}
4242
}
4343

44-
func IsCustomModelDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
44+
func IsModelDestroyed(tt *acctest.TestTools) resource.TestCheckFunc {
4545
return func(s *terraform.State) error {
4646
for _, rs := range s.RootModule().Resources {
4747
if rs.Type != "scaleway_inference_model" {

internal/services/inference/waiter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func waitForModel(ctx context.Context, inferenceAPI *inference.API, region scw.R
3131
retryInterval = *transport.DefaultWaitRetryInterval
3232
}
3333

34-
model, err := inferenceAPI.WaitForCustomModel(inference.WaitForCustomModelRequest{
34+
model, err := inferenceAPI.WaitForModel(&inference.WaitForModelRequest{
3535
ModelID: id,
3636
Region: region,
3737
RetryInterval: &retryInterval,

0 commit comments

Comments
 (0)