Sha256: a42307c66364f949b85460e85739a227ca997cb32156a989c8ec8f44c79b9c26
Contents?: true
Size: 1022 Bytes
Versions: 2
Compression:
Stored size: 1022 Bytes
Contents
$:<< "lib/" require 'etcd' require 'uuid' ETCD_BIN = ENV['ETCD_BIN'] || './etcd/etcd' require 'functional_spec_helpers' require 'functional/lock_spec' require 'functional/read_only_client_spec' require 'functional/test_and_set_spec' require 'functional/watch_spec' include Etcd::FunctionalSpec::Helpers describe "Functional Test Suite" do before(:all) do start_etcd_servers end after(:all) do stop_etcd_servers end let(:client) do Etcd.client end let(:read_only_client) do Etcd.client(:allow_redirect=>false, :port=> 4004) end include_examples "read only client" include_examples "lock" include_examples "test_and_set" include_examples "watch" it "#set/#get" do key = random_key value = uuid.generate client.set(key, value) expect(client.get(key).value).to eq(value) end it "#leader" do expect(client.leader).to eq('http://127.0.0.1:7001') end it "#machines" do expect(client.machines).to include('http://127.0.0.1:4001') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
etcd-0.0.5 | spec/functional/client_spec.rb |
etcd-0.0.4 | spec/functional/client_spec.rb |