Skip to content

Commit

Permalink
Merge pull request #342 from dikhan/major-version-upgrade-v3
Browse files Browse the repository at this point in the history
Major version update v3
  • Loading branch information
dikhan authored Apr 19, 2022
2 parents eca9bbd + c03dadb commit 6e56bdc
Show file tree
Hide file tree
Showing 39 changed files with 95 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
- -a
- -tags="netgo"
ldflags:
- -s -w -extldflags "-static" -X "github.com/dikhan/terraform-provider-openapi/v2/openapi/version.Version={{.Version}}" -X "github.com/dikhan/terraform-provider-openapi/v2/openapi/version.Commit={{.Commit}}" -X "github.com/dikhan/terraform-provider-openapi/v2/openapi/version.Date={{.Date}}"
- -s -w -extldflags "-static" -X "github.com/dikhan/terraform-provider-openapi/v3/openapi/version.Version={{.Version}}" -X "github.com/dikhan/terraform-provider-openapi/v3/openapi/version.Commit={{.Commit}}" -X "github.com/dikhan/terraform-provider-openapi/v3/openapi/version.Date={{.Date}}"

release:
name_template: "v{{.Version}}"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ NEW_RELEASE_VERSION_VALIDATION?=$(shell ./scripts/semver.sh $(RELEASE_TAG) $(CUR

COMMIT :=$(shell git rev-parse --verify --short HEAD)
DATE :=$(shell date +'%FT%TZ%z')
REPO=github.com/dikhan/terraform-provider-openapi/v2
REPO=github.com/dikhan/terraform-provider-openapi/v3
LDFLAGS = '-s -w -extldflags "-static" -X "$(REPO)/openapi/version.Version=$(VERSION)" -X "$(REPO)/openapi/version.Commit=$(COMMIT)" -X "$(REPO)/openapi/version.Date=$(DATE)"'

PROVIDER_NAME?=""
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# OpenAPI Terraform Provider v3.0.0 release notes

This version of the OpenAPI Terraform provider continues to integrate Terraform SDK 2.0; however there's been some non backwards
compatible changes in functionality that rendered a major upgrade.

This document describes the changes applied in the plugin.

## Terraform CLI Compatibility

Same as stated in [OpenAPI Terraform Provider v2.0.0 release notes - Terraform CLI Compatibility](https://github.com/dikhan/terraform-provider-openapi/blob/master/docs/major_version_release_notes/openapi_terraform_provider_v2.0.0.md#terraform-cli-compatibility)

## Go Compatibility

The OpenAPI Terraform Plugin is built in Go. Currently, that means Go 1.16 or later must be used when building this provider.

## What's changed?

### Version 3 of the 'github.com/dikhan/terraform-provider-openapi' Module

As part of the breaking changes, the OpenAPI Terraform Plugin SDK Go Module has been upgraded to v3. This involves changing
import paths from `github.com/dikhan/terraform-provider-openapi/v2` to `github.com/dikhan/terraform-provider-openapi/v3` for the
custom terraform providers repositories that use the `github.com/dikhan/terraform-provider-openapi/v2` as the parent. This is done
usually to leverage the OpenAPI Terraform plugin capabilities using this repo as a library that can be imported and customizing the release cycle
of the provider as well as the name etc.

### Deprecated multi-region on resource name level

As notified on the previous major release v2, this major upgrade removes support for [Multi-region on resource name level](https://github.com/dikhan/terraform-provider-openapi/blob/master/docs/major_version_release_notes/openapi_terraform_provider_v2.0.0.md#deprecation-notices).

This feature was introduced in early days of the provider to support multi-region. However, this model was not compatible
with Terraform modules since the region was attached to the resource name. Later, multi-region support was added on the provider
level as expected by Terraform enabling the provider to be used in modules and enabling users to specify the regions on the provider level.
The multi-region support on the resource name level has been still supported till now but it's time to say goodbye to features
that had some value in the past but now don't make sense and makes the code more difficult to read and maintain.

**Note:** Please note that the above only refers to the multi-region on a **resource level**. Multi-region on the **provider configuration level**
is supported and documented [here](https://github.com/dikhan/terraform-provider-openapi/blob/master/docs/how_to.md#multi-region-configuration)

### Deprecated plugin_version property from OpenAPI config file SchemaV1

The OpenAPI Terraform config file enabled the user to specify the plugin_version as a way to ensure the config is targeted
towards a specific version of the OpenAPI plugin binary. This was a feature added in early stages of the provider as a security
mechanism to validate that the expected version of the binary was being used or fail close at runtime otherwise.
This mechanism is no longer working as intended causing issues for users when they have different Terraform configurations
each pointing at different versions of the OpenAPI Terraform provider but yet the global OpenAPI Terraform plugin configuration
is set with one specific version.

## Deprecation notices

The following functionality will be deprecated in future versions of the OpenAPI Terraform Provider.
6 changes: 3 additions & 3 deletions docs/publishing_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ and the `providerOpenAPIURL` should be the URL where the service API OpenAPI doc
package main
import (
"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
"log"
Expand Down Expand Up @@ -89,13 +89,13 @@ module github.com/dikhan/terraform-provider-openapiexample
go 1.16
require (
github.com/dikhan/terraform-provider-openapi/v2 v2.0.6
github.com/dikhan/terraform-provider-openapi/v3 v2.0.6
github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.1
github.com/mattn/go-colorable v0.1.8 // indirect
)
````

Note: If you want to use a different version of the `github.com/dikhan/terraform-provider-openapi/v2` library you can update
Note: If you want to use a different version of the `github.com/dikhan/terraform-provider-openapi/v3` library you can update
the version with the commit hash you want to use (eg: a branch that has not been merged to master yet) or even alpha versions
released, etc.

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dikhan/terraform-provider-openapi/v2
module github.com/dikhan/terraform-provider-openapi/v3

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"

"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/version"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/version"
"github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
"os"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion openapi/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"reflect"
"strconv"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapierr"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapierr"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion openapi/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapierr"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapierr"
"io/ioutil"
"net/http"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"runtime"
"strings"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/version"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/version"

"github.com/dikhan/http_goclient"
)
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_spec_header.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package openapi

import "github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
import "github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"

// SpecHeaderParameters groups a list of SpecHeaderParam
type SpecHeaderParameters []SpecHeaderParam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"reflect"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_spec_security_definition_apikey_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package openapi

import (
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
)

// specAPIKeyHeaderSecurityDefinition defines a security definition. This struct serves as a translation between the OpenAPI document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package openapi

import (
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_spec_security_definition_apikey_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package openapi

import (
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
)

// specAPIKeyHeaderSecurityDefinition defines a security definition. This struct serves as a translation between the OpenAPI document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package openapi

import (
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
)

type specAPIKeyQueryBearerSecurityDefinition struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
)

type specAPIKeyHeaderRefreshTokenSecurityDefinition struct {
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_spec_security_schemes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package openapi

import "github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
import "github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"

// SpecSecuritySchemes groups a list of SpecSecurityScheme
type SpecSecuritySchemes []SpecSecurityScheme
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_stub_backend_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openapi
import (
"fmt"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapiutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapiutils"
)

type specStubBackendConfiguration struct {
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_v2_backend_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"strings"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapiutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapiutils"
"github.com/go-openapi/spec"
)

Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi_v2_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapiutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapiutils"
"github.com/go-openapi/spec"
)

Expand Down
2 changes: 1 addition & 1 deletion openapi/plugin_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openapi
import (
"bufio"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
"gopkg.in/yaml.v2"
"io"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion openapi/plugin_config_telemetry_provider_httpendpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/asaskevich/govalidator"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/version"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/version"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion openapi/provider_configuration_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openapi
import (
"bytes"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapiutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapiutils"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"hash/crc32"
)
Expand Down
4 changes: 2 additions & 2 deletions openapi/provider_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package openapi

import (
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/version"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/version"
"net/http"
"strings"
"time"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"

"log"

Expand Down
2 changes: 1 addition & 1 deletion openapi/provider_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/version"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/version"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/stretchr/testify/assert"
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion openapi/resource_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapierr"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapierr"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
Expand Down
2 changes: 1 addition & 1 deletion openapi/resource_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openapi
import (
"errors"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/openapierr"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/openapierr"
"github.com/go-openapi/spec"
"github.com/stretchr/testify/assert"
"io/ioutil"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
In order to provision 'openapi' Terraform resources, you need to first install the 'openapi'
Terraform plugin by running the following command (you must be running Terraform >= 0.12):
</p>
<pre>$ export PROVIDER_NAME=openapi && curl -fsSL https://raw.githubusercontent.com/dikhan/terraform-provider-openapi/master/scripts/install.sh | bash -s -- --provider-name $PROVIDER_NAME<br>[INFO] Downloading https://github.com/dikhan/terraform-provider-openapi/v2/releases/download/v0.29.4/terraform-provider-openapi_0.29.4_darwin_amd64.tar.gz in temporally folder /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh...<br>[INFO] Extracting terraform-provider-openapi from terraform-provider-openapi_0.29.4_darwin_amd64.tar.gz...<br>[INFO] Cleaning up tmp dir created for installation purposes: /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh<br>[INFO] Terraform provider 'terraform-provider-openapi' successfully installed at: '~/.terraform.d/plugins'!</pre>
<pre>$ export PROVIDER_NAME=openapi && curl -fsSL https://raw.githubusercontent.com/dikhan/terraform-provider-openapi/master/scripts/install.sh | bash -s -- --provider-name $PROVIDER_NAME<br>[INFO] Downloading https://github.com/dikhan/terraform-provider-openapi/v3/releases/download/v3.0.0/terraform-provider-openapi_3.0.0_darwin_amd64.tar.gz in temporally folder /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh...<br>[INFO] Extracting terraform-provider-openapi from terraform-provider-openapi_3.0.0_darwin_amd64.tar.gz...<br>[INFO] Cleaning up tmp dir created for installation purposes: /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh<br>[INFO] Terraform provider 'terraform-provider-openapi' successfully installed at: '~/.terraform.d/plugins'!</pre>
<p>
<span>You can then start running the Terraform provider:</span>
</p>
Expand Down
2 changes: 1 addition & 1 deletion pkg/terraformdocsgenerator/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/dikhan/terraform-provider-openapi/v2/pkg/terraformdocsgenerator/openapiterraformdocsgenerator"
"github.com/dikhan/terraform-provider-openapi/v3/pkg/terraformdocsgenerator/openapiterraformdocsgenerator"
"log"
"os"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openapiterraformdocsgenerator
import (
"errors"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/mitchellh/hashstructure"
"log"
"sort"
Expand Down Expand Up @@ -103,7 +103,7 @@ func (t TerraformProviderDocGenerator) GenerateDocumentation() (TerraformProvide
Hostname: t.Hostname,
PluginVersionConstraint: t.PluginVersionConstraint,
Example: fmt.Sprintf("$ export PROVIDER_NAME=%s && curl -fsSL https://raw.githubusercontent.com/dikhan/terraform-provider-openapi/master/scripts/install.sh | bash -s -- --provider-name $PROVIDER_NAME<br>"+
"[INFO] Downloading https://github.com/dikhan/terraform-provider-openapi/v2/releases/download/v0.29.4/terraform-provider-openapi_0.29.4_darwin_amd64.tar.gz in temporally folder /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh...<br>"+
"[INFO] Downloading https://github.com/dikhan/terraform-provider-openapi/v3/releases/download/v3.0.0/terraform-provider-openapi_3.0.0_darwin_amd64.tar.gz in temporally folder /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh...<br>"+
"[INFO] Extracting terraform-provider-openapi from terraform-provider-openapi_0.29.4_darwin_amd64.tar.gz...<br>"+
"[INFO] Cleaning up tmp dir created for installation purposes: /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh<br>"+
"[INFO] Terraform provider 'terraform-provider-%s' successfully installed at: '~/.terraform.d/plugins'!", t.ProviderName, t.ProviderName),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package openapiterraformdocsgenerator

import (
"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v2/openapi/terraformutils"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi/terraformutils"
)

// specAnalyserStub is a stubbed spec analyser used for testing purposes that implements the SpecAnalyser interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openapiterraformdocsgenerator
import (
"errors"
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestGenerateDocumentation(t *testing.T) {
assert.Equal(t, hostname, d.ProviderInstallation.Hostname)
assert.Equal(t, namespace, d.ProviderInstallation.Namespace)
expectedProviderInstallExample := fmt.Sprintf("$ export PROVIDER_NAME=%s && curl -fsSL https://raw.githubusercontent.com/dikhan/terraform-provider-openapi/master/scripts/install.sh | bash -s -- --provider-name $PROVIDER_NAME<br>"+
"[INFO] Downloading https://github.com/dikhan/terraform-provider-openapi/v2/releases/download/v0.29.4/terraform-provider-openapi_0.29.4_darwin_amd64.tar.gz in temporally folder /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh...<br>"+
"[INFO] Downloading https://github.com/dikhan/terraform-provider-openapi/v3/releases/download/v3.0.0/terraform-provider-openapi_3.0.0_darwin_amd64.tar.gz in temporally folder /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh...<br>"+
"[INFO] Extracting terraform-provider-openapi from terraform-provider-openapi_0.29.4_darwin_amd64.tar.gz...<br>"+
"[INFO] Cleaning up tmp dir created for installation purposes: /var/folders/n_/1lrwb99s7f50xmn9jpmfnddh0000gp/T/tmp.Xv1AkIZh<br>"+
"[INFO] Terraform provider 'terraform-provider-%s' successfully installed at: '~/.terraform.d/plugins'!", providerName, providerName)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/gray_box_cdns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

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

"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/gray_box_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http/httptest"
"testing"

"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/provider_plugin_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package e2e

import (
"fmt"
"github.com/dikhan/terraform-provider-openapi/v2/openapi"
"github.com/dikhan/terraform-provider-openapi/v3/openapi"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/stretchr/testify/assert"
Expand Down
Loading

0 comments on commit 6e56bdc

Please sign in to comment.