mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Remove -k from toCurl output
This commit is contained in:
		@@ -346,7 +346,7 @@ func (r *requestInfo) toCurl() string {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return fmt.Sprintf("curl -k -v -X%s %s '%s'", r.RequestVerb, headers, r.RequestURL)
 | 
						return fmt.Sprintf("curl -v -X%s %s '%s'", r.RequestVerb, headers, r.RequestURL)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// debuggingRoundTripper will display information about the requests passing
 | 
					// debuggingRoundTripper will display information about the requests passing
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -480,7 +480,7 @@ func TestDebuggingRoundTripper(t *testing.T) {
 | 
				
			|||||||
		},
 | 
							},
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			levels:              []DebugLevel{DebugCurlCommand},
 | 
								levels:              []DebugLevel{DebugCurlCommand},
 | 
				
			||||||
			expectedOutputLines: []string{fmt.Sprintf("curl -k -v -X")},
 | 
								expectedOutputLines: []string{fmt.Sprintf("curl -v -X")},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user