@@ -124,7 +124,7 @@ func TestAccTFENotificationConfiguration_update(t *testing.T) {
124
124
resource .TestCheckResourceAttr (
125
125
"tfe_notification_configuration.foobar" , "triggers.#" , "2" ),
126
126
resource .TestCheckResourceAttr (
127
- "tfe_notification_configuration.foobar" , "url" , fmt .Sprintf ("%s/ ?update=true" , runTasksURL ())),
127
+ "tfe_notification_configuration.foobar" , "url" , fmt .Sprintf ("%s?update=true" , runTasksURL ())),
128
128
),
129
129
},
130
130
},
@@ -484,6 +484,8 @@ func TestAccTFENotificationConfiguration_duplicateTriggers(t *testing.T) {
484
484
func TestAccTFENotificationConfigurationImport_basic (t * testing.T ) {
485
485
rInt := rand .New (rand .NewSource (time .Now ().UnixNano ())).Int ()
486
486
487
+ fmt .Printf ("Config for testAccTFENotificationConfigurationImport_basic:\n %s\n " , testAccTFENotificationConfiguration_basic (rInt ))
488
+
487
489
resource .Test (t , resource.TestCase {
488
490
PreCheck : func () { preCheckTFENotificationConfiguration (t ) },
489
491
Providers : testAccProviders ,
@@ -619,7 +621,7 @@ func testAccCheckTFENotificationConfigurationAttributesUpdate(notificationConfig
619
621
return fmt .Errorf ("Bad triggers: %v" , notificationConfiguration .Triggers )
620
622
}
621
623
622
- if notificationConfiguration .URL != fmt .Sprintf ("%s/ ?update=true" , runTasksURL ()) {
624
+ if notificationConfiguration .URL != fmt .Sprintf ("%s?update=true" , runTasksURL ()) {
623
625
return fmt .Errorf ("Bad URL: %s" , notificationConfiguration .URL )
624
626
}
625
627
@@ -884,7 +886,7 @@ resource "tfe_notification_configuration" "foobar" {
884
886
enabled = true
885
887
token = "1234567890_update"
886
888
triggers = ["run:created", "run:needs_attention"]
887
- url = "%s/ ?update=true"
889
+ url = "%s?update=true"
888
890
workspace_id = tfe_workspace.foobar.id
889
891
}` , rInt , runTasksURL ())
890
892
}
0 commit comments