Skip to content

Add insecure binding for testing to knebind#64

Open
burnyd wants to merge 1 commit intoopenconfig:mainfrom
burnyd:insecure-binding
Open

Add insecure binding for testing to knebind#64
burnyd wants to merge 1 commit intoopenconfig:mainfrom
burnyd:insecure-binding

Conversation

@burnyd
Copy link

@burnyd burnyd commented Jan 5, 2023

Creating this small PR to allow the knebind functionality to allow insecure grpc connections without a cert for testing purposes.

@greg-dennis
Copy link
Contributor

Sorry, @burnyd, that I completely lost track of this. Would you still find something like this useful/needed?


func (d *kneDUT) DialGNMI(ctx context.Context, opts ...grpc.DialOption) (gpb.GNMIClient, error) {
//If the insecure field is set to true then set to insecure
if d.cfg.Insecure {
Copy link
Contributor

Choose a reason for hiding this comment

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

this feels like someting that should really be on the testbed as an option not on the bind
Either per testbed or per dut this would be set

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