Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #308 from articulate/chore/update-to-latest-sdk
Browse files Browse the repository at this point in the history
Updating to latest separate Terraform SDK
  • Loading branch information
quantumew authored Oct 23, 2019
2 parents 7fa2ff0 + 9eaa876 commit 07b53c5
Show file tree
Hide file tree
Showing 677 changed files with 2,784 additions and 17,034 deletions.
11 changes: 1 addition & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ module github.com/articulate/terraform-provider-okta
go 1.12

require (
cloud.google.com/go v0.45.1 // indirect
github.com/apparentlymart/go-cidr v1.0.1 // indirect
github.com/articulate/oktasdk-go v0.0.0-20190417182045-e41ed7befc56
github.com/aws/aws-sdk-go v1.23.16 // indirect
github.com/beevik/etree v1.1.0 // indirect
Expand All @@ -13,23 +11,17 @@ require (
github.com/crewjam/saml v0.0.0-20180831135026-ebc5f787b786
github.com/google/go-cmp v0.3.1 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1
github.com/hashicorp/go-plugin v1.0.1 // indirect
github.com/hashicorp/go-version v1.2.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect
github.com/hashicorp/terraform v0.12.8
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
github.com/hashicorp/terraform-plugin-sdk v1.1.1
github.com/kelseyhightower/envconfig v1.4.0 // indirect
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.9 // indirect
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/okta/okta-sdk-golang v0.1.0
github.com/peterhellberg/link v1.0.0
github.com/russellhaering/goxmldsig v0.0.0-20180430223755-7acd5e4a6ef7 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/ulikunitz/xz v0.5.6 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/zclconf/go-cty v1.1.0 // indirect
go.opencensus.io v0.22.1 // indirect
golang.org/x/crypto v0.0.0-20190829043050-9756ffdc2472 // indirect
golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 // indirect
Expand All @@ -38,7 +30,6 @@ require (
google.golang.org/api v0.10.0 // indirect
google.golang.org/appengine v1.6.2 // indirect
google.golang.org/genproto v0.0.0-20190905072037-92dd089d5514 // indirect
google.golang.org/grpc v1.23.0 // indirect
)

replace github.com/okta/okta-sdk-golang => github.com/articulate/okta-sdk-golang v1.1.1
76 changes: 12 additions & 64 deletions go.sum

Large diffs are not rendered by default.

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

import (
"github.com/articulate/terraform-provider-okta/okta"
"github.com/hashicorp/terraform/plugin"
"github.com/hashicorp/terraform-plugin-sdk/plugin"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions okta/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"sync"

"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
"github.com/okta/okta-sdk-golang/okta"
"github.com/okta/okta-sdk-golang/okta/query"
)
Expand Down
2 changes: 1 addition & 1 deletion okta/app_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/okta/okta-sdk-golang/okta"
"github.com/okta/okta-sdk-golang/okta/query"
)
Expand Down
2 changes: 1 addition & 1 deletion okta/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

articulateOkta "github.com/articulate/oktasdk-go/okta"
"github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/terraform/helper/logging"
"github.com/hashicorp/terraform-plugin-sdk/helper/logging"
"github.com/okta/okta-sdk-golang/okta"
)

Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package okta
import (
"fmt"

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

func dataSourceApp() *schema.Resource {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_app_saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"fmt"

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

func dataSourceAppSaml() *schema.Resource {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_app_saml_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/crewjam/saml"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)

func dataSourceAppMetadataSaml() *schema.Resource {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_app_saml_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"testing"

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

func TestAccOktaDataSourceAppMetadataSaml_read(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_app_saml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

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

func TestAccOktaDataSourceAppSaml_read(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

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

func TestAccOktaDataSourceApp_read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_auth_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package okta
import (
"fmt"

"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/okta/okta-sdk-golang/okta/query"
)

Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_auth_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

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

func TestAccOktaDataSourceAuthServer_read(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_default_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"fmt"

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

// data source to retrieve information on a Default Policy
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_default_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strconv"
"testing"

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

func TestAccOktaDataSourceDefaultPolicy_read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_everyone_group.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package okta

import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)

// data source to retrieve information on the Everyone Group
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_everyone_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strconv"
"testing"

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

func TestAccOktaDataSourceEveryoneGroup_read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/okta/okta-sdk-golang/okta/query"

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

func dataSourceGroup() *schema.Resource {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"testing"

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

func TestAccOktaDataSourceGroup_read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_idp_metadata_saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/crewjam/saml"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)

func dataSourceIdpMetadataSaml() *schema.Resource {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_idp_metadata_saml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"testing"

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

func TestAccOktaDataSourceIdpMetadataSaml_read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_idp_saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/articulate/terraform-provider-okta/sdk"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/okta/okta-sdk-golang/okta/query"
)

Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_idp_saml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"testing"

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

func TestAccOktaDataSourceIdpSaml_read(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"fmt"

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

func dataSourcePolicy() *schema.Resource {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

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

func TestAccOktaDataSourcePolicy_read(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/okta/okta-sdk-golang/okta/query"

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

func dataSourceUser() *schema.Resource {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"testing"

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

func TestAccOktaDataSourceUser_read(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"fmt"

"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/hashcode"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/okta/okta-sdk-golang/okta"
"github.com/okta/okta-sdk-golang/okta/query"
)
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_users_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package okta
import (
"testing"

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

func TestAccOktaDataSourceUsers_read(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions okta/idp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/articulate/terraform-provider-okta/sdk"

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

const (
Expand Down
4 changes: 2 additions & 2 deletions okta/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/okta/okta-sdk-golang/okta"

articulateOkta "github.com/articulate/oktasdk-go/okta"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)

// Basis of policy schema
Expand Down
4 changes: 2 additions & 2 deletions okta/policy_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"strings"

articulateOkta "github.com/articulate/oktasdk-go/okta"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions okta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"log"

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

// Resource names, defined in place, used throughout the provider and tests
Expand Down
2 changes: 1 addition & 1 deletion okta/provider_sweeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

articulateOkta "github.com/articulate/oktasdk-go/okta"
sdk "github.com/articulate/terraform-provider-okta/sdk"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/okta/okta-sdk-golang/okta"
)

Expand Down
4 changes: 2 additions & 2 deletions okta/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"testing"

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

var testAccProviders map[string]terraform.ResourceProvider
Expand Down
Loading

0 comments on commit 07b53c5

Please sign in to comment.