Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Nov 4, 2020
1 parent 7e7f957 commit c5a227e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func dataSourceArmDataShareRead(d *schema.ResourceData, meta interface{}) error

d.Set("name", name)
d.Set("account_id", accountId.ID(subscriptionId))

if props := resp.ShareProperties; props != nil {
d.Set("description", props.Description)
d.Set("kind", string(props.ShareKind))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import (
func TestAccDataSourceAzureRMDataShare_basic(t *testing.T) {
data := acceptance.BuildTestData(t, "data.azurerm_data_share", "test")
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Providers: acceptance.SupportedProviders,
CheckDestroy: testCheckAzureRMDataShareDestroy,
PreCheck: func() { acceptance.PreCheck(t) },
Providers: acceptance.SupportedProviders,
Steps: []resource.TestStep{
{
Config: testAccDataSourceDataShare_basic(data),
Expand All @@ -33,9 +32,8 @@ func TestAccDataSourceAzureRMDataShare_snapshotSchedule(t *testing.T) {
startTime := time.Now().Add(time.Hour * 7).Format(time.RFC3339)

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acceptance.PreCheck(t) },
Providers: acceptance.SupportedProviders,
CheckDestroy: testCheckAzureRMDataShareDestroy,
PreCheck: func() { acceptance.PreCheck(t) },
Providers: acceptance.SupportedProviders,
Steps: []resource.TestStep{
{
Config: testAccDataSourceAzureRMDataShare_snapshotSchedule(data, startTime),
Expand Down

0 comments on commit c5a227e

Please sign in to comment.