Skip to content

Commit

Permalink
Removed 'ForceNew' in case policy name changes (#362)
Browse files Browse the repository at this point in the history
Removed 'ForceNew' in case policy name changes
  • Loading branch information
bogdanprodan-okta authored Mar 3, 2021
1 parent d585ccc commit ac01b20
Show file tree
Hide file tree
Showing 52 changed files with 80 additions and 78 deletions.
16 changes: 8 additions & 8 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ We welcome issues of all kinds including feature requests, bug reports, and
general questions. Below you'll find checklists with guidelines for well-formed
issues of each type.

#### [Bug Reports](https://github.com/oktadeveloper/terraform-provider-okta/issues/new?template=Bug_Report.md)
#### [Bug Reports](https://github.com/okta/terraform-provider-okta/issues/new?template=Bug_Report.md)

- [ ] **Test against the latest release**: Make sure you test against the latest
released version. It is possible we already fixed the bug you're experiencing.

- [ ] **Search for possible duplicate reports**: It's helpful to keep bug
reports consolidated to one thread, so do a quick search on existing bug
reports to check if anybody else has reported the same thing. You can [scope
searches by the label "bug"](https://github.com/oktadeveloper/terraform-provider-okta/issues?q=is%3Aopen+is%3Aissue+label%3Abug) to help narrow things down.
searches by the label "bug"](https://github.com/okta/terraform-provider-okta/issues?q=is%3Aopen+is%3Aissue+label%3Abug) to help narrow things down.

- [ ] **Include steps to reproduce**: Provide steps to reproduce the issue,
along with your `.tf` files, with secrets removed, so we can try to
Expand All @@ -63,19 +63,19 @@ issues of each type.
create a [gist](https://gist.github.com) of the _entire_ generated crash log
for us to look at. Double check no sensitive items were in the log.

#### [Feature Requests](https://github.com/oktadeveloper/terraform-provider-okta/issues/new?labels=enhancement&template=Feature_Request.md)
#### [Feature Requests](https://github.com/okta/terraform-provider-okta/issues/new?labels=enhancement&template=Feature_Request.md)

- [ ] **Search for possible duplicate requests**: It's helpful to keep requests
consolidated to one thread, so do a quick search on existing requests to
check if anybody else has reported the same thing. You can [scope searches by
the label "enhancement"](https://github.com/oktadeveloper/terraform-provider-okta/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement) to help narrow things down.
the label "enhancement"](https://github.com/okta/terraform-provider-okta/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement) to help narrow things down.

- [ ] **Include a use case description**: In addition to describing the
behavior of the feature you'd like to see added, it's helpful to also lay
out the reason why the feature would be important and how it would benefit
Terraform users.

#### [Questions](https://github.com/oktadeveloper/terraform-provider-okta/issues/new?labels=question&template=Question.md)
#### [Questions](https://github.com/okta/terraform-provider-okta/issues/new?labels=question&template=Question.md)

- [ ] **Search for answers in Terraform documentation**: We're happy to answer
questions in GitHub Issues, but it helps reduce issue churn and maintainer
Expand Down Expand Up @@ -377,7 +377,7 @@ TF_ACC=1 go test ./okta -v -run=TestAccOktaOAuthApp_crud -timeout 120m
=== RUN TestAccOktaOAuthApp_crud
--- PASS: TestAccOktaOAuthApp_crud (26.56s)
PASS
ok github.com/oktadeveloper/terraform-provider-okta/okta 26.607s
ok github.com/okta/terraform-provider-okta/okta 26.607s
```

Entire resource test suites can be targeted by using the naming convention to
Expand All @@ -394,7 +394,7 @@ TF_ACC=1 go test ./okta -v -run=TestAccOktaUserSchema -timeout 120m
=== RUN TestAccOktaUserSchema_arrayString
--- PASS: TestAccOktaUserSchema_arrayString (12.70s)
PASS
ok github.com/oktadeveloper/terraform-provider-okta/okta 55.619s
ok github.com/okta/terraform-provider-okta/okta 55.619s
```

#### Writing an Acceptance Test
Expand Down Expand Up @@ -495,6 +495,6 @@ When executing the test, the following steps are taken for each `TestStep`:
CheckDestroy: createCheckResourceDestroy(oktaGroup, doesGroupExist)
```

[website]: https://github.com/oktadeveloper/terraform-provider-okta/tree/master/website
[website]: https://github.com/okta/terraform-provider-okta/tree/master/website
[acctests]: https://github.com/hashicorp/terraform#acceptance-tests
[ml]: https://groups.google.com/group/terraform-tool
4 changes: 2 additions & 2 deletions .github/MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Notes for each type of pull request are (or will be) available in subsections be
This pull request appears to be related to/solve #1234, so I have edited the pull request description to denote the issue reference.
```

- Review the contents of the pull request and ensure the change follows the relevant section of the [Contributing Guide](https://github.com/oktadeveloper/terraform-provider-okta/blob/master/.github/CONTRIBUTING.md#checklists-for-contribution)
- Review the contents of the pull request and ensure the change follows the relevant section of the [Contributing Guide](https://github.com/okta/terraform-provider-okta/blob/master/.github/CONTRIBUTING.md#checklists-for-contribution)
- If the change is not acceptable, leave a long form comment about the reasoning and close the pull request
- If the change is acceptable with modifications, leave a pull request review marked using the `Request Changes` option (for maintainer pull requests with minor modification requests, giving feedback with the `Approve` option is recommended, so they do not need to wait for another round of review)
- If the author is unresponsive for changes (by default we give two weeks), determine importance and level of effort to finish the pull request yourself including their commits or close the pull request
- Run relevant acceptance testing ([locally](https://github.com/oktadeveloper/terraform-provider-okta/blob/master/.github/CONTRIBUTING.md#running-an-acceptance-test) or in TeamCity) against an Okta account to ensure no new failures are being introduced
- Run relevant acceptance testing ([locally](https://github.com/okta/terraform-provider-okta/blob/master/.github/CONTRIBUTING.md#running-an-acceptance-test) or in TeamCity) against an Okta account to ensure no new failures are being introduced
- Approve the pull request with a comment outlining what steps you took that ensure the change is acceptable, e.g. acceptance testing output

``````markdown
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ signs:
release:
# Explicit set the repo to release from. Default is origin.
github:
owner: oktadeveloper
owner: okta
name: terraform-provider-okta
# Visit your project's GitHub Releases page to publish this release.
draft: true
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://img.shields.io/travis/oktadeveloper/terraform-provider-okta.svg?logo=travis)](https://travis-ci.com/github/oktadeveloper/terraform-provider-okta)
[![Build Status](https://img.shields.io/travis/okta/terraform-provider-okta.svg?logo=travis)](https://travis-ci.com/github/okta/terraform-provider-okta)
<br/><br/>

<a href="https://terraform.io">
Expand All @@ -18,7 +18,7 @@ This provider is maintained internally by the Okta development team.

All the resources and data sources has [one or more examples](./examples) to give you an idea of how to use this provider to build your
own Okta infrastructure. Provider's official documentation is located in the
[official terraform registry](https://registry.terraform.io/providers/oktadeveloper/okta/latest/docs), or [here](./website/docs) in form of raw markdown files.
[official terraform registry](https://registry.terraform.io/providers/okta/okta/latest/docs), or [here](./website/docs) in form of raw markdown files.

# Development Environment Setup

Expand All @@ -37,7 +37,7 @@ Clone repository to: `$HOME/development/terraform-providers/`

```sh
$ mkdir -p $HOME/development/terraform-providers/; cd $HOME/development/terraform-providers/
$ git clone git@github.com:oktadeveloper/terraform-provider-okta.git
$ git clone git@github.com:okta/terraform-provider-okta.git
...
```

Expand Down Expand Up @@ -66,7 +66,7 @@ $ make test

In order to run the full suite of Acceptance tests, run `make testacc`.

_Note:_ Acceptance tests create real resources, and often cost money to run. Please read [Running an Acceptance Test](https://github.com/oktadeveloper/terraform-provider-okta/blob/master/.github/CONTRIBUTING.md#running-an-acceptance-test) in the contribution guidelines for more information on usage.
_Note:_ Acceptance tests create real resources, and often cost money to run. Please read [Running an Acceptance Test](https://github.com/okta/terraform-provider-okta/blob/master/.github/CONTRIBUTING.md#running-an-acceptance-test) in the contribution guidelines for more information on usage.

```sh
$ make testacc
Expand Down
2 changes: 1 addition & 1 deletion examples/okta_policy_mfa/basic_updated.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ data "okta_group" "all" {
}

resource "okta_policy_mfa" "test" {
name = "testAcc_replace_with_uuid"
name = "testAcc_replace_with_uuid_new"
status = "INACTIVE"
description = "Terraform Acceptance Test MFA Policy Updated"
groups_included = [data.okta_group.all.id]
Expand Down
2 changes: 1 addition & 1 deletion examples/okta_user_schema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Represents an Okta User Profile Attribute Schema. [See Okta documentation for more details](https://developer.okta.com/docs/api/resources/users).

- An example of a user with multiple custom attributes, [can be found here](../okta_user/custom_attributes.tf). Note the `depends_on` see https://github.com/oktadeveloper/terraform-provider-okta/issues/144 for more info.
- An example of a user with multiple custom attributes, [can be found here](../okta_user/custom_attributes.tf). Note the `depends_on` see https://github.com/okta/terraform-provider-okta/issues/144 for more info.
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/oktadeveloper/terraform-provider-okta
module github.com/okta/terraform-provider-okta

go 1.15

Expand Down
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20200707034311-ab3426394381 h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down Expand Up @@ -505,6 +506,7 @@ golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200523222454-059865788121 h1:rITEj+UZHYC927n8GT97eC3zrpzXdb/voyeOuVKS46o=
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221 h1:/ZHdbVpdR/jk3g30/d4yUL0JU9kksj8+F/bnQUVLGDM=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
Expand Down Expand Up @@ -563,6 +565,7 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
Expand Down
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/hashicorp/terraform-plugin-sdk/v2/plugin"
"github.com/oktadeveloper/terraform-provider-okta/okta"
"github.com/okta/terraform-provider-okta/okta"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion okta/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/go-retryablehttp"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
"github.com/okta/okta-sdk-golang/v2/okta"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

func (adt *AddHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error) {
Expand Down
4 changes: 2 additions & 2 deletions okta/data_source_okta_app_oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func TestAccOktaDataSourceAppOauth_read(t *testing.T) {
resource.TestCheckResourceAttrSet("data.okta_app_oauth.test", "grant_types.#"),
resource.TestCheckResourceAttrSet("data.okta_app_oauth.test", "redirect_uris.#"),
resource.TestCheckResourceAttrSet("data.okta_app_oauth.test", "type"),
resource.TestCheckResourceAttr("data.okta_app_oauth.test", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app_oauth.test_label", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app_oauth.test", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app_oauth.test_label", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app_oauth.test", "status", statusActive),
resource.TestCheckResourceAttr("data.okta_app_oauth.test_label", "status", statusActive),
),
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 @@ -27,8 +27,8 @@ func TestAccOktaDataSourceAppSaml_read(t *testing.T) {
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.okta_app_saml.test", "key_id"),
resource.TestCheckResourceAttr("data.okta_app_saml.test", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app_saml.test_label", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app_saml.test", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app_saml.test_label", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app_saml.test", "status", statusActive),
resource.TestCheckResourceAttr("data.okta_app_saml.test_label", "status", statusActive),
),
Expand Down
6 changes: 3 additions & 3 deletions okta/data_source_okta_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func TestAccOktaDataSourceApp_read(t *testing.T) {
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("okta_app_oauth.test", "id"),
resource.TestCheckResourceAttr("data.okta_app.test", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app.test2", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app.test3", "label", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_app.test", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app.test2", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app.test3", "label", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_app.test", "status", statusActive),
resource.TestCheckResourceAttr("data.okta_app.test2", "status", statusActive),
resource.TestCheckResourceAttr("data.okta_app.test3", "status", statusActive),
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_auth_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAccOktaDataSourceAuthServer_read(t *testing.T) {
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("okta_auth_server.test", "id"),
resource.TestCheckResourceAttr("data.okta_auth_server.test", "name", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr("data.okta_auth_server.test", "name", buildResourceName(ri)),
resource.TestCheckResourceAttr("data.okta_auth_server.test", "status", statusActive),
resource.TestCheckResourceAttrSet("data.okta_auth_server.test", "issuer"),
),
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_default_policy.go
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"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

// data source to retrieve information on a Default Policy
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_default_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

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

func TestAccOktaDataSourceDefaultPolicy_readPasswordPolicy(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion okta/data_source_okta_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/okta/okta-sdk-golang/v2/okta/query"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

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

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

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

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

// Basis of policy schema
Expand All @@ -15,7 +15,6 @@ var (
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Policy Name",
},
"description": {
Expand Down
2 changes: 1 addition & 1 deletion okta/policy_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

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

var userExcludedSchema = map[string]*schema.Schema{
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 (

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/okta/okta-sdk-golang/v2/okta"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

type testClient struct {
Expand Down
2 changes: 1 addition & 1 deletion okta/resource_okta_app_saml.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func buildSamlApp(d *schema.ResourceData) (*okta.SamlApplication, error) {
app.Settings.App = &settings
} else {
// we should provide empty app, even if there are no values
// see https://github.com/oktadeveloper/terraform-provider-okta/pull/226#issuecomment-744545051
// see https://github.com/okta/terraform-provider-okta/pull/226#issuecomment-744545051
settings := okta.ApplicationSettingsApplication(map[string]interface{}{})
app.Settings.App = &settings
}
Expand Down
2 changes: 1 addition & 1 deletion okta/resource_okta_app_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAccOktaAppUser_crud(t *testing.T) {
ensureAppUserExists(resourceName),
resource.TestCheckResourceAttrSet(resourceName, "app_id"),
resource.TestCheckResourceAttrSet(resourceName, "user_id"),
resource.TestCheckResourceAttr(resourceName, "username", fmt.Sprintf("testAcc_%d", ri)),
resource.TestCheckResourceAttr(resourceName, "username", buildResourceName(ri)),
),
},
{
Expand Down
2 changes: 1 addition & 1 deletion okta/resource_okta_auth_server_policy.go
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"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/okta/okta-sdk-golang/v2/okta"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

func resourceAuthServerPolicy() *schema.Resource {
Expand Down
2 changes: 1 addition & 1 deletion okta/resource_okta_auth_server_policy_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/okta/okta-sdk-golang/v2/okta"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

func resourceAuthServerPolicyRule() *schema.Resource {
Expand Down
2 changes: 1 addition & 1 deletion okta/resource_okta_factor.go
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"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/oktadeveloper/terraform-provider-okta/sdk"
"github.com/okta/terraform-provider-okta/sdk"
)

// Predefined second authentication factors. They must be activated in order to use them in MFA policies.
Expand Down
Loading

0 comments on commit ac01b20

Please sign in to comment.