Skip to content

Commit 9dcb4c7

Browse files
author
greg oliver
committed
reset environment
1 parent 11501be commit 9dcb4c7

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

integration-environment-azure/prereqs.tf

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
provider "azurerm" {
2-
version = "~> 2.11"
2+
version = "~> 2.3"
33
features {}
44
}
55

@@ -50,12 +50,12 @@ resource "azurerm_storage_account" "blobaccount" {
5050
data "azurerm_client_config" "current" {
5151
}
5252

53-
# resource "azurerm_role_assignment" "datalake" {
54-
# scope = azurerm_storage_account.adlsaccount.id
55-
# #https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#storage-blob-data-contributor
56-
# role_definition_name = "Storage Blob Data Contributor"
57-
# principal_id = data.azurerm_client_config.current.object_id
58-
# }
53+
resource "azurerm_role_assignment" "datalake" {
54+
scope = azurerm_storage_account.adlsaccount.id
55+
#https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#storage-blob-data-contributor
56+
role_definition_name = "Storage Blob Data Contributor"
57+
principal_id = data.azurerm_client_config.current.object_id
58+
}
5959

6060
resource "azurerm_storage_container" "adlsexample" {
6161
name = "dev"

integration-environment-azure/run.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ echo -e "----> Running Azure Acceptance Tests \n\n"
4444
# Output debug log to file while tests run
4545
export TF_LOG_PATH=$PWD/tf.log
4646
# Run all Azure integration tests
47-
# TF_LOG=debug TF_ACC=1 gotestsum --format short-verbose --raw-command go test -v -json -short -coverprofile=coverage.out -test.timeout 35m -run 'TestAccAzure' ./../...
48-
TF_LOG=debug TF_ACC=1 gotestsum --format short-verbose --raw-command go test -v -json -short -coverprofile=coverage.out -test.timeout 35m -run 'TestAccAzureBlob' ./../...
47+
TF_LOG=debug TF_ACC=1 gotestsum --format short-verbose --raw-command go test -v -json -short -coverprofile=coverage.out -test.timeout 35m -run 'TestAccAzure' ./../...

0 commit comments

Comments
 (0)