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

[AzureMonitorDistro] Add field validation to Integration Tests (part1) #44429

Merged
merged 4 commits into from
Jun 11, 2024

Conversation

TimothyMothra
Copy link
Contributor

@TimothyMothra TimothyMothra commented Jun 6, 2024

This PR is adding field validation in our Integration Tests.
This adds an ExpectedTelemetry struct with properties.
Each properties are iterated and compared to the telemetry returned from Log Analytics.

Changes

  • Adds additional logging to help troubleshoot tests. Both Debug.WriteLine for local debugging and TestContext.Out.WriteLine for test output.
  • Adds very simple structs for expected telemetry: ExpectedAppDependency, ExpectedAppRequest, ExpectedAppMetric, ExpectedAppTrace.
    These names match the table names in Log Analytics and the struct Property names match the field names.
    I'll finished adding the remaining fields to these structs in a follow up PR.

@github-actions github-actions bot added the Monitor - Distro Monitor OpenTelemetry Distro label Jun 6, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@TimothyMothra TimothyMothra changed the title [WIP] Add field validation to Integration Tests [AzureMonitorDistro] Add field validation to Integration Tests Jun 7, 2024
@TimothyMothra TimothyMothra marked this pull request as ready for review June 7, 2024 22:05
@TimothyMothra TimothyMothra changed the title [AzureMonitorDistro] Add field validation to Integration Tests [AzureMonitorDistro] Add field validation to Integration Tests (part1) Jun 7, 2024
@TimothyMothra TimothyMothra merged commit 724a605 into main Jun 11, 2024
25 checks passed
@TimothyMothra TimothyMothra deleted the tilee/202406_integrationtest_validation branch June 11, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Distro Monitor OpenTelemetry Distro
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants