Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for makeOutputWriterTestHook (0.18 sec)

  1. istioctl/pkg/multicluster/remote_secret_test.go

    	}
    	return w.b.Write(p)
    }
    func (w *fakeOutputWriter) String() string { return w.b.String() }
    
    func TestCreateRemoteSecrets(t *testing.T) {
    	prevOutputWriterStub := makeOutputWriterTestHook
    	defer func() { makeOutputWriterTestHook = prevOutputWriterStub }()
    
    	prevTokenWaitBackoff := tokenWaitBackoff
    	defer func() { tokenWaitBackoff = prevTokenWaitBackoff }()
    
    	sa := makeServiceAccount("saSecret")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. istioctl/pkg/multicluster/remote_secret.go

    		return err
    	}
    	return nil
    }
    
    type writer interface {
    	io.Writer
    	String() string
    }
    
    func makeOutputWriter() writer {
    	return &bytes.Buffer{}
    }
    
    var makeOutputWriterTestHook = makeOutputWriter
    
    // RemoteSecretAuthType is a strongly typed authentication type suitable for use with pflags.Var().
    type (
    	RemoteSecretAuthType string
    	SecretType           string
    )
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 23.3K bytes
    - Viewed (0)
Back to top