You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[extensionauth] Split extensionauth.Client by protocol type (#12574)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
An attempt at splitting `extensionauth.Client` by protocol type.
open-telemetry/opentelemetry-collector-contrib/pull/38451 removes usages
of the `NewClient` and `NewServer` constructor
---------
Co-authored-by: Jade Guiton <[email protected]>
Copy file name to clipboardExpand all lines: .chloggen/mx-psi_seal-them-all.yaml
+3-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ issues: [12567]
16
16
# These lines will be padded with 2 spaces and then inserted directly into the document.
17
17
# Use pipe (|) for multiline entries.
18
18
subtext: |
19
-
Use the standard `extensionauth.NewClient` constructor to create a client with a specific mock implementation. Use `extensionauthtest.NewErrorClient` to create a client that always returns an error.
19
+
- Use `extensionauthtest.NewNopClient` to create a client with a noop implementation.
20
+
- Use `extensionauthtest.NewErrorClient` to create a client that always returns an error.
21
+
- Implement the `extensionauth` interfaces for custom mock client implementations.
20
22
21
23
# Optional: The change log or logs in which this entry should be included.
0 commit comments