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

[chore][confmap] Add string representation to mocked env provider #10559

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Jul 8, 2024

Description

Adds string representation to all inputs returned by mock env provider used in tests.

The real env provider (and all other providers on this repository) do this by default since they use NewRetrievedFromYAML.

Note that certain types are not really obtainable with the real env provider (e.g. int32 or float64). I have kept them and added the string representation manually.

Link to tracking issue

Needed for #10554

Copy link

codecov bot commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.33%. Comparing base (de8bd27) to head (f8f5aa0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10559   +/-   ##
=======================================
  Coverage   92.33%   92.33%           
=======================================
  Files         393      393           
  Lines       18647    18647           
=======================================
  Hits        17218    17218           
  Misses       1069     1069           
  Partials      360      360           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mx-psi mx-psi marked this pull request as ready for review July 8, 2024 18:34
@mx-psi mx-psi requested review from a team and TylerHelmuth July 8, 2024 18:34
@mx-psi mx-psi merged commit 9d990b9 into open-telemetry:main Jul 9, 2024
50 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 9, 2024
mx-psi added a commit that referenced this pull request Jul 12, 2024
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Makes type resolution strict and conforming to the behavior described in
[the env vars
RFC](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/rfcs/env-vars.md)

Depends on:

- #10553
- #10555
- #10559
- open-telemetry/opentelemetry-collector-contrib/pull/33950

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #9532, Fixes #8565

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants