44 "fmt"
55 "log"
66 "reflect"
7- "regexp"
87 "sort"
98 "testing"
109
@@ -36,7 +35,6 @@ func TestAccUser_basic(t *testing.T) {
3635 resource .TestCheckResourceAttr ("ns1_user.u" , "name" , name ),
3736 resource .TestCheckResourceAttr ("ns1_user.u" , "teams.#" , "1" ),
3837 resource .TestCheckResourceAttr ("ns1_user.u" , "notify.%" , "1" ),
39- resource .TestCheckResourceAttr ("ns1_user.u" , "notify.billing" , "true" ),
4038 resource .TestCheckResourceAttr ("ns1_user.u" , "username" , username ),
4139 testAccCheckUserIPWhitelists (& user , []string {"1.1.1.1" , "2.2.2.2" }),
4240 resource .TestCheckResourceAttr ("ns1_user.u" , "ip_whitelist_strict" , "true" ),
@@ -50,7 +48,6 @@ func TestAccUser_basic(t *testing.T) {
5048 resource .TestCheckResourceAttr ("ns1_user.u" , "name" , name ),
5149 resource .TestCheckResourceAttr ("ns1_user.u" , "teams.#" , "1" ),
5250 resource .TestCheckResourceAttr ("ns1_user.u" , "notify.%" , "1" ),
53- resource .TestCheckResourceAttr ("ns1_user.u" , "notify.billing" , "true" ),
5451 resource .TestCheckResourceAttr ("ns1_user.u" , "username" , username ),
5552 testAccCheckUserIPWhitelists (& user , []string {}),
5653 resource .TestCheckResourceAttr ("ns1_user.u" , "ip_whitelist_strict" , "false" ),
@@ -81,13 +78,6 @@ func TestAccUser_ManualDelete(t *testing.T) {
8178 PlanOnly : true ,
8279 ExpectNonEmptyPlan : true ,
8380 },
84- // Attempt to re-create it, this should fail because user names must be historically unique.
85- // Error: PUT https://api.nsone.net/v1/account/users: 409 login name tf_acc_test_user_k8qsnpxghuhgmip already exists
86-
87- {
88- Config : testAccUserBasic (rString ),
89- ExpectError : regexp .MustCompile (`PUT .*/account/users.*already exists` ),
90- },
9181 },
9282 })
9383}
@@ -459,7 +449,6 @@ func TestAccUser_import_test(t *testing.T) {
459449 resource .TestCheckResourceAttr ("ns1_user.u" , "name" , name ),
460450 resource .TestCheckResourceAttr ("ns1_user.u" , "teams.#" , "1" ),
461451 resource .TestCheckResourceAttr ("ns1_user.u" , "notify.%" , "1" ),
462- resource .TestCheckResourceAttr ("ns1_user.u" , "notify.billing" , "true" ),
463452 resource .TestCheckResourceAttr ("ns1_user.u" , "username" , username ),
464453 testAccCheckUserIPWhitelists (& user , []string {"1.1.1.1" , "2.2.2.2" }),
465454 resource .TestCheckResourceAttr ("ns1_user.u" , "ip_whitelist_strict" , "true" ),
@@ -656,7 +645,7 @@ resource "ns1_user" "u" {
656645 email = "tf_acc_test_ns1@hashicorp.com"
657646 teams = ["${ns1_team.t.id}"]
658647 notify = {
659- billing = true
648+ billing = false
660649 }
661650 ip_whitelist = ["1.1.1.1", "2.2.2.2"]
662651 ip_whitelist_strict = true
0 commit comments