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

Merge datasources test #312

Open
wants to merge 82 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
09ddd78
Migration to terraform-plugin-sdk-v2
outscale-toa Jan 6, 2023
485cd77
Improve access_key datasource
FredericBerot-Armand Jan 25, 2023
47e1a47
Merge access_key datasource testacc
FredericBerot-Armand Jan 25, 2023
c504426
Improve account datasource
FredericBerot-Armand Jan 25, 2023
7b1400d
Merge account datasource testacc
FredericBerot-Armand Jan 25, 2023
a8119a4
Improve api_access_policy datasource
FredericBerot-Armand Feb 2, 2023
27b6db8
Improve api_access_policy datasource testacc
FredericBerot-Armand Feb 2, 2023
6212447
Improve api_access_rule datasource
FredericBerot-Armand Feb 2, 2023
5e06809
Merge api_access_rule datasource testacc
FredericBerot-Armand Feb 2, 2023
bb10f51
Improve ca datasource
FredericBerot-Armand Feb 2, 2023
a78c25d
Merge ca datasource testacc
FredericBerot-Armand Feb 2, 2023
41d1188
Improve client_gateway datasource
FredericBerot-Armand Feb 2, 2023
69dfd10
Merge client_gateway datasource testacc
FredericBerot-Armand Feb 2, 2023
2efb103
Improve dhcp_option datasource
FredericBerot-Armand Feb 2, 2023
b1d6780
Merge dhcp_option datasource testacc
FredericBerot-Armand Feb 2, 2023
c71abea
Improve flexible_gpu datasource
FredericBerot-Armand Feb 2, 2023
e47167e
Merge flexible_gpu datasource testacc
FredericBerot-Armand Feb 2, 2023
25244de
Improve image datasource
FredericBerot-Armand Feb 2, 2023
8e56123
Merge image datasource testacc
FredericBerot-Armand Feb 2, 2023
e0de8df
Improve keypair datasource
FredericBerot-Armand Feb 2, 2023
2d8704b
Merge keypair datasource testacc
FredericBerot-Armand Feb 2, 2023
6cf5fb1
Improve load_balancer datasource
FredericBerot-Armand Feb 2, 2023
4087b3d
Merge load_balancer datasource testacc
FredericBerot-Armand Feb 2, 2023
6c10f27
Improve nat_service datasource
FredericBerot-Armand Feb 2, 2023
18c6dbe
Merge nat_service datasource testacc
FredericBerot-Armand Feb 2, 2023
afedd92
Improve image_export_task datasource
FredericBerot-Armand Feb 2, 2023
9e4c694
Merge image_export_task datasource testacc
FredericBerot-Armand Feb 2, 2023
61a830d
Improve internet_service datasource
FredericBerot-Armand Feb 2, 2023
e6e09cd
Merge internet_service datasource testacc
FredericBerot-Armand Feb 2, 2023
5630c98
Improve net_access_point datasource
FredericBerot-Armand Feb 2, 2023
b6190ee
Merge net_access_point datasource testacc
FredericBerot-Armand Feb 2, 2023
e9f0544
Improve net_peering datasource
FredericBerot-Armand Feb 2, 2023
1b700e2
Merge net_peering datasource testacc
FredericBerot-Armand Feb 2, 2023
ae61414
Improve net datasource
FredericBerot-Armand Feb 2, 2023
81acc81
Merge net datasource testacc
FredericBerot-Armand Feb 2, 2023
0d083e7
Improve nic datasource
FredericBerot-Armand Feb 2, 2023
3ad8cc6
Merge nic datasource testacc
FredericBerot-Armand Feb 2, 2023
2408588
Improve product_type datasource
FredericBerot-Armand Feb 2, 2023
2fc13a9
Merge product_type datasource testacc
FredericBerot-Armand Feb 2, 2023
bf02ce1
Improve public_ip datasource
FredericBerot-Armand Feb 2, 2023
614cae3
Merge public_ip datasource testacc
FredericBerot-Armand Feb 2, 2023
d169387
Improve quota datasource
FredericBerot-Armand Feb 2, 2023
3165795
Merge quota datasource testacc
FredericBerot-Armand Feb 2, 2023
5f615ce
Improve route_table datasource
FredericBerot-Armand Feb 2, 2023
5c7ae1b
Merge route_table datasource testacc
FredericBerot-Armand Feb 2, 2023
50b22c0
Improve security_group datasource
FredericBerot-Armand Feb 2, 2023
d120936
Merge security_group datasource testacc
FredericBerot-Armand Feb 2, 2023
8a0d1c8
Improve server_certificate datasource
FredericBerot-Armand Feb 2, 2023
4960a8f
Merge server_certificate datasource testacc
FredericBerot-Armand Feb 2, 2023
9d47ff7
Improve snapshot_export_task datasource
FredericBerot-Armand Feb 2, 2023
18830d3
Merge snapshot_export_task datasource testacc
FredericBerot-Armand Feb 2, 2023
5a2785b
Improve snapshot datasource
FredericBerot-Armand Feb 2, 2023
25fc576
Merge snapshot datasource testacc
FredericBerot-Armand Feb 2, 2023
6712e04
Improve subnet datasource
FredericBerot-Armand Feb 2, 2023
de80057
Merge subnet datasource testacc
FredericBerot-Armand Feb 2, 2023
47bf5f9
Improve tag datasource
FredericBerot-Armand Feb 2, 2023
29d9917
Merge tag datasource testacc
FredericBerot-Armand Feb 2, 2023
7ecb7a5
Improve virtual_gateway datasource
FredericBerot-Armand Feb 2, 2023
23551b2
Merge virtual_gateway datasource testacc
FredericBerot-Armand Feb 2, 2023
7635178
Improve vm datasource
FredericBerot-Armand Feb 2, 2023
9a7d278
Merge vm datasource testacc
FredericBerot-Armand Feb 2, 2023
4f1fe43
Improve volume datasource
FredericBerot-Armand Feb 2, 2023
a5b856d
Merge volume datasource testacc
FredericBerot-Armand Feb 2, 2023
0a55822
Improve vpn_connection datasource
FredericBerot-Armand Feb 2, 2023
03c8254
Merge vpn_connection datasource testacc
FredericBerot-Armand Feb 2, 2023
3267070
Improve subregions datasource
FredericBerot-Armand Feb 2, 2023
c30f45d
Improve subregions datasource testacc
FredericBerot-Armand Feb 2, 2023
9622f10
Improve vm_types datasource
FredericBerot-Armand Feb 2, 2023
998ec00
Improve vm_types datasource testacc
FredericBerot-Armand Feb 2, 2023
f4690bd
Improve net_access_point_services datasource
FredericBerot-Armand Feb 2, 2023
e8cc6cf
Improve net_access_point_services datasource testacc
FredericBerot-Armand Feb 2, 2023
2a853e8
Improve flexible_gpu_catalog datasource testacc
FredericBerot-Armand Feb 2, 2023
89549fe
Improve public_catalog datasource testacc
FredericBerot-Armand Feb 2, 2023
f0eca47
Improve vm_state datasource
FredericBerot-Armand Feb 2, 2023
4b37785
Remove vm_state datasource testacc
FredericBerot-Armand Feb 2, 2023
f3bcddc
Improve regions datasource testacc
FredericBerot-Armand Feb 2, 2023
3148b83
Improve load_balancer_listener_rule datasource
FredericBerot-Armand Feb 2, 2023
35d139d
Fix nic ressource testacc
FredericBerot-Armand Feb 2, 2023
d5e4e82
Generating certificate during testacc
FredericBerot-Armand Mar 3, 2023
e591cfc
Set filter to required in datasource
FredericBerot-Armand Mar 13, 2023
49f06df
Remove outscale_load_balancer_tags datasource
FredericBerot-Armand Mar 14, 2023
cc8447c
Fix testacc for us-east-2
FredericBerot-Armand Mar 14, 2023
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
Next Next commit
Migration to terraform-plugin-sdk-v2
  • Loading branch information
outscale-toa authored and FredericBerot-Armand committed Feb 17, 2023
commit 09ddd780420faee2198f3df67a1a223a1daf8d15
25 changes: 18 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -3,14 +3,25 @@ module github.com/terraform-providers/terraform-provider-outscale
go 1.12

require (
github.com/aws/aws-sdk-go v1.44.103
github.com/agext/levenshtein v1.2.3 // indirect
github.com/aws/aws-sdk-go v1.44.187
github.com/davecgh/go-spew v1.1.1
github.com/fatih/color v1.14.1 // indirect
github.com/go-test/deep v1.0.6
github.com/hashicorp/errwrap v1.0.0
github.com/hashicorp/terraform v0.14.0
github.com/hashicorp/terraform-plugin-sdk v1.17.2
github.com/hashicorp/errwrap v1.1.0
github.com/hashicorp/go-hclog v1.4.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.14.3 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.24.1
github.com/hashicorp/terraform-svchost v0.0.1 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/nav-inc/datetime v0.1.3
github.com/openlyinc/pointy v1.1.2
github.com/outscale/osc-sdk-go/v2 v2.12.0
github.com/spf13/cast v1.3.1
github.com/oklog/run v1.1.0 // indirect
github.com/openlyinc/pointy v1.2.0
github.com/outscale/osc-sdk-go/v2 v2.15.0
github.com/spf13/cast v1.5.0
github.com/vmihailenco/tagparser v0.1.2 // indirect
golang.org/x/crypto v0.5.0 // indirect
google.golang.org/genproto v0.0.0-20230125152338-dcaf20b6aeaa // indirect
google.golang.org/grpc v1.52.3 // indirect
)
1,203 changes: 809 additions & 394 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/hashicorp/terraform-plugin-sdk/plugin"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
"github.com/terraform-providers/terraform-provider-outscale/outscale"
)

2 changes: 1 addition & 1 deletion outscale/config.go
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/hashicorp/terraform-plugin-sdk/helper/logging"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/version"
)
8 changes: 4 additions & 4 deletions outscale/data_source_outscale_access_key.go
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ import (
"time"

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)

func dataSourceOutscaleAccessKey() *schema.Resource {
2 changes: 1 addition & 1 deletion outscale/data_source_outscale_access_key_test.go
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ package outscale
import (
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccOutscaleDataSourceAccessKey_basic(t *testing.T) {
8 changes: 4 additions & 4 deletions outscale/data_source_outscale_access_keys.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@ import (
"time"

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)

func dataSourceOutscaleAccessKeys() *schema.Resource {
2 changes: 1 addition & 1 deletion outscale/data_source_outscale_access_keys_test.go
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ package outscale
import (
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccOutscaleDataSourceAccessKeys_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_account.go
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ import (

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)

2 changes: 1 addition & 1 deletion outscale/data_source_outscale_account_test.go
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceAccount_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_accounts.go
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ import (

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)

2 changes: 1 addition & 1 deletion outscale/data_source_outscale_accounts_test.go
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceAccounts_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_api_access_policy.go
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
2 changes: 1 addition & 1 deletion outscale/data_source_outscale_api_access_policy_test.go
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceOutscaleOAPIApiAccessPolicy_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_api_access_rule.go
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import (
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
5 changes: 2 additions & 3 deletions outscale/data_source_outscale_api_access_rule_test.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,10 @@ import (
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
)

func TestAccDataOutscaleOAPIApiAccessRule_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_api_access_rules.go
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
5 changes: 2 additions & 3 deletions outscale/data_source_outscale_api_access_rules_test.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,10 @@ import (
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
)

func TestAccDataOutscaleOAPIApiAccessRules_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_ca.go
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import (
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_ca_test.go
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_cas.go
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_cas_test.go
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_client_gateway.go
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@ import (

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)

4 changes: 2 additions & 2 deletions outscale/data_source_outscale_client_gateway_test.go
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)

6 changes: 3 additions & 3 deletions outscale/data_source_outscale_client_gateways.go
Original file line number Diff line number Diff line change
@@ -6,10 +6,10 @@ import (
"time"

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleClientGateways() *schema.Resource {
2 changes: 1 addition & 1 deletion outscale/data_source_outscale_client_gateways_test.go
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ package outscale
import (
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccOutscaleClientGatewaysDatasource_basic(t *testing.T) {
5 changes: 2 additions & 3 deletions outscale/data_source_outscale_dhcp_option.go
Original file line number Diff line number Diff line change
@@ -6,11 +6,10 @@ import (
"log"
"time"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
oscgo "github.com/outscale/osc-sdk-go/v2"
"github.com/spf13/cast"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)

4 changes: 2 additions & 2 deletions outscale/data_source_outscale_dhcp_option_test.go
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccOutscaleDHCPOption_basic(t *testing.T) {
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_dhcp_options.go
Original file line number Diff line number Diff line change
@@ -6,10 +6,10 @@ import (
"time"

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleDHCPOptions() *schema.Resource {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_dhcp_options_test.go
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccOutscaleDHCPOptionsDatasource_basic(t *testing.T) {
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_flexible_gpu.go
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@ import (

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/spf13/cast"
"github.com/terraform-providers/terraform-provider-outscale/utils"
)
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_flexible_gpu_catalog.go
Original file line number Diff line number Diff line change
@@ -5,10 +5,10 @@ import (
"time"

oscgo "github.com/outscale/osc-sdk-go/v2"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-outscale/utils"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleOAPIFlexibleGpuCatalog() *schema.Resource {
2 changes: 1 addition & 1 deletion outscale/data_source_outscale_flexible_gpu_catalog_test.go
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceOutscaleOAPIFlexibleGpuCatalog_basic(t *testing.T) {
2 changes: 1 addition & 1 deletion outscale/data_source_outscale_flexible_gpu_test.go
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceOutscaleOAPIFlexibleGpu_basic(t *testing.T) {
Loading