From 4636d7a7bab8287fdb6a6ca68315c81a021f7d28 Mon Sep 17 00:00:00 2001 From: 1riatsila1 Date: Tue, 5 Nov 2024 10:41:11 +0400 Subject: [PATCH] fix: align with github renaming --- Justfile | 15 ++- go.mod | 6 +- internal/provider/datasources/agent.go | 4 +- internal/provider/datasources/group.go | 4 +- .../datasources/network_group_assignment.go | 4 +- internal/provider/datasources/sensor.go | 4 +- .../datasources/sensor_group_assignment.go | 4 +- .../provider/datasources/wired_network.go | 4 +- .../provider/datasources/wireless_network.go | 4 +- internal/provider/provider.go | 6 +- internal/provider/resources/agent.go | 4 +- internal/provider/resources/group.go | 4 +- .../resources/network_group_assignment.go | 4 +- internal/provider/resources/sensor.go | 4 +- .../resources/sensor_group_assignment.go | 4 +- internal/provider/resources/service.go | 2 +- .../resources/service_group_assignment.go | 4 +- internal/provider/resources/wired_network.go | 4 +- .../provider/resources/wireless_network.go | 4 +- internal/provider/util/error_handling.go | 2 +- internal/provider/util/group.go | 2 +- internal/provider/util/retry.go | 2 +- main.go | 2 +- pkg/config-api-client/README.md | 3 +- .../docs/ConfigurationAPI.md | 121 +++++++++--------- pkg/config-api-client/go.mod | 2 +- .../test/api_configuration_test.go | 2 +- test/{ => mocked}/data-sources/agent_test.go | 4 +- test/{ => mocked}/data-sources/group_test.go | 6 +- .../network_group_assignment_test.go | 4 +- .../sensor_group_assignment_test.go | 4 +- test/{ => mocked}/data-sources/sensor_test.go | 4 +- .../data-sources/wired_network_test.go | 4 +- .../data-sources/wireless_network_test.go | 4 +- test/{ => mocked}/provider/provider.go | 2 +- .../resources/agent_group_assignment_test.go | 6 +- test/{ => mocked}/resources/agent_test.go | 4 +- test/{ => mocked}/resources/group_test.go | 6 +- .../network_group_assignment_test.go | 4 +- .../resources/sensor_group_assignment_test.go | 4 +- test/{ => mocked}/resources/sensor_test.go | 4 +- test/{ => mocked}/resources/service_test.go | 6 +- .../service_test_group_assignment_test.go | 8 +- .../resources/wired_network_test.go | 4 +- .../resources/wireless_network_test.go | 4 +- test/{ => mocked}/util/utils.go | 4 +- 46 files changed, 160 insertions(+), 151 deletions(-) rename test/{ => mocked}/data-sources/agent_test.go (95%) rename test/{ => mocked}/data-sources/group_test.go (94%) rename test/{ => mocked}/data-sources/network_group_assignment_test.go (96%) rename test/{ => mocked}/data-sources/sensor_group_assignment_test.go (96%) rename test/{ => mocked}/data-sources/sensor_test.go (95%) rename test/{ => mocked}/data-sources/wired_network_test.go (96%) rename test/{ => mocked}/data-sources/wireless_network_test.go (97%) rename test/{ => mocked}/provider/provider.go (92%) rename test/{ => mocked}/resources/agent_group_assignment_test.go (97%) rename test/{ => mocked}/resources/agent_test.go (98%) rename test/{ => mocked}/resources/group_test.go (98%) rename test/{ => mocked}/resources/network_group_assignment_test.go (99%) rename test/{ => mocked}/resources/sensor_group_assignment_test.go (99%) rename test/{ => mocked}/resources/sensor_test.go (97%) rename test/{ => mocked}/resources/service_test.go (92%) rename test/{ => mocked}/resources/service_test_group_assignment_test.go (97%) rename test/{ => mocked}/resources/wired_network_test.go (96%) rename test/{ => mocked}/resources/wireless_network_test.go (97%) rename test/{ => mocked}/util/utils.go (98%) diff --git a/Justfile b/Justfile index 635eecdc..55cbdb26 100644 --- a/Justfile +++ b/Justfile @@ -23,7 +23,7 @@ generate-config-api-client: retrieve-config-api-openapi-spec --output /local/{{ CONFIG_API_CLIENT_DIR }} \ --package-name config_api_client \ --git-user-id aruba-uxi \ - --git-repo-id configuration-api-terraform-provider/{{ CONFIG_API_CLIENT_DIR }} \ + --git-repo-id terraform-provider-configuration-api/{{ CONFIG_API_CLIENT_DIR }} \ --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=configuration just tidy-client just fmt-client @@ -72,7 +72,7 @@ tidy-provider: cd {{ CONFIG_API_PROVIDER_DIR }} go mod tidy test-provider +ARGS='': - cd {{ CONFIG_API_PROVIDER_DIR }} && TF_ACC=1 go test -v ./... -race -covermode=atomic -coverprofile=.coverage {{ ARGS }} + cd {{ CONFIG_API_PROVIDER_DIR }} && TF_ACC=1 go test -v ./test/mocked/... -race -covermode=atomic -coverprofile=.coverage {{ ARGS }} generate-provider-docs: cd {{ TOOLS_PROVIDER_DIR }} && go run github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs generate --provider-dir ../{{ CONFIG_API_PROVIDER_DIR }} --provider-name uxi @@ -87,6 +87,17 @@ coverage-provider: tidy-tools: cd {{ TOOLS_PROVIDER_DIR }} && go mod tidy +acceptance-tests +ARGS='': + #!/usr/bin/env bash + + read -p "This is going to run requests against UXI backend. Continue (y/Y)? " -n 1 -r + echo + if [[ $REPLY =~ ^[Yy]$ ]] + then + TF_ACC=1 go test -v ./test/live/... -race -covermode=atomic -coverprofile=.coverage {{ ARGS }} + fi + + test +ARGS='': just test-client {{ ARGS }} just test-provider {{ ARGS }} diff --git a/go.mod b/go.mod index dc0fd089..35303e84 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ -module github.com/aruba-uxi/configuration-api-terraform-provider +module github.com/aruba-uxi/terraform-provider-configuration-api go 1.21 toolchain go1.22.5 require ( - github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client v0.0.0-00010101000000-000000000000 + github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client v0.0.0-00010101000000-000000000000 github.com/h2non/gock v1.2.0 github.com/hashicorp/terraform-plugin-framework v1.10.0 github.com/hashicorp/terraform-plugin-go v0.23.0 @@ -68,4 +68,4 @@ require ( google.golang.org/protobuf v1.34.0 // indirect ) -replace github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client => ./pkg/config-api-client +replace github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client => ./pkg/config-api-client diff --git a/internal/provider/datasources/agent.go b/internal/provider/datasources/agent.go index 0ed9666f..f559616e 100644 --- a/internal/provider/datasources/agent.go +++ b/internal/provider/datasources/agent.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/datasources/group.go b/internal/provider/datasources/group.go index 00656c4a..53b7752f 100644 --- a/internal/provider/datasources/group.go +++ b/internal/provider/datasources/group.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/datasources/network_group_assignment.go b/internal/provider/datasources/network_group_assignment.go index fa2c8528..2b6e5684 100644 --- a/internal/provider/datasources/network_group_assignment.go +++ b/internal/provider/datasources/network_group_assignment.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/datasources/sensor.go b/internal/provider/datasources/sensor.go index cdaf419d..a5f23abe 100644 --- a/internal/provider/datasources/sensor.go +++ b/internal/provider/datasources/sensor.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/datasources/sensor_group_assignment.go b/internal/provider/datasources/sensor_group_assignment.go index f4a2f9de..6071d2ac 100644 --- a/internal/provider/datasources/sensor_group_assignment.go +++ b/internal/provider/datasources/sensor_group_assignment.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/datasources/wired_network.go b/internal/provider/datasources/wired_network.go index f00a664f..5c6c5d31 100644 --- a/internal/provider/datasources/wired_network.go +++ b/internal/provider/datasources/wired_network.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/datasources/wireless_network.go b/internal/provider/datasources/wireless_network.go index 42db0ac5..0171800a 100644 --- a/internal/provider/datasources/wireless_network.go +++ b/internal/provider/datasources/wireless_network.go @@ -3,8 +3,8 @@ package datasources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/types" diff --git a/internal/provider/provider.go b/internal/provider/provider.go index ec13ccd5..144fa6b9 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -4,15 +4,15 @@ import ( "context" "os" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/datasources" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/datasources" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/resources" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/provider" "github.com/hashicorp/terraform-plugin-framework/provider/schema" "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/types" "net/http" diff --git a/internal/provider/resources/agent.go b/internal/provider/resources/agent.go index 97dd19a3..d18bb019 100644 --- a/internal/provider/resources/agent.go +++ b/internal/provider/resources/agent.go @@ -3,8 +3,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/resources/group.go b/internal/provider/resources/group.go index e880286f..bcbb48b4 100644 --- a/internal/provider/resources/group.go +++ b/internal/provider/resources/group.go @@ -3,8 +3,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/resources/network_group_assignment.go b/internal/provider/resources/network_group_assignment.go index 51778fd7..56458cb4 100644 --- a/internal/provider/resources/network_group_assignment.go +++ b/internal/provider/resources/network_group_assignment.go @@ -2,8 +2,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/resources/sensor.go b/internal/provider/resources/sensor.go index 83f2fc5e..f41fc0f4 100644 --- a/internal/provider/resources/sensor.go +++ b/internal/provider/resources/sensor.go @@ -2,8 +2,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/resources/sensor_group_assignment.go b/internal/provider/resources/sensor_group_assignment.go index 838a23a8..8d6d6531 100644 --- a/internal/provider/resources/sensor_group_assignment.go +++ b/internal/provider/resources/sensor_group_assignment.go @@ -3,8 +3,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/internal/provider/resources/service.go b/internal/provider/resources/service.go index 120dc5e8..c2224c8f 100644 --- a/internal/provider/resources/service.go +++ b/internal/provider/resources/service.go @@ -3,7 +3,7 @@ package resources import ( "context" - // "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + // "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/internal/provider/resources/service_group_assignment.go b/internal/provider/resources/service_group_assignment.go index 69d96491..77a8a879 100644 --- a/internal/provider/resources/service_group_assignment.go +++ b/internal/provider/resources/service_group_assignment.go @@ -2,8 +2,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/resources/wired_network.go b/internal/provider/resources/wired_network.go index ee13df30..2078ce01 100644 --- a/internal/provider/resources/wired_network.go +++ b/internal/provider/resources/wired_network.go @@ -3,8 +3,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/internal/provider/resources/wireless_network.go b/internal/provider/resources/wireless_network.go index 3cd0329f..7cccb3f4 100644 --- a/internal/provider/resources/wireless_network.go +++ b/internal/provider/resources/wireless_network.go @@ -3,8 +3,8 @@ package resources import ( "context" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" diff --git a/internal/provider/util/error_handling.go b/internal/provider/util/error_handling.go index 6d155c97..543e8af0 100644 --- a/internal/provider/util/error_handling.go +++ b/internal/provider/util/error_handling.go @@ -6,7 +6,7 @@ import ( "net/http" "net/url" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func GenerateErrorSummary(actionName string, entityName string) string { diff --git a/internal/provider/util/group.go b/internal/provider/util/group.go index 94b8387e..ecb38e58 100644 --- a/internal/provider/util/group.go +++ b/internal/provider/util/group.go @@ -1,7 +1,7 @@ package util import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func IsRoot(group config_api_client.GroupsGetItem) bool { diff --git a/internal/provider/util/retry.go b/internal/provider/util/retry.go index 8147578c..75527288 100644 --- a/internal/provider/util/retry.go +++ b/internal/provider/util/retry.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/config" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/config" ) func RetryFor429[T any](f func() (T, *http.Response, error)) (T, *http.Response, error) { diff --git a/main.go b/main.go index f6021808..e0592906 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "flag" "log" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider" "github.com/hashicorp/terraform-plugin-framework/providerserver" ) diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index 066edfda..69d77f98 100644 --- a/pkg/config-api-client/README.md +++ b/pkg/config-api-client/README.md @@ -23,7 +23,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```go -import config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" +import config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -176,4 +176,3 @@ Each of these functions takes a value of the given basic type and returns a poin ## Author support@capenetworks.com - diff --git a/pkg/config-api-client/docs/ConfigurationAPI.md b/pkg/config-api-client/docs/ConfigurationAPI.md index ba9d2be4..0a1ce70a 100644 --- a/pkg/config-api-client/docs/ConfigurationAPI.md +++ b/pkg/config-api-client/docs/ConfigurationAPI.md @@ -43,11 +43,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - agentUid := "agentUid_example" // string | + agentUid := "agentUid_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -67,7 +67,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**agentUid** | **string** | | +**agentUid** | **string** | | ### Other Parameters @@ -113,7 +113,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -144,8 +144,8 @@ Other parameters are passed through a pointer to a apiAgentsGetRequest struct vi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -183,11 +183,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - groupUid := "groupUid_example" // string | + groupUid := "groupUid_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -207,7 +207,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupUid** | **string** | | +**groupUid** | **string** | | ### Other Parameters @@ -253,7 +253,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -284,8 +284,8 @@ Other parameters are passed through a pointer to a apiGroupsGetRequest struct vi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -323,11 +323,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - groupUid := "groupUid_example" // string | + groupUid := "groupUid_example" // string | groupsPatchRequest := *openapiclient.NewGroupsPatchRequest("Name_example") // GroupsPatchRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -348,7 +348,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupUid** | **string** | | +**groupUid** | **string** | | ### Other Parameters @@ -358,7 +358,7 @@ Other parameters are passed through a pointer to a apiGroupsPatchRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **groupsPatchRequest** | [**GroupsPatchRequest**](GroupsPatchRequest.md) | | + **groupsPatchRequest** | [**GroupsPatchRequest**](GroupsPatchRequest.md) | | ### Return type @@ -395,11 +395,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - groupsPostRequest := *openapiclient.NewGroupsPostRequest("Name_example") // GroupsPostRequest | + groupsPostRequest := *openapiclient.NewGroupsPostRequest("Name_example") // GroupsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -424,7 +424,7 @@ Other parameters are passed through a pointer to a apiGroupsPostRequest struct v Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **groupsPostRequest** | [**GroupsPostRequest**](GroupsPostRequest.md) | | + **groupsPostRequest** | [**GroupsPostRequest**](GroupsPostRequest.md) | | ### Return type @@ -461,11 +461,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - id := "id_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -485,7 +485,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | | ### Other Parameters @@ -531,7 +531,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -562,8 +562,8 @@ Other parameters are passed through a pointer to a apiNetworkGroupAssignmentsGet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -601,11 +601,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - networkGroupAssignmentsPostRequest := *openapiclient.NewNetworkGroupAssignmentsPostRequest("GroupId_example", "NetworkId_example") // NetworkGroupAssignmentsPostRequest | + networkGroupAssignmentsPostRequest := *openapiclient.NewNetworkGroupAssignmentsPostRequest("GroupId_example", "NetworkId_example") // NetworkGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -630,7 +630,7 @@ Other parameters are passed through a pointer to a apiNetworkGroupAssignmentsPos Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **networkGroupAssignmentsPostRequest** | [**NetworkGroupAssignmentsPostRequest**](NetworkGroupAssignmentsPostRequest.md) | | + **networkGroupAssignmentsPostRequest** | [**NetworkGroupAssignmentsPostRequest**](NetworkGroupAssignmentsPostRequest.md) | | ### Return type @@ -667,11 +667,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - id := "id_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -691,7 +691,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | | ### Other Parameters @@ -737,7 +737,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -768,8 +768,8 @@ Other parameters are passed through a pointer to a apiSensorGroupAssignmentsGetR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -807,11 +807,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - sensorGroupAssignmentsPostRequest := *openapiclient.NewSensorGroupAssignmentsPostRequest("GroupId_example", "SensorId_example") // SensorGroupAssignmentsPostRequest | + sensorGroupAssignmentsPostRequest := *openapiclient.NewSensorGroupAssignmentsPostRequest("GroupId_example", "SensorId_example") // SensorGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -836,7 +836,7 @@ Other parameters are passed through a pointer to a apiSensorGroupAssignmentsPost Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sensorGroupAssignmentsPostRequest** | [**SensorGroupAssignmentsPostRequest**](SensorGroupAssignmentsPostRequest.md) | | + **sensorGroupAssignmentsPostRequest** | [**SensorGroupAssignmentsPostRequest**](SensorGroupAssignmentsPostRequest.md) | | ### Return type @@ -873,7 +873,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -904,8 +904,8 @@ Other parameters are passed through a pointer to a apiSensorsGetRequest struct v Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -943,12 +943,12 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - sensorUid := "sensorUid_example" // string | - sensorsPatchRequest := *openapiclient.NewSensorsPatchRequest() // SensorsPatchRequest | + sensorUid := "sensorUid_example" // string | + sensorsPatchRequest := *openapiclient.NewSensorsPatchRequest() // SensorsPatchRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -968,7 +968,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sensorUid** | **string** | | +**sensorUid** | **string** | | ### Other Parameters @@ -978,7 +978,7 @@ Other parameters are passed through a pointer to a apiSensorsPatchRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sensorsPatchRequest** | [**SensorsPatchRequest**](SensorsPatchRequest.md) | | + **sensorsPatchRequest** | [**SensorsPatchRequest**](SensorsPatchRequest.md) | | ### Return type @@ -1015,11 +1015,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - id := "id_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1039,7 +1039,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | | ### Other Parameters @@ -1085,11 +1085,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { - serviceTestGroupAssignmentsPostRequest := *openapiclient.NewServiceTestGroupAssignmentsPostRequest("GroupId_example", "ServiceTestId_example") // ServiceTestGroupAssignmentsPostRequest | + serviceTestGroupAssignmentsPostRequest := *openapiclient.NewServiceTestGroupAssignmentsPostRequest("GroupId_example", "ServiceTestId_example") // ServiceTestGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1114,7 +1114,7 @@ Other parameters are passed through a pointer to a apiServiceTestGroupAssignment Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **serviceTestGroupAssignmentsPostRequest** | [**ServiceTestGroupAssignmentsPostRequest**](ServiceTestGroupAssignmentsPostRequest.md) | | + **serviceTestGroupAssignmentsPostRequest** | [**ServiceTestGroupAssignmentsPostRequest**](ServiceTestGroupAssignmentsPostRequest.md) | | ### Return type @@ -1151,7 +1151,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -1182,8 +1182,8 @@ Other parameters are passed through a pointer to a apiServiceTestsGetRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -1221,7 +1221,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -1252,8 +1252,8 @@ Other parameters are passed through a pointer to a apiWiredNetworksGetRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -1291,7 +1291,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" ) func main() { @@ -1322,8 +1322,8 @@ Other parameters are passed through a pointer to a apiWirelessNetworksGetRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -1342,4 +1342,3 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/pkg/config-api-client/go.mod b/pkg/config-api-client/go.mod index 0979bfc8..6c5bcb61 100644 --- a/pkg/config-api-client/go.mod +++ b/pkg/config-api-client/go.mod @@ -1,4 +1,4 @@ -module github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client +module github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client go 1.18 diff --git a/pkg/config-api-client/test/api_configuration_test.go b/pkg/config-api-client/test/api_configuration_test.go index b2ad6f84..430490e7 100644 --- a/pkg/config-api-client/test/api_configuration_test.go +++ b/pkg/config-api-client/test/api_configuration_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "github.com/h2non/gock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/test/data-sources/agent_test.go b/test/mocked/data-sources/agent_test.go similarity index 95% rename from test/data-sources/agent_test.go rename to test/mocked/data-sources/agent_test.go index 6fcf5582..92f5bd3f 100644 --- a/test/data-sources/agent_test.go +++ b/test/mocked/data-sources/agent_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/data-sources/group_test.go b/test/mocked/data-sources/group_test.go similarity index 94% rename from test/data-sources/group_test.go rename to test/mocked/data-sources/group_test.go index a440ca56..cd0ccfac 100644 --- a/test/data-sources/group_test.go +++ b/test/mocked/data-sources/group_test.go @@ -1,12 +1,12 @@ package data_source_test import ( - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/data-sources/network_group_assignment_test.go b/test/mocked/data-sources/network_group_assignment_test.go similarity index 96% rename from test/data-sources/network_group_assignment_test.go rename to test/mocked/data-sources/network_group_assignment_test.go index 3fcfb560..2ce603ed 100644 --- a/test/data-sources/network_group_assignment_test.go +++ b/test/mocked/data-sources/network_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/data-sources/sensor_group_assignment_test.go b/test/mocked/data-sources/sensor_group_assignment_test.go similarity index 96% rename from test/data-sources/sensor_group_assignment_test.go rename to test/mocked/data-sources/sensor_group_assignment_test.go index 708fd9bf..a0d9c117 100644 --- a/test/data-sources/sensor_group_assignment_test.go +++ b/test/mocked/data-sources/sensor_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/data-sources/sensor_test.go b/test/mocked/data-sources/sensor_test.go similarity index 95% rename from test/data-sources/sensor_test.go rename to test/mocked/data-sources/sensor_test.go index b95f5627..986956ad 100644 --- a/test/data-sources/sensor_test.go +++ b/test/mocked/data-sources/sensor_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/data-sources/wired_network_test.go b/test/mocked/data-sources/wired_network_test.go similarity index 96% rename from test/data-sources/wired_network_test.go rename to test/mocked/data-sources/wired_network_test.go index 8163d500..65f4a9c9 100644 --- a/test/data-sources/wired_network_test.go +++ b/test/mocked/data-sources/wired_network_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/nbio/st" "github.com/h2non/gock" diff --git a/test/data-sources/wireless_network_test.go b/test/mocked/data-sources/wireless_network_test.go similarity index 97% rename from test/data-sources/wireless_network_test.go rename to test/mocked/data-sources/wireless_network_test.go index 636e2fcb..2b581b60 100644 --- a/test/data-sources/wireless_network_test.go +++ b/test/mocked/data-sources/wireless_network_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/nbio/st" "github.com/h2non/gock" diff --git a/test/provider/provider.go b/test/mocked/provider/provider.go similarity index 92% rename from test/provider/provider.go rename to test/mocked/provider/provider.go index da07a5e6..a91daa49 100644 --- a/test/provider/provider.go +++ b/test/mocked/provider/provider.go @@ -1,7 +1,7 @@ package provider import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider" "github.com/hashicorp/terraform-plugin-framework/providerserver" "github.com/hashicorp/terraform-plugin-go/tfprotov6" ) diff --git a/test/resources/agent_group_assignment_test.go b/test/mocked/resources/agent_group_assignment_test.go similarity index 97% rename from test/resources/agent_group_assignment_test.go rename to test/mocked/resources/agent_group_assignment_test.go index f9de4b77..f07a4c8b 100644 --- a/test/resources/agent_group_assignment_test.go +++ b/test/mocked/resources/agent_group_assignment_test.go @@ -1,11 +1,11 @@ package resource_test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/resources" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/test/resources/agent_test.go b/test/mocked/resources/agent_test.go similarity index 98% rename from test/resources/agent_test.go rename to test/mocked/resources/agent_test.go index dc36ee1e..f62f5203 100644 --- a/test/resources/agent_test.go +++ b/test/mocked/resources/agent_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/resources/group_test.go b/test/mocked/resources/group_test.go similarity index 98% rename from test/resources/group_test.go rename to test/mocked/resources/group_test.go index c49c62e2..c00c41f3 100644 --- a/test/resources/group_test.go +++ b/test/mocked/resources/group_test.go @@ -4,9 +4,9 @@ import ( "regexp" "testing" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/resources/network_group_assignment_test.go b/test/mocked/resources/network_group_assignment_test.go similarity index 99% rename from test/resources/network_group_assignment_test.go rename to test/mocked/resources/network_group_assignment_test.go index b1e87b01..6ccd0b69 100644 --- a/test/resources/network_group_assignment_test.go +++ b/test/mocked/resources/network_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/resources/sensor_group_assignment_test.go b/test/mocked/resources/sensor_group_assignment_test.go similarity index 99% rename from test/resources/sensor_group_assignment_test.go rename to test/mocked/resources/sensor_group_assignment_test.go index 5603ddc6..290774e7 100644 --- a/test/resources/sensor_group_assignment_test.go +++ b/test/mocked/resources/sensor_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/resources/sensor_test.go b/test/mocked/resources/sensor_test.go similarity index 97% rename from test/resources/sensor_test.go rename to test/mocked/resources/sensor_test.go index f15ef9ef..de87b615 100644 --- a/test/resources/sensor_test.go +++ b/test/mocked/resources/sensor_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "regexp" "testing" diff --git a/test/resources/service_test.go b/test/mocked/resources/service_test.go similarity index 92% rename from test/resources/service_test.go rename to test/mocked/resources/service_test.go index 0a39e6b0..787043af 100644 --- a/test/resources/service_test.go +++ b/test/mocked/resources/service_test.go @@ -1,12 +1,12 @@ package resource_test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "regexp" "testing" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/resources" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/tfversion" diff --git a/test/resources/service_test_group_assignment_test.go b/test/mocked/resources/service_test_group_assignment_test.go similarity index 97% rename from test/resources/service_test_group_assignment_test.go rename to test/mocked/resources/service_test_group_assignment_test.go index b4c92fd8..ed3a7319 100644 --- a/test/resources/service_test_group_assignment_test.go +++ b/test/mocked/resources/service_test_group_assignment_test.go @@ -4,11 +4,11 @@ import ( "regexp" "testing" - config_api_client "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/resources" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/hashicorp/terraform-plugin-testing/terraform" diff --git a/test/resources/wired_network_test.go b/test/mocked/resources/wired_network_test.go similarity index 96% rename from test/resources/wired_network_test.go rename to test/mocked/resources/wired_network_test.go index 79d81873..fde223d3 100644 --- a/test/resources/wired_network_test.go +++ b/test/mocked/resources/wired_network_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "regexp" "testing" diff --git a/test/resources/wireless_network_test.go b/test/mocked/resources/wireless_network_test.go similarity index 97% rename from test/resources/wireless_network_test.go rename to test/mocked/resources/wireless_network_test.go index c1e7fd9c..81c0a38c 100644 --- a/test/resources/wireless_network_test.go +++ b/test/mocked/resources/wireless_network_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/configuration-api-terraform-provider/test/provider" - "github.com/aruba-uxi/configuration-api-terraform-provider/test/util" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-configuration-api/test/mocked/util" "regexp" "testing" diff --git a/test/util/utils.go b/test/mocked/util/utils.go similarity index 98% rename from test/util/utils.go rename to test/mocked/util/utils.go index edde3e12..1291ce97 100644 --- a/test/util/utils.go +++ b/test/mocked/util/utils.go @@ -2,9 +2,9 @@ package util import ( "encoding/json" - "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/configuration-api-terraform-provider/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-configuration-api/internal/provider/resources" "github.com/h2non/gock" )