sasl_authenticate_request_test.go 300 B

123456789101112131415
  1. package sarama
  2. import "testing"
  3. var (
  4. saslAuthenticateRequest = []byte{
  5. 0, 0, 0, 3, 'f', 'o', 'o',
  6. }
  7. )
  8. func TestSaslAuthenticateRequest(t *testing.T) {
  9. request := new(SaslAuthenticateRequest)
  10. request.SaslAuthBytes = []byte(`foo`)
  11. testRequest(t, "basic", request, saslAuthenticateRequest)
  12. }