Skip to content

Commit

Permalink
add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksymilian Boguń committed Apr 29, 2019
1 parent 2d7ae98 commit 2a62ad5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions azurerm/resource_arm_stream_analytics_output_eventhub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func TestAccAzureRMStreamAnalyticsOutputEventHub_avro(t *testing.T) {
Config: testAccAzureRMStreamAnalyticsOutputEventHub_avro(ri, location),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMStreamAnalyticsOutputEventHubExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "serialization.0.type", "Avro"),
),
},
{
Expand Down Expand Up @@ -53,6 +54,9 @@ func TestAccAzureRMStreamAnalyticsOutputEventHub_csv(t *testing.T) {
Config: testAccAzureRMStreamAnalyticsOutputEventHub_csv(ri, location),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMStreamAnalyticsOutputEventHubExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "serialization.0.type", "Csv"),
resource.TestCheckResourceAttr(resourceName, "serialization.0.field_delimiter", ","),
resource.TestCheckResourceAttr(resourceName, "serialization.0.encoding", "UTF8"),
),
},
{
Expand Down Expand Up @@ -82,6 +86,7 @@ func TestAccAzureRMStreamAnalyticsOutputEventHub_json(t *testing.T) {
Config: testAccAzureRMStreamAnalyticsOutputEventHub_json(ri, location),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMStreamAnalyticsOutputEventHubExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "serialization.0.format", "LineSeparated"),
),
},
{
Expand Down Expand Up @@ -111,6 +116,9 @@ func TestAccAzureRMStreamAnalyticsOutputEventHub_jsonArrayFormat(t *testing.T) {
Config: testAccAzureRMStreamAnalyticsOutputEventHub_jsonArrayFormat(ri, location),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMStreamAnalyticsOutputEventHubExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "serialization.0.format", "Array"),
resource.TestCheckResourceAttr(resourceName, "serialization.0.type", "Json"),
resource.TestCheckResourceAttr(resourceName, "serialization.0.encoding", "UTF8"),
),
},
{
Expand Down Expand Up @@ -146,6 +154,7 @@ func TestAccAzureRMStreamAnalyticsOutputEventHub_update(t *testing.T) {
Config: testAccAzureRMStreamAnalyticsOutputEventHub_updated(ri, location),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMStreamAnalyticsOutputEventHubExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "serialization.0.type", "Avro"),
),
},
{
Expand Down

0 comments on commit 2a62ad5

Please sign in to comment.