Skip to content

Commit

Permalink
Set ImportStateVerify to false
Browse files Browse the repository at this point in the history
  • Loading branch information
jahantech committed Mar 18, 2020
1 parent b143df3 commit bfcc974
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions random/resource_pasword_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ func TestAccResourcePassword(t *testing.T) {
regexMatch("random_password.min", regexp.MustCompile(`([!#@])`), 1),
),
},
{
ResourceName: "random_password.import",
ImportState: true,
ImportStateVerify: false,
},
},
})
}
13 changes: 13 additions & 0 deletions random/resource_string_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func TestAccResourceString(t *testing.T) {
regexMatch("random_string.min", regexp.MustCompile(`([!#@])`), 1),
),
},
{
ResourceName: "random_string.import",
ImportState: true,
ImportStateVerify: false,
},
},
})
}
Expand Down Expand Up @@ -129,5 +134,13 @@ resource "random_string" "min" {
min_numeric = 4
}
resource "random_string" "import" {
length = 12
min_lower = 2
min_upper = 3
min_special = 1
min_numeric = 4
}
`
)

0 comments on commit bfcc974

Please sign in to comment.