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

Enhance googlecloudmonitoringreceiver: Add Unit Tests for Metric Conversion and Improve Edge Case Coverage #36846

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

scaletech-milan
Copy link

@scaletech-milan scaletech-milan commented Dec 16, 2024

Description:
Added comprehensive test cases for the entire Google Cloud Monitoring Receiver component.

Link to tracking Issue:
#36815

Testing:
Implemented test cases to validate:

  • GCP Monitoring client connection.
  • OpenTelemetry's built-in functions.
  • Scraping logic.
  • Metric conversion functions.

Documentation:
N/A

- Added unit tests for validating metric conversion logic in googlecloudmonitoringreceiver
- Improved test coverage for edge cases in the receiver component
Copy link

linux-foundation-easycla bot commented Dec 16, 2024

CLA Not Signed

Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

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

looks good overall. Lets just make the tests less fragile.

receiver/googlecloudmonitoringreceiver/receiver_test.go Outdated Show resolved Hide resolved
receiver/googlecloudmonitoringreceiver/receiver_test.go Outdated Show resolved Hide resolved
receiver/googlecloudmonitoringreceiver/receiver_test.go Outdated Show resolved Hide resolved
receiver/googlecloudmonitoringreceiver/receiver_test.go Outdated Show resolved Hide resolved
receiver/googlecloudmonitoringreceiver/receiver_test.go Outdated Show resolved Hide resolved
- Update testify error handling code
- Add sample serviceAccount.json inside testdata
@scaletech-milan
Copy link
Author

Updated all the changes

@dashpole
Copy link
Contributor

Looks good. Just needs the CLA signed, and I think we are good to go

@scaletech-milan
Copy link
Author

Looks good. Just needs the CLA signed, and I think we are good to go

i already proceed for CLA sign, waiting for approval.

@dashpole
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants