sasl_authenticate_request_test.go 338 B

1234567891011121314151617
  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. var request *SaslAuthenticateRequest
  10. request = new(SaslAuthenticateRequest)
  11. request.SaslAuthBytes = []byte(`foo`)
  12. testRequest(t, "basic", request, saslAuthenticateRequest)
  13. }