Class: DebugMessageTestService

Inherits:
Object
  • Object
show all
Includes:
GRPC::GenericService
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/debug_message_spec.rb

Overview

a test service that checks the cert of its peer

Instance Method Summary collapse

Methods included from GRPC::GenericService

included, underscore

Instance Method Details

#an_rpc_raises_abort(_req, _call) ⇒ Object



25
26
27
28
29
30
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/debug_message_spec.rb', line 25

def an_rpc_raises_abort(_req, _call)
  fail GRPC::Aborted.new(
    'aborted',
    {},
    TEST_DEBUG_MESSAGE)
end

#an_rpc_raises_standarderror(_req, _call) ⇒ Object



32
33
34
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/debug_message_spec.rb', line 32

def an_rpc_raises_standarderror(_req, _call)
  fail(StandardError, TEST_DEBUG_MESSAGE)
end