Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding Azure Log Analytics module #639

Merged
merged 34 commits into from
Feb 16, 2021

Conversation

skunklab
Copy link
Contributor

@skunklab skunklab commented Sep 16, 2020

#632
Azure loganalytics module for terratest with the following:
(i) Terraform example is examples/azure folder
(ii) loganalytics modules in modules/azure folder
(iii) unit test in test/azure folder
(iv) integration test with example in test/azure folder

@skunklab skunklab changed the title loganalytics module feat: adding Azure Log Analytics module Sep 23, 2020
Copy link
Contributor

@rguthriemsft rguthriemsft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skunklab Please take a look a look at review comments.

# ---------------------------------------------------------------------------------------------------------------------

resource "azurerm_resource_group" "resource_group" {
name = "${var.resource_group_basename}-${var.postfix}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch "${var.resource_group_basename}-${var.postfix}" to "terratest-rg-${var.postfix}"

return false
}

return (*ws.Name == workspaceName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to handle when workspace name is invalid. Please follow pattern in AvailabilitySet

func AvailabilitySetExistsE(t testing.TestingT, avsName string, resGroupName string, subscriptionID string) (bool, error) {
@davesee

modules/azure/loganalytics.go Show resolved Hide resolved
modules/azure/loganalytics.go Show resolved Hide resolved
test/azure/terraform_azure_loganalytics_example_test.go Outdated Show resolved Hide resolved
@rguthriemsft
Copy link
Contributor

[Microsoft CI Bot] TL;DR; success 👍

You can check the status of the CI Pipeline logs here ; https://github.com/rguthriemsft/terratest/actions/runs/550467385

Copy link
Contributor

@yorinasub17 yorinasub17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Found one missing docs, and https://github.com/gruntwork-io/terratest/pull/639/files#r502750578 still needs to be addressed.

return string(sku)
}

func GetLogAnalyticsWorkspaceSkuE(workspaceName string, resourceGroupName string, subscriptionID string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: this function needs docs comment.

@rguthriemsft
Copy link
Contributor

[Microsoft CI Bot] TL;DR; failure 🤦

You can check the status of the CI Pipeline logs here ; https://github.com/rguthriemsft/terratest/actions/runs/559081496

@rguthriemsft
Copy link
Contributor

[Microsoft CI Bot] TL;DR; failure 🤦

You can check the status of the CI Pipeline logs here ; https://github.com/rguthriemsft/terratest/actions/runs/559081496

@rguthriemsft
Copy link
Contributor

[Microsoft CI Bot] TL;DR; success 👍

You can check the status of the CI Pipeline logs here ; https://github.com/rguthriemsft/terratest/actions/runs/559081496

@HadwaAbdelhalem
Copy link
Contributor

@yorinasub17 PR is updated to address the comments. Please review when you have a chance

Copy link
Contributor

@yorinasub17 yorinasub17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yorinasub17 yorinasub17 merged commit 60ee8ed into gruntwork-io:master Feb 16, 2021
This was referenced Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants