Skip to content

Commit

Permalink
Breaking: remove subscription_id from data.azuread_client_config
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Jun 12, 2020
1 parent f07787b commit a9c691e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions azuread/data_client_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ func dataClientConfig() *schema.Resource {
Computed: true,
},

"subscription_id": {
Type: schema.TypeString,
Computed: true,
},

"object_id": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -62,7 +57,6 @@ func dataSourceArmClientConfigRead(d *schema.ResourceData, meta interface{}) err
d.SetId(time.Now().UTC().String())
d.Set("client_id", client.clientID)
d.Set("object_id", client.objectID)
d.Set("subscription_id", client.subscriptionID)
d.Set("tenant_id", client.tenantID)

return nil
Expand Down
2 changes: 0 additions & 2 deletions azuread/data_client_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func TestAccClientConfigDataSource_basic(t *testing.T) {
dsn := "data.azuread_client_config.current"
clientId := os.Getenv("ARM_CLIENT_ID")
tenantId := os.Getenv("ARM_TENANT_ID")
subscriptionId := os.Getenv("ARM_SUBSCRIPTION_ID")

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -24,7 +23,6 @@ func TestAccClientConfigDataSource_basic(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr(dsn, "client_id", clientId),
resource.TestCheckResourceAttr(dsn, "tenant_id", tenantId),
resource.TestCheckResourceAttr(dsn, "subscription_id", subscriptionId),
testAzureRMClientConfigGUIDAttr(dsn, "object_id"),
),
},
Expand Down

0 comments on commit a9c691e

Please sign in to comment.