Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hostinjection (0.25 sec)

  1. src/net/smtp/smtp_test.go

    		if err != nil {
    			t.Fatalf("NewClient: %v", err)
    		}
    		defer c.Close()
    		c.localName = "customhost"
    		err = nil
    
    		switch i {
    		case 0:
    			err = c.Hello("hostinjection>\n\rDATA\r\nInjected message body\r\n.\r\nQUIT\r\n")
    			if err == nil {
    				t.Errorf("Expected Hello to be rejected due to a message injection attempt")
    			}
    			err = c.Hello("customhost")
    		case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. pkg/kube/inject/inject_test.go

    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/util/sets"
    )
    
    // TestInjection tests both the mutating webhook and kube-inject. It does this by sharing the same input and output
    // test files and running through the two different code paths.
    func TestInjection(t *testing.T) {
    	type testCase struct {
    		in            string
    		want          string
    		setFlags      []string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top