forked from envoyproxy/xds-relay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xdsclient integration tests (envoyproxy#63)
The xdsimpl integration tests doesn't need a envoy sidecar and can be written as integration tests rather than [e2e tests](envoyproxy#62). The integration tests help in strengthening the grpc mock behaviors in the upstream client unit tests. The tests use g-c-p server and xdsclient interacting over real grpc. Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
- Loading branch information
1 parent
22fd938
commit 2cbd631
Showing
3 changed files
with
315 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package integration | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/envoyproxy/xds-relay/internal/pkg/log" | ||
) | ||
|
||
// nolint | ||
type gcpLogger struct { | ||
logger log.Logger | ||
} | ||
|
||
func (logger gcpLogger) Debugf(format string, args ...interface{}) { | ||
logger.logger.Debug(context.Background(), format, args) | ||
} | ||
|
||
func (logger gcpLogger) Infof(format string, args ...interface{}) { | ||
logger.logger.Info(context.Background(), format, args) | ||
} | ||
|
||
func (logger gcpLogger) Warnf(format string, args ...interface{}) { | ||
logger.logger.Warn(context.Background(), format, args) | ||
} | ||
|
||
func (logger gcpLogger) Errorf(format string, args ...interface{}) { | ||
logger.logger.Error(context.Background(), format, args) | ||
} |
Oops, something went wrong.