Sha256: 6455fd9f2e8e25fc0f5ae16c1509575f502e3b55c3f1351a9f85942a0217d35f

Contents?: true

Size: 708 Bytes

Versions: 5

Compression:

Stored size: 708 Bytes

Contents

require 'spec_helper'

# do some basic smoke testing with the Zeebe::Client against a real Zeebe gateway port,
# the aim is not to test all possible procedures available via GRPC
describe Zeebe::Client do
  let(:client) do
    Zeebe::Client::GatewayProtocol::Gateway::Stub.new('localhost:26500', :this_channel_is_insecure)
  end

  it 'has topology' do
    topology = client.topology(Zeebe::Client::GatewayProtocol::TopologyRequest.new)
    expect(topology.clusterSize).to eq(1)
    expect(topology.replicationFactor).to eq(1)
  end

  it 'lists workflows' do
    workflows = client.list_workflows(Zeebe::Client::GatewayProtocol::ListWorkflowsRequest.new).workflows
    expect(workflows).to eq([])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zeebe-client-0.5.0 spec/integration/client_spec.rb
zeebe-client-0.4.1 spec/integration/client_spec.rb
zeebe-client-0.4.0 spec/integration/client_spec.rb
zeebe-client-0.3.0 spec/integration/client_spec.rb
zeebe-client-0.2.0 spec/integration/client_spec.rb