Sha256: dc3a98c87f8b49bd38eb2d5679a65d0c34320e0a1681f4d0e98bef489a0485a2

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'

describe Etcd::Maintenance do

  let(:stub) { local_stub(Etcd::Maintenance) }

  describe "#member_status" do
    subject { stub.member_status }
    it { is_expected.to be_an_instance_of(Etcdserverpb::StatusResponse)}
  end

  describe '#alarm_list' do
    let(:leader_id) { stub.member_status.leader }
    subject { stub.alarms(:get, leader_id)}
    it { is_expected.to be_an_instance_of(Etcdserverpb::AlarmResponse) }
  end

  describe '#deactivate_alarms' do
    let(:leader_id) { stub.member_status.leader }
    subject { stub.alarms(:deactivate, leader_id, :NOSPACE) }
    it { is_expected.to be_an_instance_of(Etcdserverpb::AlarmResponse) }
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
etcdv3-0.2.0 spec/etcdv3/maintenance_spec.rb
etcdv3-0.1.5 spec/etcdv3/maintenance_spec.rb
etcdv3-0.1.4 spec/etcdv3/maintenance_spec.rb