Skip to content

Commit

Permalink
Fix tests (#18)
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
murggu authored Nov 24, 2022
1 parent 8e838a6 commit f83bcf5
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hdinsight-interactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ jobs:
GOPATH: "/home/runner/work/azure-labs-modules/azure-labs-modules/${{ env.terraform_workingdir }}"

- name: Unit-test
run: go test -v -timeout 90m
run: go test -v -timeout 120m
env:
GOPATH: "/home/runner/work/azure-labs-modules/azure-labs-modules/${{ env.terraform_workingdir }}"
1 change: 1 addition & 0 deletions terraform/event-hubs/event-hubs-namespace/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ variable "tags" {
variable "module_enabled" {
type = bool
description = "Variable to enable or disable the module"
default = true
}

variable "is_sec_module" {
Expand Down
6 changes: 5 additions & 1 deletion terraform/hdinsight/hdinsight-interactive/test/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ terraform {
}

provider "azurerm" {
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ terraform {

}
provider "azurerm" {
features {}
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module "local_mlw" {
module "local_storage_account" {
source = "../../../storage-account"

basename = random_string.postfix.result
basename = "${random_string.postfix.result}aml"
rg_name = module.local_rg.name
location = var.location

Expand Down Expand Up @@ -117,7 +117,7 @@ module "local_synapse_spark_pool" {
module "local_storage_account_syn" {
source = "../../../storage-account"

basename = random_string.postfix.result
basename = "${random_string.postfix.result}syn"
rg_name = module.local_rg.name
location = var.location

Expand Down
6 changes: 3 additions & 3 deletions terraform/storage-account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ resource "azurerm_private_endpoint" "st_pe_blob" {
private_dns_zone_ids = var.private_dns_zone_ids_blob
}

count = var.is_sec_module && var.module_enabled && var.private_dns_zone_ids_blob != [] ? 1 : 0
count = var.is_sec_module && var.module_enabled && length(var.private_dns_zone_ids_blob) != 0 ? 1 : 0

tags = var.tags
}
Expand All @@ -122,7 +122,7 @@ resource "azurerm_private_endpoint" "st_pe_file" {
private_dns_zone_ids = var.private_dns_zone_ids_file
}

count = var.is_sec_module && var.module_enabled && var.private_dns_zone_ids_file != [] ? 1 : 0
count = var.is_sec_module && var.module_enabled && length(var.private_dns_zone_ids_file) != 0 ? 1 : 0

tags = var.tags
}
Expand All @@ -145,7 +145,7 @@ resource "azurerm_private_endpoint" "st_pe_dfs" {
private_dns_zone_ids = var.private_dns_zone_ids_dfs
}

count = var.is_sec_module && var.module_enabled && var.private_dns_zone_ids_dfs != [] ? 1 : 0
count = var.is_sec_module && var.module_enabled && length(var.private_dns_zone_ids_dfs) != 0 ? 1 : 0

tags = var.tags
}
14 changes: 14 additions & 0 deletions terraform/synapse/synapse-workspace/test/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,18 @@ variable "synadmin_username" {
variable "synadmin_password" {
type = string
default = "ThisIsNotVerySecure!"
}

variable "aad_login" {
description = "AAD login"
type = object({
name = string
object_id = string
tenant_id = string
})
default = {
name = "AzureAD Admin"
object_id = "00000000-0000-0000-0000-000000000000"
tenant_id = "00000000-0000-0000-0000-000000000000"
}
}

0 comments on commit f83bcf5

Please sign in to comment.