diff --git a/README.md b/README.md index 0aa58393..9fe3d7c3 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ go_path = $(go env GOPATH)/bin ``` dev_overrides { - "registry.terraform.io/arubauxi/configuration" = "" + "registry.terraform.io/arubauxi/hpeuxi" = "" } ``` @@ -17,7 +17,7 @@ Example `~/.terraformrc` file ``` provider_installation { dev_overrides { - "registry.terraform.io/arubauxi/configuration" = "/Users//go/bin" + "registry.terraform.io/arubauxi/hpeuxi" = "/Users//go/bin" } direct {} } diff --git a/examples/full-demo/main.tf b/examples/full-demo/main.tf index 565da15c..cb16a366 100644 --- a/examples/full-demo/main.tf +++ b/examples/full-demo/main.tf @@ -1,7 +1,7 @@ terraform { required_providers { uxi = { - source = "registry.terraform.io/arubauxi/configuration" + source = "registry.terraform.io/arubauxi/hpeuxi" } } } diff --git a/go.mod b/go.mod index 56484332..c739f809 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ -module github.com/aruba-uxi/terraform-provider-configuration +module github.com/aruba-uxi/terraform-provider-hpeuxi go 1.21 toolchain go1.22.5 require ( - github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client v0.0.0-00010101000000-000000000000 + github.com/aruba-uxi/terraform-provider-hpeuxi/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/terraform-provider-configuration-api/pkg/config-api-client => ./pkg/config-api-client +replace github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client => ./pkg/config-api-client diff --git a/internal/provider/datasources/agent.go b/internal/provider/datasources/agent.go index 3fe5f954..dacabd01 100644 --- a/internal/provider/datasources/agent.go +++ b/internal/provider/datasources/agent.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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/agent_group_assignment.go b/internal/provider/datasources/agent_group_assignment.go index 32f7de49..ba21443a 100644 --- a/internal/provider/datasources/agent_group_assignment.go +++ b/internal/provider/datasources/agent_group_assignment.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 5030d44f..2d5e34b1 100644 --- a/internal/provider/datasources/group.go +++ b/internal/provider/datasources/group.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 3ed0fdf3..5f83547a 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" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 5bfff81e..9f691617 100644 --- a/internal/provider/datasources/sensor.go +++ b/internal/provider/datasources/sensor.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 493f3acd..97815de4 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" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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/service.go b/internal/provider/datasources/service.go index 14a9afa8..05a01bff 100644 --- a/internal/provider/datasources/service.go +++ b/internal/provider/datasources/service.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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/service_test_group_assignment.go b/internal/provider/datasources/service_test_group_assignment.go index 098596f4..87be6475 100644 --- a/internal/provider/datasources/service_test_group_assignment.go +++ b/internal/provider/datasources/service_test_group_assignment.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 94dd3a1a..deef592c 100644 --- a/internal/provider/datasources/wired_network.go +++ b/internal/provider/datasources/wired_network.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 d8f03c32..6ae39e2e 100644 --- a/internal/provider/datasources/wireless_network.go +++ b/internal/provider/datasources/wireless_network.go @@ -3,8 +3,8 @@ package datasources import ( "context" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 e7043150..0e3419aa 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -4,15 +4,15 @@ import ( "context" "os" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/datasources" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/datasources" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 fb7284fd..4be102d7 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" diff --git a/internal/provider/resources/agent_group_assignment.go b/internal/provider/resources/agent_group_assignment.go index 18357c69..1d8563ef 100644 --- a/internal/provider/resources/agent_group_assignment.go +++ b/internal/provider/resources/agent_group_assignment.go @@ -2,8 +2,8 @@ package resources import ( "context" - "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 2f931992..68c99019 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 5b35c0cb..3212fefe 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 bc0a2a80..705501a3 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 3db69c71..c8677363 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" - config_api_client "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 7da01377..f33474ab 100644 --- a/internal/provider/resources/service.go +++ b/internal/provider/resources/service.go @@ -2,9 +2,9 @@ package resources import ( "context" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" - "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 986ab27b..62443f83 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 ab43df3b..60bf4b4b 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 572c0b49..1c4d9f99 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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 543e8af0..85d84986 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/terraform-provider-configuration-api/pkg/config-api-client" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/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 ecb38e58..2d0a43f3 100644 --- a/internal/provider/util/group.go +++ b/internal/provider/util/group.go @@ -1,7 +1,7 @@ package util import ( - "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 215a105f..75e7628e 100644 --- a/internal/provider/util/retry.go +++ b/internal/provider/util/retry.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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 31678c28..88369bf1 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "flag" "log" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider" "github.com/hashicorp/terraform-plugin-framework/providerserver" ) @@ -28,7 +28,7 @@ func main() { flag.Parse() opts := providerserver.ServeOpts{ - Address: "registry.terraform.io/arubauxi/configuration", + Address: "registry.terraform.io/arubauxi/hpeuxi", Debug: debug, } diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index a5f70cc6..b7ca6b67 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/terraform-provider-configuration-api/pkg/config-api-client" +import config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -186,4 +186,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 a264f186..522c2d39 100644 --- a/pkg/config-api-client/docs/ConfigurationAPI.md +++ b/pkg/config-api-client/docs/ConfigurationAPI.md @@ -46,7 +46,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -77,8 +77,8 @@ Other parameters are passed through a pointer to a apiAgentGroupAssignmentsGetRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -116,11 +116,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - agentGroupAssignmentsPostRequest := *openapiclient.NewAgentGroupAssignmentsPostRequest("GroupId_example", "AgentId_example") // AgentGroupAssignmentsPostRequest | + agentGroupAssignmentsPostRequest := *openapiclient.NewAgentGroupAssignmentsPostRequest("GroupId_example", "AgentId_example") // AgentGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -145,7 +145,7 @@ Other parameters are passed through a pointer to a apiAgentGroupAssignmentsPostR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **agentGroupAssignmentsPostRequest** | [**AgentGroupAssignmentsPostRequest**](AgentGroupAssignmentsPostRequest.md) | | + **agentGroupAssignmentsPostRequest** | [**AgentGroupAssignmentsPostRequest**](AgentGroupAssignmentsPostRequest.md) | | ### Return type @@ -182,11 +182,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - agentUid := "agentUid_example" // string | + agentUid := "agentUid_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -206,7 +206,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**agentUid** | **string** | | +**agentUid** | **string** | | ### Other Parameters @@ -252,7 +252,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -283,8 +283,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 @@ -322,11 +322,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - groupUid := "groupUid_example" // string | + groupUid := "groupUid_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -346,7 +346,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupUid** | **string** | | +**groupUid** | **string** | | ### Other Parameters @@ -392,7 +392,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -423,8 +423,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 @@ -462,11 +462,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - groupUid := "groupUid_example" // string | + groupUid := "groupUid_example" // string | groupsPatchRequest := *openapiclient.NewGroupsPatchRequest("Name_example") // GroupsPatchRequest | (optional) configuration := openapiclient.NewConfiguration() @@ -487,7 +487,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupUid** | **string** | | +**groupUid** | **string** | | ### Other Parameters @@ -497,7 +497,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 @@ -534,11 +534,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/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) @@ -563,7 +563,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 @@ -600,11 +600,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - id := "id_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -624,7 +624,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | | ### Other Parameters @@ -670,7 +670,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -701,8 +701,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 @@ -740,11 +740,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/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) @@ -769,7 +769,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 @@ -806,11 +806,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - id := "id_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -830,7 +830,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | | ### Other Parameters @@ -876,7 +876,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -907,8 +907,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 @@ -946,11 +946,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/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) @@ -975,7 +975,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 @@ -1012,7 +1012,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -1043,8 +1043,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 @@ -1082,12 +1082,12 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/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) @@ -1107,7 +1107,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sensorUid** | **string** | | +**sensorUid** | **string** | | ### Other Parameters @@ -1117,7 +1117,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 @@ -1154,11 +1154,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { - id := "id_example" // string | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1178,7 +1178,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **string** | | ### Other Parameters @@ -1224,7 +1224,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -1255,8 +1255,8 @@ Other parameters are passed through a pointer to a apiServiceTestGroupAssignment Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | + **id** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -1294,11 +1294,11 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/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) @@ -1323,7 +1323,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 @@ -1360,7 +1360,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -1391,8 +1391,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 @@ -1430,7 +1430,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -1461,8 +1461,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 @@ -1500,7 +1500,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + openapiclient "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" ) func main() { @@ -1531,8 +1531,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 @@ -1551,4 +1551,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 6c5bcb61..c4418b8d 100644 --- a/pkg/config-api-client/go.mod +++ b/pkg/config-api-client/go.mod @@ -1,4 +1,4 @@ -module github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client +module github.com/aruba-uxi/terraform-provider-hpeuxi/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 86abec6e..079443a2 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/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" "github.com/h2non/gock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -13,10 +13,10 @@ import ( func TestConfigurationAPI(t *testing.T) { - configuration := openapiclient.NewConfiguration() + configuration := config_api_client.NewConfiguration() configuration.Host = "localhost:80" configuration.Scheme = "http" - apiClient := openapiclient.NewAPIClient(configuration) + apiClient := config_api_client.NewAPIClient(configuration) defer gock.Off() @@ -57,21 +57,21 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.AgentsResponse{ - Items: []openapiclient.AgentItem{ + assert.Equal(t, resp, &config_api_client.AgentsResponse{ + Items: []config_api_client.AgentItem{ { Id: "uid", Serial: "serial", Name: "name", - ModelNumber: *openapiclient.NewNullableString(&modelNumber), - WifiMacAddress: *openapiclient.NewNullableString(&wifiMacAddress), - EthernetMacAddress: *openapiclient.NewNullableString(ðernetMacAddress), - Notes: *openapiclient.NewNullableString(¬es), - PcapMode: *openapiclient.NewNullableString(&pcapMode), + ModelNumber: *config_api_client.NewNullableString(&modelNumber), + WifiMacAddress: *config_api_client.NewNullableString(&wifiMacAddress), + EthernetMacAddress: *config_api_client.NewNullableString(ðernetMacAddress), + Notes: *config_api_client.NewNullableString(¬es), + PcapMode: *config_api_client.NewNullableString(&pcapMode), Type: "networking-uxi/sensor", }, }, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), Count: 1, }) }) @@ -117,17 +117,17 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.GroupsGetResponse{ - Items: []openapiclient.GroupsGetItem{ + assert.Equal(t, resp, &config_api_client.GroupsGetResponse{ + Items: []config_api_client.GroupsGetItem{ { Id: "uid", Name: "name", - Parent: *openapiclient.NewNullableParent(openapiclient.NewParent("parent_uid")), + Parent: *config_api_client.NewNullableParent(config_api_client.NewParent("parent_uid")), Path: "root_uid.parent_uid.uid", Type: "networking-uxi/group", }, }, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), Count: 1, }) }) @@ -148,7 +148,7 @@ func TestConfigurationAPI(t *testing.T) { "path": "parent.uid.node", "type": "networking-uxi/group", }) - groupsPostRequest := openapiclient.NewGroupsPostRequest("name") + groupsPostRequest := config_api_client.NewGroupsPostRequest("name") groupsPostRequest.SetParentId("parent.uid") resp, httpRes, err := apiClient.ConfigurationAPI. GroupsPost(context.Background()). @@ -156,10 +156,10 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.GroupsPostResponse{ + assert.Equal(t, resp, &config_api_client.GroupsPostResponse{ Id: "node", Name: "name", - Parent: *openapiclient.NewParent("parent.uid"), + Parent: *config_api_client.NewParent("parent.uid"), Path: "parent.uid.node", Type: "networking-uxi/group", }) @@ -177,17 +177,17 @@ func TestConfigurationAPI(t *testing.T) { "path": "parent.uid.node", "type": "networking-uxi/group", }) - groupsPatchRequest := openapiclient.NewGroupsPatchRequest("new_name") + groupsPatchRequest := config_api_client.NewGroupsPatchRequest("new_name") resp, httpRes, err := apiClient.ConfigurationAPI. GroupsPatch(context.Background(), "node"). GroupsPatchRequest(*groupsPatchRequest).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.GroupsPatchResponse{ + assert.Equal(t, resp, &config_api_client.GroupsPatchResponse{ Id: "node", Name: "new_name", - Parent: *openapiclient.NewParent("parent.uid"), + Parent: *config_api_client.NewParent("parent.uid"), Path: "parent.uid.node", Type: "networking-uxi/group", }) @@ -249,24 +249,24 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.SensorsResponse{ - Items: []openapiclient.SensorItem{ + assert.Equal(t, resp, &config_api_client.SensorsResponse{ + Items: []config_api_client.SensorItem{ { Id: "uid", Serial: "serial", Name: "name", ModelNumber: "model_number", - WifiMacAddress: *openapiclient.NewNullableString(&WifiMacAddress), - EthernetMacAddress: *openapiclient.NewNullableString(&EthernetMacAddress), - AddressNote: *openapiclient.NewNullableString(&AddressNote), - Longitude: *openapiclient.NewNullableFloat32(&Longitude), - Latitude: *openapiclient.NewNullableFloat32(&Latitude), - Notes: *openapiclient.NewNullableString(&Notes), - PcapMode: *openapiclient.NewNullableString(&PcapMode), + WifiMacAddress: *config_api_client.NewNullableString(&WifiMacAddress), + EthernetMacAddress: *config_api_client.NewNullableString(&EthernetMacAddress), + AddressNote: *config_api_client.NewNullableString(&AddressNote), + Longitude: *config_api_client.NewNullableFloat32(&Longitude), + Latitude: *config_api_client.NewNullableFloat32(&Latitude), + Notes: *config_api_client.NewNullableString(&Notes), + PcapMode: *config_api_client.NewNullableString(&PcapMode), Type: "networking-uxi/sensor", }, }, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), Count: 1, }) }) @@ -298,10 +298,10 @@ func TestConfigurationAPI(t *testing.T) { addressNote := "new_address_note" notes := "new_notes" pcapMode := "off" - sensorsPatchRequest := openapiclient.SensorsPatchRequest{ + sensorsPatchRequest := config_api_client.SensorsPatchRequest{ Name: &name, - AddressNote: *openapiclient.NewNullableString(&addressNote), - Notes: *openapiclient.NewNullableString(¬es), + AddressNote: *config_api_client.NewNullableString(&addressNote), + Notes: *config_api_client.NewNullableString(¬es), PcapMode: &pcapMode, } resp, httpRes, err := apiClient.ConfigurationAPI. @@ -316,18 +316,18 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.SensorsPatchResponse{ + assert.Equal(t, resp, &config_api_client.SensorsPatchResponse{ Id: "uid", Serial: "serial", Name: "new_name", ModelNumber: "model_number", - WifiMacAddress: *openapiclient.NewNullableString(&wifiMacAddress), - EthernetMacAddress: *openapiclient.NewNullableString(ðernetMacAddress), - AddressNote: *openapiclient.NewNullableString(&addressNote), - Longitude: *openapiclient.NewNullableFloat32(&longitude), - Latitude: *openapiclient.NewNullableFloat32(&latitude), - Notes: *openapiclient.NewNullableString(¬es), - PcapMode: *openapiclient.NewNullableString(&pcapMode), + WifiMacAddress: *config_api_client.NewNullableString(&wifiMacAddress), + EthernetMacAddress: *config_api_client.NewNullableString(ðernetMacAddress), + AddressNote: *config_api_client.NewNullableString(&addressNote), + Longitude: *config_api_client.NewNullableFloat32(&longitude), + Latitude: *config_api_client.NewNullableFloat32(&latitude), + Notes: *config_api_client.NewNullableString(¬es), + PcapMode: *config_api_client.NewNullableString(&pcapMode), Type: "networking-uxi/sensor", }) }) @@ -359,17 +359,17 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.AgentGroupAssignmentsResponse{ - Items: []openapiclient.AgentGroupAssignmentsItem{ + assert.Equal(t, resp, &config_api_client.AgentGroupAssignmentsResponse{ + Items: []config_api_client.AgentGroupAssignmentsItem{ { Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - Agent: *openapiclient.NewAgent("agent_uid"), + Group: *config_api_client.NewGroup("group_uid"), + Agent: *config_api_client.NewAgent("agent_uid"), Type: "networking-uxi/agent-group-assignment", }, }, Count: 1, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), }) }) @@ -389,7 +389,10 @@ func TestConfigurationAPI(t *testing.T) { "type": "networking-uxi/agent-group-assignment", }) - postRequest := openapiclient.NewAgentGroupAssignmentsPostRequest("group_uid", "agent_uid") + postRequest := config_api_client.NewAgentGroupAssignmentsPostRequest( + "group_uid", + "agent_uid", + ) resp, httpRes, err := apiClient.ConfigurationAPI. AgentGroupAssignmentsPost(context.Background()). AgentGroupAssignmentsPostRequest(*postRequest). @@ -397,10 +400,10 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.AgentGroupAssignmentResponse{ + assert.Equal(t, resp, &config_api_client.AgentGroupAssignmentResponse{ Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - Agent: *openapiclient.NewAgent("agent_uid"), + Group: *config_api_client.NewGroup("group_uid"), + Agent: *config_api_client.NewAgent("agent_uid"), Type: "networking-uxi/agent-group-assignment", }) }) @@ -432,17 +435,17 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.SensorGroupAssignmentsResponse{ - Items: []openapiclient.SensorGroupAssignmentsItem{ + assert.Equal(t, resp, &config_api_client.SensorGroupAssignmentsResponse{ + Items: []config_api_client.SensorGroupAssignmentsItem{ { Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - Sensor: *openapiclient.NewSensor("sensor_uid"), + Group: *config_api_client.NewGroup("group_uid"), + Sensor: *config_api_client.NewSensor("sensor_uid"), Type: "networking-uxi/sensor-group-assignment", }, }, Count: 1, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), }) }) @@ -462,7 +465,10 @@ func TestConfigurationAPI(t *testing.T) { "type": "networking-uxi/sensor-group-assignment", }) - postRequest := openapiclient.NewSensorGroupAssignmentsPostRequest("group_uid", "sensor_uid") + postRequest := config_api_client.NewSensorGroupAssignmentsPostRequest( + "group_uid", + "sensor_uid", + ) resp, httpRes, err := apiClient.ConfigurationAPI. SensorGroupAssignmentsPost(context.Background()). SensorGroupAssignmentsPostRequest(*postRequest). @@ -470,10 +476,10 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.SensorGroupAssignmentResponse{ + assert.Equal(t, resp, &config_api_client.SensorGroupAssignmentResponse{ Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - Sensor: *openapiclient.NewSensor("sensor_uid"), + Group: *config_api_client.NewGroup("group_uid"), + Sensor: *config_api_client.NewSensor("sensor_uid"), Type: "networking-uxi/sensor-group-assignment", }) }) @@ -530,25 +536,25 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.WiredNetworksResponse{ - Items: []openapiclient.WiredNetworksItem{ + assert.Equal(t, resp, &config_api_client.WiredNetworksResponse{ + Items: []config_api_client.WiredNetworksItem{ { Id: "uid", Name: "alias", IpVersion: "ip_version", UpdatedAt: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), CreatedAt: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), - Security: *openapiclient.NewNullableString(&security), - DnsLookupDomain: *openapiclient.NewNullableString(&dnsLookupDomain), + Security: *config_api_client.NewNullableString(&security), + DnsLookupDomain: *config_api_client.NewNullableString(&dnsLookupDomain), DisableEdns: true, UseDns64: false, ExternalConnectivity: true, - VLanId: *openapiclient.NewNullableInt32(&vlanId), + VLanId: *config_api_client.NewNullableInt32(&vlanId), Type: "networking-uxi/wired-network", }, }, Count: 1, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), }) }) @@ -592,19 +598,19 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.WirelessNetworksResponse{ - Items: []openapiclient.WirelessNetworksItem{ + assert.Equal(t, resp, &config_api_client.WirelessNetworksResponse{ + Items: []config_api_client.WirelessNetworksItem{ { Id: "uid", Name: "alias", Ssid: "ssid", - Security: *openapiclient.NewNullableString(&security), + Security: *config_api_client.NewNullableString(&security), IpVersion: "ip_version", CreatedAt: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), UpdatedAt: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), Hidden: false, BandLocking: "band_locking", - DnsLookupDomain: *openapiclient.NewNullableString(&dnsLookupDomain), + DnsLookupDomain: *config_api_client.NewNullableString(&dnsLookupDomain), DisableEdns: true, UseDns64: false, ExternalConnectivity: true, @@ -612,7 +618,7 @@ func TestConfigurationAPI(t *testing.T) { }, }, Count: 1, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), }) }) @@ -643,17 +649,17 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.NetworkGroupAssignmentsResponse{ - Items: []openapiclient.NetworkGroupAssignmentsItem{ + assert.Equal(t, resp, &config_api_client.NetworkGroupAssignmentsResponse{ + Items: []config_api_client.NetworkGroupAssignmentsItem{ { Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - Network: *openapiclient.NewNetwork("network_uid"), + Group: *config_api_client.NewGroup("group_uid"), + Network: *config_api_client.NewNetwork("network_uid"), Type: "networking-uxi/network-group-assignment", }, }, Count: 1, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), }) }) @@ -673,7 +679,7 @@ func TestConfigurationAPI(t *testing.T) { "type": "networking-uxi/network-group-assignment", }) - postRequest := openapiclient.NewNetworkGroupAssignmentsPostRequest( + postRequest := config_api_client.NewNetworkGroupAssignmentsPostRequest( "group_uid", "network_uid", ) @@ -684,10 +690,10 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.NetworkGroupAssignmentsPostResponse{ + assert.Equal(t, resp, &config_api_client.NetworkGroupAssignmentsPostResponse{ Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - Network: *openapiclient.NewNetwork("network_uid"), + Group: *config_api_client.NewGroup("group_uid"), + Network: *config_api_client.NewNetwork("network_uid"), Type: "networking-uxi/network-group-assignment", }) }) @@ -732,17 +738,17 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.ServiceTestGroupAssignmentsResponse{ - Items: []openapiclient.ServiceTestGroupAssignmentsItem{ + assert.Equal(t, resp, &config_api_client.ServiceTestGroupAssignmentsResponse{ + Items: []config_api_client.ServiceTestGroupAssignmentsItem{ { Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - ServiceTest: *openapiclient.NewServiceTest("service_test_uid"), + Group: *config_api_client.NewGroup("group_uid"), + ServiceTest: *config_api_client.NewServiceTest("service_test_uid"), Type: "networking-uxi/service-test-group-assignment", }, }, Count: 1, - Next: *openapiclient.NewNullableString(nil), + Next: *config_api_client.NewNullableString(nil), }) }) @@ -762,7 +768,7 @@ func TestConfigurationAPI(t *testing.T) { "type": "networking-uxi/service-test-group-assignment", }) - postRequest := openapiclient.NewServiceTestGroupAssignmentsPostRequest( + postRequest := config_api_client.NewServiceTestGroupAssignmentsPostRequest( "group_uid", "service_test_uid", ) @@ -773,10 +779,10 @@ func TestConfigurationAPI(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.ServiceTestGroupAssignmentsPostResponse{ + assert.Equal(t, resp, &config_api_client.ServiceTestGroupAssignmentsPostResponse{ Id: "uid", - Group: *openapiclient.NewGroup("group_uid"), - ServiceTest: *openapiclient.NewServiceTest("service_test_uid"), + Group: *config_api_client.NewGroup("group_uid"), + ServiceTest: *config_api_client.NewServiceTest("service_test_uid"), Type: "networking-uxi/service-test-group-assignment", }) }) diff --git a/test/live/data-sources/agent_test.go b/test/live/data-sources/agent_test.go index e757dfa8..3ea52a34 100644 --- a/test/live/data-sources/agent_test.go +++ b/test/live/data-sources/agent_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/util" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/nbio/st" diff --git a/test/live/provider/provider.go b/test/live/provider/provider.go index 4f824e29..acfa1cfc 100644 --- a/test/live/provider/provider.go +++ b/test/live/provider/provider.go @@ -1,8 +1,8 @@ package provider import ( - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/util" "github.com/hashicorp/terraform-plugin-framework/providerserver" "github.com/hashicorp/terraform-plugin-go/tfprotov6" ) diff --git a/test/live/resources/group_test.go b/test/live/resources/group_test.go index eed4da5b..2540b06f 100644 --- a/test/live/resources/group_test.go +++ b/test/live/resources/group_test.go @@ -5,9 +5,9 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/util" "github.com/hashicorp/terraform-plugin-testing/helper/resource" ) diff --git a/test/live/resources/network_group_assignment_test.go b/test/live/resources/network_group_assignment_test.go index b57988b6..d1628c65 100644 --- a/test/live/resources/network_group_assignment_test.go +++ b/test/live/resources/network_group_assignment_test.go @@ -3,9 +3,9 @@ package resource_test import ( "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/util" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/nbio/st" ) diff --git a/test/live/resources/service_test.go b/test/live/resources/service_test.go index d737ced1..39c50aa4 100644 --- a/test/live/resources/service_test.go +++ b/test/live/resources/service_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" "regexp" "testing" diff --git a/test/live/resources/service_test_group_assignment_test.go b/test/live/resources/service_test_group_assignment_test.go index ba230885..2fdd1ebb 100644 --- a/test/live/resources/service_test_group_assignment_test.go +++ b/test/live/resources/service_test_group_assignment_test.go @@ -3,9 +3,9 @@ package resource_test import ( "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/util" "github.com/hashicorp/terraform-plugin-testing/helper/resource" "github.com/nbio/st" ) diff --git a/test/live/resources/wired_network_test.go b/test/live/resources/wired_network_test.go index db148dd8..f2dc750c 100644 --- a/test/live/resources/wired_network_test.go +++ b/test/live/resources/wired_network_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" "regexp" "testing" diff --git a/test/live/resources/wireless_network_test.go b/test/live/resources/wireless_network_test.go index 7470d01c..064977d2 100644 --- a/test/live/resources/wireless_network_test.go +++ b/test/live/resources/wireless_network_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/terraform-provider-configuration/test/live/config" - "github.com/aruba-uxi/terraform-provider-configuration/test/live/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/config" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/live/provider" "regexp" "testing" diff --git a/test/live/util/util.go b/test/live/util/util.go index 39d7bcfd..e7e1d722 100644 --- a/test/live/util/util.go +++ b/test/live/util/util.go @@ -4,7 +4,7 @@ import ( "context" "os" - "github.com/aruba-uxi/terraform-provider-configuration-api/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" ) diff --git a/test/mocked/data-sources/agent_group_assignment_test.go b/test/mocked/data-sources/agent_group_assignment_test.go index 3f686523..70af710c 100644 --- a/test/mocked/data-sources/agent_group_assignment_test.go +++ b/test/mocked/data-sources/agent_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/agent_test.go b/test/mocked/data-sources/agent_test.go index a903b99b..4a0b7e6c 100644 --- a/test/mocked/data-sources/agent_test.go +++ b/test/mocked/data-sources/agent_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/group_test.go b/test/mocked/data-sources/group_test.go index 650c0a8b..65e2bd19 100644 --- a/test/mocked/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/terraform-provider-configuration-api/pkg/config-api-client" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/network_group_assignment_test.go b/test/mocked/data-sources/network_group_assignment_test.go index 9cfe3f17..967e4471 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/sensor_group_assignment_test.go b/test/mocked/data-sources/sensor_group_assignment_test.go index b3a5212b..677b01e9 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/sensor_test.go b/test/mocked/data-sources/sensor_test.go index 19fb0033..ac6dd0c9 100644 --- a/test/mocked/data-sources/sensor_test.go +++ b/test/mocked/data-sources/sensor_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/service_test.go b/test/mocked/data-sources/service_test.go index 8af308ba..e42551e8 100644 --- a/test/mocked/data-sources/service_test.go +++ b/test/mocked/data-sources/service_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/service_test_group_assignment_test.go b/test/mocked/data-sources/service_test_group_assignment_test.go index 61ab2a1f..6c1b59da 100644 --- a/test/mocked/data-sources/service_test_group_assignment_test.go +++ b/test/mocked/data-sources/service_test_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/data-sources/wired_network_test.go b/test/mocked/data-sources/wired_network_test.go index 8b7c7661..f8d29a29 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "github.com/nbio/st" "github.com/h2non/gock" diff --git a/test/mocked/data-sources/wireless_network_test.go b/test/mocked/data-sources/wireless_network_test.go index e89e3f7d..8c652888 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "github.com/nbio/st" "github.com/h2non/gock" diff --git a/test/mocked/provider/provider.go b/test/mocked/provider/provider.go index b8c5cd1b..deacb4bb 100644 --- a/test/mocked/provider/provider.go +++ b/test/mocked/provider/provider.go @@ -1,7 +1,7 @@ package provider import ( - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider" "github.com/hashicorp/terraform-plugin-framework/providerserver" "github.com/hashicorp/terraform-plugin-go/tfprotov6" ) diff --git a/test/mocked/resources/agent_group_assignment_test.go b/test/mocked/resources/agent_group_assignment_test.go index e7145ba4..bba5316f 100644 --- a/test/mocked/resources/agent_group_assignment_test.go +++ b/test/mocked/resources/agent_group_assignment_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "testing" "github.com/h2non/gock" diff --git a/test/mocked/resources/agent_test.go b/test/mocked/resources/agent_test.go index 83e1cb3e..9d8e8c6c 100644 --- a/test/mocked/resources/agent_test.go +++ b/test/mocked/resources/agent_test.go @@ -4,9 +4,9 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/resources" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/resources/group_test.go b/test/mocked/resources/group_test.go index e2200451..b34aaa42 100644 --- a/test/mocked/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/terraform-provider-configuration-api/pkg/config-api-client" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + config_api_client "github.com/aruba-uxi/terraform-provider-hpeuxi/pkg/config-api-client" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/resources/network_group_assignment_test.go b/test/mocked/resources/network_group_assignment_test.go index b5aa2ef0..b02009a5 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/resources/sensor_group_assignment_test.go b/test/mocked/resources/sensor_group_assignment_test.go index 216b5f04..5c68b48b 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/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/mocked/resources/sensor_test.go b/test/mocked/resources/sensor_test.go index ba90ae16..be19671d 100644 --- a/test/mocked/resources/sensor_test.go +++ b/test/mocked/resources/sensor_test.go @@ -1,9 +1,9 @@ package resource_test import ( - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/resources" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "regexp" "testing" diff --git a/test/mocked/resources/service_test.go b/test/mocked/resources/service_test.go index bc71b385..6dfea62e 100644 --- a/test/mocked/resources/service_test.go +++ b/test/mocked/resources/service_test.go @@ -1,8 +1,8 @@ package resource_test import ( - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "regexp" "testing" diff --git a/test/mocked/resources/service_test_group_assignment_test.go b/test/mocked/resources/service_test_group_assignment_test.go index e75d9387..86706683 100644 --- a/test/mocked/resources/service_test_group_assignment_test.go +++ b/test/mocked/resources/service_test_group_assignment_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "github.com/h2non/gock" "github.com/hashicorp/terraform-plugin-testing/helper/resource" diff --git a/test/mocked/resources/wired_network_test.go b/test/mocked/resources/wired_network_test.go index 35231125..5422f29f 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "regexp" "testing" diff --git a/test/mocked/resources/wireless_network_test.go b/test/mocked/resources/wireless_network_test.go index a803aaf9..6b5e8cd5 100644 --- a/test/mocked/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/terraform-provider-configuration/test/mocked/provider" - "github.com/aruba-uxi/terraform-provider-configuration/test/mocked/util" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/provider" + "github.com/aruba-uxi/terraform-provider-hpeuxi/test/mocked/util" "regexp" "testing" diff --git a/test/mocked/util/utils.go b/test/mocked/util/utils.go index ed30959a..5efb754b 100644 --- a/test/mocked/util/utils.go +++ b/test/mocked/util/utils.go @@ -3,7 +3,7 @@ package util import ( "encoding/json" - "github.com/aruba-uxi/terraform-provider-configuration/internal/provider/resources" + "github.com/aruba-uxi/terraform-provider-hpeuxi/internal/provider/resources" "github.com/h2non/gock" )