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

Add insecure binding for testing to knebind #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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?

@@ -120,6 +120,10 @@ func (d *kneDUT) resetConfig() error {
}

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