Add refactored e2e tests
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
committed by
Sunny
parent
1730f3c46b
commit
f6b0c6e7ef
27
tests/integration/terraform/azure/event-hub.tf
Normal file
27
tests/integration/terraform/azure/event-hub.tf
Normal file
@@ -0,0 +1,27 @@
|
||||
resource "azurerm_eventhub_namespace" "this" {
|
||||
name = local.name
|
||||
location = var.azure_location
|
||||
resource_group_name = module.aks.resource_group
|
||||
sku = "Basic"
|
||||
capacity = 1
|
||||
tags = var.tags
|
||||
}
|
||||
|
||||
|
||||
resource "azurerm_eventhub" "this" {
|
||||
name = local.name
|
||||
namespace_name = azurerm_eventhub_namespace.this.name
|
||||
resource_group_name = module.aks.resource_group
|
||||
partition_count = 1
|
||||
message_retention = 1
|
||||
}
|
||||
|
||||
resource "azurerm_eventhub_authorization_rule" "this" {
|
||||
name = local.name
|
||||
resource_group_name = module.aks.resource_group
|
||||
namespace_name = azurerm_eventhub_namespace.this.name
|
||||
eventhub_name = azurerm_eventhub.this.name
|
||||
listen = true
|
||||
send = true
|
||||
manage = false
|
||||
}
|
||||
Reference in New Issue
Block a user