Skip to content

Commit 4500eca

Browse files
committed
chore: make provider package public
1 parent ad603e9 commit 4500eca

13 files changed

+8
-8
lines changed

internal/acctest/acctest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"github.com/hashicorp/terraform-plugin-mux/tf6muxserver"
1212
"github.com/scaleway/terraform-provider-scaleway/v2/internal/env"
1313
"github.com/scaleway/terraform-provider-scaleway/v2/internal/meta"
14-
"github.com/scaleway/terraform-provider-scaleway/v2/internal/provider"
1514
"github.com/scaleway/terraform-provider-scaleway/v2/internal/transport"
15+
provider2 "github.com/scaleway/terraform-provider-scaleway/v2/provider"
1616
"github.com/stretchr/testify/require"
1717
)
1818

@@ -67,7 +67,7 @@ func NewTestTools(t *testing.T) *TestTools {
6767
Meta: m,
6868
ProviderFactories: map[string]func() (tfprotov6.ProviderServer, error){
6969
"scaleway": func() (tfprotov6.ProviderServer, error) {
70-
providers, errProvider := provider.NewProviderList(ctx, &provider.Config{Meta: m})
70+
providers, errProvider := provider2.NewProviderList(ctx, &provider2.Config{Meta: m})
7171
if errProvider != nil {
7272
return nil, errProvider
7373
}

internal/acctest/fixtures.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/scaleway/scaleway-sdk-go/api/account/v3"
1010
iam "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1"
1111
"github.com/scaleway/terraform-provider-scaleway/v2/internal/meta"
12-
"github.com/scaleway/terraform-provider-scaleway/v2/internal/provider"
1312
"github.com/scaleway/terraform-provider-scaleway/v2/internal/types"
13+
provider2 "github.com/scaleway/terraform-provider-scaleway/v2/provider"
1414
"github.com/stretchr/testify/require"
1515
)
1616

@@ -33,7 +33,7 @@ func FakeSideProjectProviders(ctx context.Context, tt *TestTools, project *accou
3333

3434
providers := map[string]func() (tfprotov6.ProviderServer, error){
3535
"side": func() (tfprotov6.ProviderServer, error) {
36-
providers, errProvider := provider.NewProviderList(ctx, &provider.Config{Meta: metaSide})
36+
providers, errProvider := provider2.NewProviderList(ctx, &provider2.Config{Meta: metaSide})
3737
if errProvider != nil {
3838
return nil, errProvider
3939
}

internal/services/mnq/sqs_queue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616
"github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest"
1717
"github.com/scaleway/terraform-provider-scaleway/v2/internal/httperrors"
1818
"github.com/scaleway/terraform-provider-scaleway/v2/internal/meta"
19-
"github.com/scaleway/terraform-provider-scaleway/v2/internal/provider"
2019
"github.com/scaleway/terraform-provider-scaleway/v2/internal/services/account"
2120
"github.com/scaleway/terraform-provider-scaleway/v2/internal/services/mnq"
21+
"github.com/scaleway/terraform-provider-scaleway/v2/provider"
2222
"github.com/stretchr/testify/require"
2323
)
2424

internal/services/scwconfig/scw_config_data_source_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
99
"github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest"
1010
"github.com/scaleway/terraform-provider-scaleway/v2/internal/meta"
11-
"github.com/scaleway/terraform-provider-scaleway/v2/internal/provider"
11+
"github.com/scaleway/terraform-provider-scaleway/v2/provider"
1212
"github.com/stretchr/testify/require"
1313
)
1414

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server"
99
"github.com/hashicorp/terraform-plugin-mux/tf6muxserver"
10-
"github.com/scaleway/terraform-provider-scaleway/v2/internal/provider"
10+
"github.com/scaleway/terraform-provider-scaleway/v2/provider"
1111
)
1212

1313
func main() {
File renamed without changes.
File renamed without changes.

internal/provider/provider_sdkv2_test.go renamed to provider/provider_sdkv2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"github.com/scaleway/scaleway-sdk-go/scw"
1010
"github.com/scaleway/terraform-provider-scaleway/v2/internal/acctest"
1111
"github.com/scaleway/terraform-provider-scaleway/v2/internal/meta"
12-
"github.com/scaleway/terraform-provider-scaleway/v2/internal/provider"
1312
iamchecks "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/iam/testfuncs"
1413
instancechecks "github.com/scaleway/terraform-provider-scaleway/v2/internal/services/instance/testfuncs"
14+
"github.com/scaleway/terraform-provider-scaleway/v2/provider"
1515
"github.com/stretchr/testify/require"
1616
)
1717

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)