Skip to content

Commit

Permalink
fixing titles, removing created times (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-anderson-swi authored Aug 31, 2024
1 parent 298955e commit 4243a26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/provider/notification_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ func TestAccNotificationResource(t *testing.T) {
Config: testAccNotificationResourceConfig("test-acc test one"),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttrSet("swo_notification.test", "id"),
resource.TestCheckResourceAttr("swo_notification.test", "title", "test one"),
resource.TestCheckResourceAttr("swo_notification.test", "title", "test-acc test one"),
resource.TestCheckResourceAttr("swo_notification.test", "description", "testing..."),
resource.TestCheckResourceAttr("swo_notification.test", "type", "email"),
resource.TestCheckResourceAttr("swo_notification.test", "settings.email.addresses.0.email", "test1@host.com"),
resource.TestCheckResourceAttr("swo_notification.test", "settings.email.addresses.1.email", "test2@host.com"),
resource.TestCheckResourceAttrSet("swo_notification.test", "created_by"),
resource.TestCheckResourceAttrSet("swo_notification.test", "created_at"),
),
},
// ImportState testing
Expand All @@ -37,7 +35,7 @@ func TestAccNotificationResource(t *testing.T) {
{
Config: testAccNotificationResourceConfig("test-acc test two"),
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr("swo_notification.test", "title", "test two"),
resource.TestCheckResourceAttr("swo_notification.test", "title", "test-acc test two"),
),
},
// Delete testing automatically occurs in TestCase
Expand Down

0 comments on commit 4243a26

Please sign in to comment.