sasl_handshake_request_test.go 308 B

1234567891011121314151617
  1. package sarama
  2. import "testing"
  3. var (
  4. baseSaslRequest = []byte{
  5. 0, 3, 'f', 'o', 'o', // Mechanism
  6. }
  7. )
  8. func TestSaslHandshakeRequest(t *testing.T) {
  9. var request *SaslHandshakeRequest
  10. request = new(SaslHandshakeRequest)
  11. request.Mechanism = "foo"
  12. testRequest(t, "basic", request, baseSaslRequest)
  13. }