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

NH-98561 Update integration tests #510

Open
wants to merge 19 commits into
base: NH-79205-otlp-by-default
Choose a base branch
from

Conversation

tammy-baylis-swi
Copy link
Contributor

@tammy-baylis-swi tammy-baylis-swi commented Feb 6, 2025

Note: This will merge into epic feature branch NH-79205-otlp-by-default.

Updates the APM Python integration/functional tests so that OTLP metrics/logs generation and export are checked when enabled. Overall changes:

  1. Moves the original tests to legacy subdir, and they're the same besides some var renames.
  2. Adds new tests to otlp subdir. They test the same scenarios as legacy but with different liboboe mocks and added OTLP metrics, logs assertions.
  3. Factors out more general TestBaseSw class (with a much shorter name), extended by TestBaseSwLegacy and TestBaseSwOtlp for their respective tests.

As previously, these tests do partial, manual loading of APM Python otel components so that traces/metrics/logs can be captured by the InMemory* test utils and checked there, instead of actual export to backend/file/etc.

Please let me know if any questions/comments!

@tammy-baylis-swi tammy-baylis-swi force-pushed the NH-98561-update-integration-tests branch from 31f96cd to 9e76a56 Compare February 6, 2025 18:06
@tammy-baylis-swi tammy-baylis-swi marked this pull request as ready for review February 10, 2025 18:52
@tammy-baylis-swi tammy-baylis-swi requested a review from a team as a code owner February 10, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant