Skip to content

Commit

Permalink
Remove Password/Key Credentials to turn them into resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Gallardo committed Jul 4, 2018
1 parent 13f4e67 commit 9938aa8
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 2,503 deletions.
51 changes: 0 additions & 51 deletions azurerm/import_arm_azuread_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package azurerm

import (
"testing"
"time"

"github.com/google/uuid"
"github.com/hashicorp/terraform/helper/resource"
Expand Down Expand Up @@ -53,53 +52,3 @@ func TestAccAzureRMActiveDirectoryApplication_importAdvanced(t *testing.T) {
},
})
}

func TestAccAzureRMActiveDirectoryApplication_importKeyCredential(t *testing.T) {
resourceName := "azurerm_azuread_application.test"

id := uuid.New().String()
keyId := uuid.New().String()
config := testAccAzureRMActiveDirectoryApplication_keyCredential_single(id, keyId, "AsymmetricX509Cert")

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProvidersWithTLS,
CheckDestroy: testCheckAzureRMActiveDirectoryApplicationDestroy,
Steps: []resource.TestStep{
{
Config: config,
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}

func TestAccAzureRMActiveDirectoryApplication_importPasswordCredential(t *testing.T) {
resourceName := "azurerm_azuread_application.test"

id := uuid.New().String()
keyId := uuid.New().String()
timeStart := time.Now().UTC()
timeEnd := timeStart.Add(time.Duration(1) * time.Hour)
config := testAccAzureRMActiveDirectoryApplication_passwordCredential_single(id, keyId, timeStart, timeEnd)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testCheckAzureRMActiveDirectoryApplicationDestroy,
Steps: []resource.TestStep{
{
Config: config,
},
{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
219 changes: 0 additions & 219 deletions azurerm/key_credentials.go

This file was deleted.

Loading

0 comments on commit 9938aa8

Please sign in to comment.