Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei committed May 13, 2022
1 parent edd4b51 commit e727149
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/services/bot/bot_connection_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ resource "azurerm_user_assigned_identity" "test" {
resource_group_name = azurerm_resource_group.test.name
}
resource "azurerm_role_assignment" "test" {
scope = azurerm_resource_group.test.id
role_definition_name = "Contributor"
principal_id = azurerm_user_assigned_identity.test.principal_id
}
resource "azurerm_bot_connection" "test" {
name = "acctestBc%d"
bot_name = azurerm_bot_channels_registration.test.name
Expand All @@ -121,7 +127,7 @@ resource "azurerm_bot_connection" "test" {
service_provider_name = "Salesforce"
client_id = azurerm_user_assigned_identity.test.client_id
client_secret = "32ea21cb-cb20-4df9-ad39-b55e985e9117"
scopes = "/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourceGroups/${azurerm_resource_group.test.name}"
scopes = azurerm_resource_group.test.id
parameters = {
loginUri = "https://www.terraform.io"
Expand Down

0 comments on commit e727149

Please sign in to comment.