Skip to content

Commit

Permalink
more WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Jun 10, 2020
1 parent d8510bb commit 9fa4c57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
8 changes: 5 additions & 3 deletions azuread/resource_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ func resourceApplication() *schema.Resource {
"app_role": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validate.UUID,
},

"allowed_member_types": {
Expand Down
20 changes: 11 additions & 9 deletions azuread/resource_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func TestAccAzureADApplication_update(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "identifier_uris.#", "0"),
resource.TestCheckResourceAttr(resourceName, "reply_urls.#", "0"),
resource.TestCheckResourceAttr(resourceName, "optional_claims.#", "0"),
resource.TestCheckResourceAttr(resourceName, "oauth2_permissions.#", "0"),
),
},
{
Expand Down Expand Up @@ -661,6 +662,7 @@ func testAccADApplication_basicEmpty(ri int) string {
resource "azuread_application" "test" {
name = "acctest-APP-%[1]d"
identifier_uris = []
oauth2_permissions = []
reply_urls = []
group_membership_claims = "None"
}
Expand Down Expand Up @@ -815,15 +817,15 @@ resource "azuread_application" "test" {
name = "acctest-APP-%[1]d"
app_role {
allowed_member_types = [
"User",
//"Application",
]
description = "Admins can manage roles and perform all task actions"
display_name = "Admin"
is_enabled = true
value = "Admin"
allowed_member_types = [
"User",
//"Application",
]
description = "Admins can manage roles and perform all task actions"
display_name = "Admin"
is_enabled = true
value = "Admin"
}
}
`, ri)
Expand Down

0 comments on commit 9fa4c57

Please sign in to comment.