riak-client 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/RELNOTES.md +3 -0
- data/lib/riak/bucket.rb +1 -1
- data/lib/riak/client.rb +14 -7
- data/lib/riak/client/beefcake/messages.rb +13 -0
- data/lib/riak/multi.rb +101 -0
- data/lib/riak/multiexist.rb +14 -0
- data/lib/riak/multiget.rb +7 -107
- data/lib/riak/version.rb +1 -1
- metadata +12 -234
- data/.document +0 -5
- data/.gitignore +0 -44
- data/.rspec +0 -2
- data/Gemfile +0 -17
- data/Guardfile +0 -20
- data/Rakefile +0 -124
- data/riak-client.gemspec +0 -71
- data/spec/failover/failover.rb +0 -59
- data/spec/fixtures/bitcask.txt +0 -25
- data/spec/fixtures/cat.jpg +0 -0
- data/spec/fixtures/multipart-basic-conflict.txt +0 -15
- data/spec/fixtures/multipart-blank.txt +0 -7
- data/spec/fixtures/multipart-mapreduce.txt +0 -10
- data/spec/fixtures/multipart-with-body.txt +0 -16
- data/spec/fixtures/multipart-with-marked-tombstones.txt +0 -17
- data/spec/fixtures/multipart-with-unmarked-tombstone.txt +0 -16
- data/spec/fixtures/server.cert.crt +0 -15
- data/spec/fixtures/server.cert.key +0 -15
- data/spec/fixtures/test.pem +0 -1
- data/spec/fixtures/yz_schema_template.xml +0 -18
- data/spec/integration/riak/bucket_types_spec.rb +0 -308
- data/spec/integration/riak/conflict_resolution_spec.rb +0 -96
- data/spec/integration/riak/counters_spec.rb +0 -36
- data/spec/integration/riak/crdt/configuration_spec.rb +0 -38
- data/spec/integration/riak/crdt_search_spec.rb +0 -176
- data/spec/integration/riak/crdt_spec.rb +0 -332
- data/spec/integration/riak/crdt_validation/map_spec.rb +0 -63
- data/spec/integration/riak/crdt_validation/set_spec.rb +0 -122
- data/spec/integration/riak/encodings/crdt_spec.rb +0 -122
- data/spec/integration/riak/encodings/kv_spec.rb +0 -87
- data/spec/integration/riak/encodings/yz_spec.rb +0 -142
- data/spec/integration/riak/preflist_spec.rb +0 -43
- data/spec/integration/riak/properties_spec.rb +0 -69
- data/spec/integration/riak/protobuffs/interrupted_request_spec.rb +0 -33
- data/spec/integration/riak/protobuffs/timeouts_spec.rb +0 -178
- data/spec/integration/riak/protobuffs_backends_spec.rb +0 -40
- data/spec/integration/riak/search_spec.rb +0 -104
- data/spec/integration/riak/secondary_index_spec.rb +0 -72
- data/spec/integration/riak/security_spec.rb +0 -105
- data/spec/integration/riak/threading_spec.rb +0 -154
- data/spec/integration/riak/time_series_spec.rb +0 -212
- data/spec/integration/yokozuna/index_spec.rb +0 -61
- data/spec/integration/yokozuna/queries_spec.rb +0 -115
- data/spec/integration/yokozuna/schema_spec.rb +0 -49
- data/spec/riak/beefcake_protobuffs_backend/bucket_properties_operator_spec.rb +0 -247
- data/spec/riak/beefcake_protobuffs_backend/crdt_operator_spec.rb +0 -244
- data/spec/riak/beefcake_protobuffs_backend/object_methods_spec.rb +0 -53
- data/spec/riak/beefcake_protobuffs_backend/protocol_spec.rb +0 -189
- data/spec/riak/beefcake_protobuffs_backend/ts_cell_codec_spec.rb +0 -124
- data/spec/riak/beefcake_protobuffs_backend_spec.rb +0 -162
- data/spec/riak/bucket_properties_spec.rb +0 -135
- data/spec/riak/bucket_spec.rb +0 -275
- data/spec/riak/bucket_type_spec.rb +0 -50
- data/spec/riak/bucket_typed/bucket_spec.rb +0 -78
- data/spec/riak/client_spec.rb +0 -304
- data/spec/riak/core_ext/to_param_spec.rb +0 -15
- data/spec/riak/counter_spec.rb +0 -122
- data/spec/riak/crdt/counter_spec.rb +0 -55
- data/spec/riak/crdt/hyper_log_log_spec.rb +0 -56
- data/spec/riak/crdt/inner_counter_spec.rb +0 -21
- data/spec/riak/crdt/inner_flag_spec.rb +0 -39
- data/spec/riak/crdt/inner_map_spec.rb +0 -47
- data/spec/riak/crdt/inner_register_spec.rb +0 -40
- data/spec/riak/crdt/inner_set_spec.rb +0 -33
- data/spec/riak/crdt/map_spec.rb +0 -78
- data/spec/riak/crdt/set_spec.rb +0 -61
- data/spec/riak/crdt/shared_examples.rb +0 -88
- data/spec/riak/crdt/typed_collection_spec.rb +0 -225
- data/spec/riak/escape_spec.rb +0 -72
- data/spec/riak/feature_detection_spec.rb +0 -77
- data/spec/riak/index_collection_spec.rb +0 -53
- data/spec/riak/instrumentation_spec.rb +0 -124
- data/spec/riak/link_spec.rb +0 -85
- data/spec/riak/list_buckets_spec.rb +0 -41
- data/spec/riak/map_reduce/filter_builder_spec.rb +0 -32
- data/spec/riak/map_reduce/phase_spec.rb +0 -142
- data/spec/riak/map_reduce_spec.rb +0 -434
- data/spec/riak/multiget_spec.rb +0 -81
- data/spec/riak/node_spec.rb +0 -26
- data/spec/riak/robject_spec.rb +0 -542
- data/spec/riak/search/index_spec.rb +0 -72
- data/spec/riak/search/query_spec.rb +0 -88
- data/spec/riak/search/result_collection_spec.rb +0 -89
- data/spec/riak/search/result_document_spec.rb +0 -106
- data/spec/riak/search/schema_spec.rb +0 -63
- data/spec/riak/search_spec.rb +0 -107
- data/spec/riak/secondary_index_spec.rb +0 -225
- data/spec/riak/serializers_spec.rb +0 -121
- data/spec/riak/stamp_spec.rb +0 -54
- data/spec/riak/time_series/deletion_spec.rb +0 -33
- data/spec/riak/time_series/listing_spec.rb +0 -51
- data/spec/riak/time_series/submission_spec.rb +0 -35
- data/spec/riak/util/gzip_spec.rb +0 -49
- data/spec/riak/walk_spec_spec.rb +0 -203
- data/spec/spec_helper.rb +0 -67
- data/spec/support/certs/README.md +0 -13
- data/spec/support/certs/ca.crt +0 -21
- data/spec/support/certs/client.crl +0 -13
- data/spec/support/certs/client.crt +0 -94
- data/spec/support/certs/client.csr +0 -18
- data/spec/support/certs/client.key +0 -27
- data/spec/support/certs/empty_ca.crt +0 -21
- data/spec/support/certs/server.crl +0 -13
- data/spec/support/certs/server.crt +0 -94
- data/spec/support/certs/server.key +0 -27
- data/spec/support/crdt_search_config.rb +0 -112
- data/spec/support/crdt_search_fixtures.rb +0 -42
- data/spec/support/integration_setup.rb +0 -10
- data/spec/support/search_config.rb +0 -83
- data/spec/support/search_corpus_setup.rb +0 -39
- data/spec/support/test_client.rb +0 -52
- data/spec/support/test_client.yml.example +0 -10
- data/spec/support/unified_backend_examples.rb +0 -402
- data/spec/support/version_filter.rb +0 -12
- data/spec/support/wait_until.rb +0 -20
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Riak::TimeSeries::Submission do
|
4
|
-
subject{ described_class.new client, table_name }
|
5
|
-
let(:table_name){ 'GeoCheckin' }
|
6
|
-
let(:client){ instance_double('Riak::Client') }
|
7
|
-
let(:measurements){ double 'measurements' }
|
8
|
-
let(:backend) do
|
9
|
-
instance_double('Riak::Client::BeefcakeProtobuffsBackend').tap do |be|
|
10
|
-
allow(client).to receive(:backend).and_yield be
|
11
|
-
end
|
12
|
-
end
|
13
|
-
let(:operator) do
|
14
|
-
Riak::Client::BeefcakeProtobuffsBackend.configured?
|
15
|
-
instance_double(
|
16
|
-
'Riak::Client::BeefcakeProtobuffsBackend::TimeSeriesPutOperator'
|
17
|
-
).tap do |po|
|
18
|
-
allow(backend).to receive(:time_series_put_operator).
|
19
|
-
and_return(po)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
it 'initializes with client and table name' do
|
24
|
-
expect{ described_class.new client, table_name }.to_not raise_error
|
25
|
-
expect{ described_class.new client }.to raise_error ArgumentError
|
26
|
-
end
|
27
|
-
|
28
|
-
it 'passes measurements to a put operator' do
|
29
|
-
expect{ subject.measurements = measurements }.to_not raise_error
|
30
|
-
|
31
|
-
expect(operator).to receive(:put).with(table_name, measurements)
|
32
|
-
|
33
|
-
expect{ subject.write! }.to_not raise_error
|
34
|
-
end
|
35
|
-
end
|
data/spec/riak/util/gzip_spec.rb
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
# Borrowed from ActiveSupport
|
4
|
-
# https://github.com/rails/rails/blob/master/activesupport/test/gzip_test.rb
|
5
|
-
|
6
|
-
describe Riak::Util::Gzip do
|
7
|
-
describe ".compress" do
|
8
|
-
it "decompresses to the same value" do
|
9
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World"))).to eq("Hello World")
|
10
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World", Zlib::NO_COMPRESSION))).to eq("Hello World")
|
11
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World", Zlib::BEST_SPEED))).to eq("Hello World")
|
12
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World", Zlib::BEST_COMPRESSION))).to eq("Hello World")
|
13
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World", nil, Zlib::FILTERED))).to eq("Hello World")
|
14
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World", nil, Zlib::HUFFMAN_ONLY))).to eq("Hello World")
|
15
|
-
expect(Riak::Util::Gzip.decompress(Riak::Util::Gzip.compress("Hello World", nil, nil))).to eq("Hello World")
|
16
|
-
end
|
17
|
-
|
18
|
-
it "returns a binary string" do
|
19
|
-
compressed = Riak::Util::Gzip.compress('')
|
20
|
-
|
21
|
-
expect(compressed.encoding).to eq(Encoding.find('binary'))
|
22
|
-
expect(compressed).not_to be_blank
|
23
|
-
end
|
24
|
-
|
25
|
-
it "returns gzipped string by compression level" do
|
26
|
-
source_string = "Hello World"*100
|
27
|
-
|
28
|
-
gzipped_by_speed = Riak::Util::Gzip.compress(source_string, Zlib::BEST_SPEED)
|
29
|
-
expected_level = if RUBY_PLATFORM == 'java'
|
30
|
-
# NB HACK: on jruby, level is -1
|
31
|
-
-1
|
32
|
-
else
|
33
|
-
Zlib::BEST_SPEED
|
34
|
-
end
|
35
|
-
expect(Zlib::GzipReader.new(StringIO.new(gzipped_by_speed)).level).to eq(expected_level)
|
36
|
-
|
37
|
-
gzipped_by_best_compression = Riak::Util::Gzip.compress(source_string, Zlib::BEST_COMPRESSION)
|
38
|
-
expected_level = if RUBY_PLATFORM == 'java'
|
39
|
-
# NB HACK: on jruby, level is -1
|
40
|
-
-1
|
41
|
-
else
|
42
|
-
Zlib::BEST_COMPRESSION
|
43
|
-
end
|
44
|
-
expect(Zlib::GzipReader.new(StringIO.new(gzipped_by_best_compression)).level).to eq(expected_level)
|
45
|
-
|
46
|
-
expect(gzipped_by_best_compression.bytesize < gzipped_by_speed.bytesize).to be true
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
data/spec/riak/walk_spec_spec.rb
DELETED
@@ -1,203 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Riak::WalkSpec do
|
4
|
-
describe "initializing" do
|
5
|
-
describe "with a hash" do
|
6
|
-
it "is empty by default" do
|
7
|
-
spec = Riak::WalkSpec.new({})
|
8
|
-
expect(spec.bucket).to eq("_")
|
9
|
-
expect(spec.tag).to eq("_")
|
10
|
-
expect(spec.keep).to be_falsey
|
11
|
-
end
|
12
|
-
|
13
|
-
it "extracts the bucket" do
|
14
|
-
spec = Riak::WalkSpec.new({:bucket => "foo"})
|
15
|
-
expect(spec.bucket).to eq("foo")
|
16
|
-
expect(spec.tag).to eq("_")
|
17
|
-
expect(spec.keep).to be_falsey
|
18
|
-
end
|
19
|
-
|
20
|
-
it "extracts the tag" do
|
21
|
-
spec = Riak::WalkSpec.new({:tag => "foo"})
|
22
|
-
expect(spec.bucket).to eq("_")
|
23
|
-
expect(spec.tag).to eq("foo")
|
24
|
-
expect(spec.keep).to be_falsey
|
25
|
-
end
|
26
|
-
|
27
|
-
it "extracts the keep" do
|
28
|
-
spec = Riak::WalkSpec.new({:keep => true})
|
29
|
-
expect(spec.bucket).to eq("_")
|
30
|
-
expect(spec.tag).to eq("_")
|
31
|
-
expect(spec.keep).to be_truthy
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
describe "with three arguments for bucket, tag, and keep" do
|
36
|
-
it "assigns the bucket, tag, and keep" do
|
37
|
-
spec = Riak::WalkSpec.new("foo", "next", false)
|
38
|
-
expect(spec.bucket).to eq("foo")
|
39
|
-
expect(spec.tag).to eq("next")
|
40
|
-
expect(spec.keep).to be_falsey
|
41
|
-
end
|
42
|
-
|
43
|
-
it "specifies the '_' bucket when false or nil" do
|
44
|
-
spec = Riak::WalkSpec.new(nil, "next", false)
|
45
|
-
expect(spec.bucket).to eq("_")
|
46
|
-
spec = Riak::WalkSpec.new(false, "next", false)
|
47
|
-
expect(spec.bucket).to eq("_")
|
48
|
-
end
|
49
|
-
|
50
|
-
it "specifies the '_' tag when false or nil" do
|
51
|
-
spec = Riak::WalkSpec.new("foo", nil, false)
|
52
|
-
expect(spec.tag).to eq("_")
|
53
|
-
spec = Riak::WalkSpec.new("foo", false, false)
|
54
|
-
expect(spec.tag).to eq("_")
|
55
|
-
end
|
56
|
-
|
57
|
-
it "make the keep falsey when false or nil" do
|
58
|
-
spec = Riak::WalkSpec.new(nil, nil, nil)
|
59
|
-
expect(spec.keep).to be_falsey
|
60
|
-
spec = Riak::WalkSpec.new(nil, nil, false)
|
61
|
-
expect(spec.keep).to be_falsey
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
it "raises an ArgumentError for invalid arguments" do
|
66
|
-
expect { Riak::WalkSpec.new }.to raise_error(ArgumentError)
|
67
|
-
expect { Riak::WalkSpec.new("foo") }.to raise_error(ArgumentError)
|
68
|
-
expect { Riak::WalkSpec.new("foo", "bar") }.to raise_error(ArgumentError)
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
describe "converting to a string" do
|
73
|
-
before :each do
|
74
|
-
@spec = Riak::WalkSpec.new({})
|
75
|
-
end
|
76
|
-
|
77
|
-
it "converts to the empty spec by default" do
|
78
|
-
expect(@spec.to_s).to eq("_,_,_")
|
79
|
-
end
|
80
|
-
|
81
|
-
it "includes the bucket when set" do
|
82
|
-
@spec.bucket = "foo"
|
83
|
-
expect(@spec.to_s).to eq("foo,_,_")
|
84
|
-
end
|
85
|
-
|
86
|
-
it "includes the tag when set" do
|
87
|
-
@spec.tag = "next"
|
88
|
-
expect(@spec.to_s).to eq("_,next,_")
|
89
|
-
end
|
90
|
-
|
91
|
-
it "includes the keep when true" do
|
92
|
-
@spec.keep = true
|
93
|
-
expect(@spec.to_s).to eq("_,_,1")
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
describe "creating from a list of parameters" do
|
98
|
-
it "detects hashes and WalkSpecs interleaved with other parameters" do
|
99
|
-
specs = Riak::WalkSpec.normalize(nil, "next", nil, {:bucket => "foo"}, Riak::WalkSpec.new({:tag => "child", :keep => true}))
|
100
|
-
expect(specs.size).to eq(3)
|
101
|
-
expect(specs).to be_all {|s| s.kind_of?(Riak::WalkSpec) }
|
102
|
-
expect(specs.join("/")).to eq("_,next,_/foo,_,_/_,child,1")
|
103
|
-
end
|
104
|
-
|
105
|
-
it "raises an error when given invalid number of parameters" do
|
106
|
-
expect { Riak::WalkSpec.normalize("foo") }.to raise_error(ArgumentError)
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
describe "matching other objects with ===" do
|
111
|
-
before :each do
|
112
|
-
@spec = Riak::WalkSpec.new({})
|
113
|
-
end
|
114
|
-
|
115
|
-
it "doesn't match objects that aren't links or walk specs" do
|
116
|
-
expect(@spec).not_to be === "foo"
|
117
|
-
end
|
118
|
-
|
119
|
-
describe "matching links" do
|
120
|
-
before :each do
|
121
|
-
@link = Riak::Link.new("/riak/foo/bar", "next")
|
122
|
-
end
|
123
|
-
|
124
|
-
it "matches a link when the bucket and tag are not specified" do
|
125
|
-
expect(@spec).to be === @link
|
126
|
-
end
|
127
|
-
|
128
|
-
it "matches a link when the bucket is the same" do
|
129
|
-
@spec.bucket = "foo"
|
130
|
-
expect(@spec).to be === @link
|
131
|
-
end
|
132
|
-
|
133
|
-
it "doesn't match a link when the bucket is different" do
|
134
|
-
@spec.bucket = "bar"
|
135
|
-
expect(@spec).not_to be === @link
|
136
|
-
end
|
137
|
-
|
138
|
-
it "matches a link when the tag is the same" do
|
139
|
-
@spec.tag = "next"
|
140
|
-
expect(@spec).to be === @link
|
141
|
-
end
|
142
|
-
|
143
|
-
it "doesn't match a link when the tag is different" do
|
144
|
-
@spec.tag = "previous"
|
145
|
-
expect(@spec).not_to be === @link
|
146
|
-
end
|
147
|
-
|
148
|
-
it "matches a link when the bucket and tag are the same" do
|
149
|
-
@spec.bucket = "foo"
|
150
|
-
expect(@spec).to be === @link
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
describe "matching walk specs" do
|
155
|
-
before :each do
|
156
|
-
@other = Riak::WalkSpec.new({})
|
157
|
-
end
|
158
|
-
|
159
|
-
it "matches a walk spec that is equivalent" do
|
160
|
-
expect(@spec).to be === @other
|
161
|
-
end
|
162
|
-
|
163
|
-
it "matches a walk spec that has a different keep value" do
|
164
|
-
@other.keep = true
|
165
|
-
expect(@spec).not_to be === @other
|
166
|
-
end
|
167
|
-
|
168
|
-
it "matches a walk spec with a more specific bucket" do
|
169
|
-
@other.bucket = "foo"
|
170
|
-
expect(@spec).to be === @other
|
171
|
-
end
|
172
|
-
|
173
|
-
it "matches a walk spec with the same bucket" do
|
174
|
-
@other.bucket = "foo"
|
175
|
-
@spec.bucket = "foo"
|
176
|
-
expect(@spec).to be === @other
|
177
|
-
end
|
178
|
-
|
179
|
-
it "doesn't match a walk spec with a different bucket" do
|
180
|
-
@other.bucket = "foo"
|
181
|
-
@spec.bucket = "bar"
|
182
|
-
expect(@spec).not_to be === @other
|
183
|
-
end
|
184
|
-
|
185
|
-
it "doesn't match a walk spec with a more specific tag" do
|
186
|
-
@other.tag = "next"
|
187
|
-
expect(@spec).to be === @other
|
188
|
-
end
|
189
|
-
|
190
|
-
it "matches a walk spec with the same tag" do
|
191
|
-
@other.tag = "next"
|
192
|
-
@spec.tag = "next"
|
193
|
-
expect(@spec).to be === @other
|
194
|
-
end
|
195
|
-
|
196
|
-
it "doesn't match a walk spec with a different tag" do
|
197
|
-
@other.tag = "next"
|
198
|
-
@spec.tag = "previous"
|
199
|
-
expect(@spec).not_to be === @other
|
200
|
-
end
|
201
|
-
end
|
202
|
-
end
|
203
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
-
|
4
|
-
if ENV['COVERAGE']
|
5
|
-
require 'simplecov'
|
6
|
-
SimpleCov.start do
|
7
|
-
if ENV['COVERAGE_SUITE']
|
8
|
-
SimpleCov.command_name ENV['COVERAGE_SUITE']
|
9
|
-
end
|
10
|
-
add_filter 'vendor/'
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
|
15
|
-
require 'rubygems' # Use the gems path only for the spec suite
|
16
|
-
require 'riak'
|
17
|
-
require 'rspec'
|
18
|
-
require 'stringio'
|
19
|
-
require 'pp'
|
20
|
-
|
21
|
-
# Only the tests should really get away with this.
|
22
|
-
Riak.disable_list_keys_warnings = true
|
23
|
-
|
24
|
-
%w[integration_setup
|
25
|
-
version_filter
|
26
|
-
wait_until
|
27
|
-
search_corpus_setup
|
28
|
-
unified_backend_examples
|
29
|
-
test_client
|
30
|
-
search_config
|
31
|
-
crdt_search_config
|
32
|
-
crdt_search_fixtures
|
33
|
-
].each do |file|
|
34
|
-
require File.join("support", file)
|
35
|
-
end
|
36
|
-
|
37
|
-
RSpec.configure do |config|
|
38
|
-
#config.debug = true
|
39
|
-
config.mock_with :rspec
|
40
|
-
|
41
|
-
config.before(:each) do
|
42
|
-
Riak::RObject.on_conflict_hooks.clear
|
43
|
-
end
|
44
|
-
|
45
|
-
if TestClient.test_client_configuration[:authentication]
|
46
|
-
config.filter_run_excluding no_security: true
|
47
|
-
else
|
48
|
-
config.filter_run_excluding yes_security: true
|
49
|
-
end
|
50
|
-
|
51
|
-
config.filter_run :focus => true
|
52
|
-
config.run_all_when_everything_filtered = true
|
53
|
-
|
54
|
-
if defined?(::Java)
|
55
|
-
config.seed = Time.now.utc
|
56
|
-
else
|
57
|
-
config.order = :random
|
58
|
-
end
|
59
|
-
|
60
|
-
config.raise_errors_for_deprecations!
|
61
|
-
|
62
|
-
begin
|
63
|
-
require 'instrumentable'
|
64
|
-
rescue LoadError => e
|
65
|
-
config.filter_run_excluding instrumentation: true
|
66
|
-
end
|
67
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
**DO NOT USE THESE IN PRODUCTION**
|
2
|
-
|
3
|
-
This directory has certificates and a key for testing Riak authentication.
|
4
|
-
|
5
|
-
* server.key - a private key for a Riak server
|
6
|
-
* server.crt - the certificate for server.key
|
7
|
-
* ca.crt - a certificate for the CA that issued server.crt
|
8
|
-
* empty_ca.crt - a certificate for a CA that has and cannot ever issue a
|
9
|
-
certificate (I deleted its private key)
|
10
|
-
|
11
|
-
**DO NOT USE THESE IN PRODUCTION**
|
12
|
-
|
13
|
-
These were generated using https://github.com/basho-labs/riak-ruby-ca .
|
data/spec/support/certs/ca.crt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDjDCCAnQCCQDCaCbuH5N1HjANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMC
|
3
|
-
VVMxEDAOBgNVBAgMB0Zsb3JpZGExDjAMBgNVBAcMBU1pYW1pMQ4wDAYDVQQKDAVC
|
4
|
-
YXNobzEZMBcGA1UECwwQUmlhayBSdWJ5IENsaWVudDELMAkGA1UEAwwCQ0ExHjAc
|
5
|
-
BgkqhkiG9w0BCQEWD2JyeWNlQGJhc2hvLmNvbTAeFw0xNDA5MTgyMjU4MDJaFw0y
|
6
|
-
NDA5MTUyMjU4MDJaMIGHMQswCQYDVQQGEwJVUzEQMA4GA1UECAwHR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 -1,13 +0,0 @@
|
|
1
|
-
-----BEGIN X509 CRL-----
|
2
|
-
MIIB+zCB5AIBATANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMCVVMxEDAOBgNV
|
3
|
-
BAgMB0Zsb3JpZGExDjAMBgNVBAcMBU1pYW1pMQ4wDAYDVQQKDAVCYXNobzEZMBcG
|
4
|
-
A1UECwwQUmlhayBSdWJ5IENsaWVudDELMAkGA1UEAwwCQ0ExHjAcBgkqhkiG9w0B
|
5
|
-
CQEWD2JyeWNlQGJhc2hvLmNvbRcNMTQwOTE4MjI1ODAyWhcNMTQxMDE4MjI1ODAy
|
6
|
-
WjAWMBQCAzA2BBcNMTQwOTE4MjI1ODAyWqAQMA4wDAYDVR0UBAUCAxgkajANBgkq
|
7
|
-
hkiG9w0BAQUFAAOCAQEAkPqlW1eWCzJjoj2d2vP/yW2BmHW8AMcn3wSQe3rLFz33
|
8
|
-
7/qznQ8Ne5HSaoUW1CFdILQeKrcv+2fXxoEh+QF2Xdf80eL3OaBvaDtedvIrwA5q
|
9
|
-
2QWSbvtVKksRx708ngquOS+jx5nYmodPGgCKQLxDTu7yKVxSQSL8m5C+Ki8N+mT2
|
10
|
-
XR1w72Ds9F/QMyziWCwjgvOKG9oxFG0oO+e+GcXxtkbpWO8w3nQnf+KotjPWq5fa
|
11
|
-
zOE8Dts9F36awoLlw3SW1aEv2mqPn5CIDsKKx1pQ52Oe0/UKSHOTqqHBzggJ7GFz
|
12
|
-
OnxmjdZ2YhxFR7QVUX2SlvubvjfIn0NQJbTiswynTQ==
|
13
|
-
-----END X509 CRL-----
|
@@ -1,94 +0,0 @@
|
|
1
|
-
Certificate:
|
2
|
-
Data:
|
3
|
-
Version: 3 (0x2)
|
4
|
-
Serial Number: 3159556 (0x303604)
|
5
|
-
Signature Algorithm: sha1WithRSAEncryption
|
6
|
-
Issuer: C=US, ST=Florida, L=Miami, O=Basho, OU=Riak Ruby Client, CN=CA/emailAddress=bryce@basho.com
|
7
|
-
Validity
|
8
|
-
Not Before: Sep 18 22:58:02 2014 GMT
|
9
|
-
Not After : Sep 15 22:58:02 2024 GMT
|
10
|
-
Subject: C=US, ST=Florida, O=Basho, OU=Riak Ruby client, CN=certuser/emailAddress=bryce@basho.com
|
11
|
-
Subject Public Key Info:
|
12
|
-
Public Key Algorithm: rsaEncryption
|
13
|
-
Public-Key: (2048 bit)
|
14
|
-
Modulus:
|
15
|
-
00:c7:41:8f:53:a0:25:0a:03:62:ba:90:f4:a6:ee:
|
16
|
-
4e:97:5f:70:a6:9f:23:38:2f:4b:16:b2:81:eb:95:
|
17
|
-
d1:0d:64:56:11:fb:e3:07:7b:cd:07:d8:64:eb:9f:
|
18
|
-
b6:4b:3e:54:a3:eb:79:8e:0f:ae:a4:eb:53:ba:44:
|
19
|
-
a2:e2:ca:d8:94:34:75:a9:62:d7:d9:34:41:8f:7c:
|
20
|
-
a2:9f:90:84:5a:d7:c4:c5:76:d8:89:6f:f6:5e:40:
|
21
|
-
89:34:f6:56:d5:e6:55:d7:a6:44:52:8c:27:9b:75:
|
22
|
-
66:b4:84:f6:5d:e9:5d:a8:6c:a7:27:f5:bc:28:23:
|
23
|
-
1a:ec:94:e4:8f:26:fd:22:19:44:dc:ff:ab:c7:76:
|
24
|
-
c5:8b:69:67:1d:58:b5:54:43:9c:19:5e:f6:47:4a:
|
25
|
-
83:74:8c:43:bb:48:bd:b1:03:53:4f:a9:8e:be:8e:
|
26
|
-
df:a5:69:d3:e9:2f:92:9e:86:3f:27:ca:62:bb:6f:
|
27
|
-
4f:f0:d7:62:7a:41:b5:32:b7:f1:8d:a5:2e:c1:ee:
|
28
|
-
9e:58:d3:9a:c8:5c:f6:26:d4:23:92:46:89:43:83:
|
29
|
-
66:b8:7b:50:af:eb:31:36:0e:4d:a6:99:79:19:22:
|
30
|
-
61:c4:80:06:b1:09:15:d3:eb:96:d6:ea:09:c0:10:
|
31
|
-
7c:23:99:55:03:43:a5:1a:1e:1a:3d:04:88:51:4d:
|
32
|
-
5b:65
|
33
|
-
Exponent: 65537 (0x10001)
|
34
|
-
X509v3 extensions:
|
35
|
-
X509v3 Basic Constraints:
|
36
|
-
CA:FALSE
|
37
|
-
Netscape Cert Type:
|
38
|
-
SSL Client, SSL Server
|
39
|
-
X509v3 Key Usage:
|
40
|
-
Digital Signature, Non Repudiation, Key Encipherment
|
41
|
-
Netscape Comment:
|
42
|
-
Riak Ruby Client Testing Certificate
|
43
|
-
X509v3 Subject Key Identifier:
|
44
|
-
EF:CB:1D:7C:D9:6F:E3:4C:D6:5C:7A:8B:F7:19:88:27:35:4C:84:19
|
45
|
-
X509v3 Authority Key Identifier:
|
46
|
-
DirName:/C=US/ST=Florida/L=Miami/O=Basho/OU=Riak Ruby Client/CN=CA/emailAddress=bryce@basho.com
|
47
|
-
serial:C2:68:26:EE:1F:93:75:1E
|
48
|
-
|
49
|
-
X509v3 Extended Key Usage:
|
50
|
-
TLS Web Server Authentication, TLS Web Client Authentication
|
51
|
-
Signature Algorithm: sha1WithRSAEncryption
|
52
|
-
46:28:58:b9:b4:d8:95:c1:bd:3a:1c:9e:96:44:bf:4a:b2:a7:
|
53
|
-
a4:f7:be:0f:4a:d2:96:aa:77:f0:d3:6c:f9:06:cb:ec:1c:6f:
|
54
|
-
88:a3:fa:d0:39:e9:75:eb:39:33:0e:6e:6e:5c:99:b6:7d:70:
|
55
|
-
cf:53:f9:06:d5:97:2f:1c:ca:f5:32:97:06:93:8f:cd:43:82:
|
56
|
-
3e:8b:b3:f4:d7:e9:f3:76:9b:83:9f:6d:f6:b0:e4:e4:de:bc:
|
57
|
-
26:05:5a:12:bf:28:8e:65:2d:c6:ce:c6:49:fa:30:6f:07:a7:
|
58
|
-
88:8d:0f:60:81:ac:96:5c:bb:8b:0f:2b:88:9d:90:b7:c5:23:
|
59
|
-
0d:83:29:4a:41:b6:c8:5e:4e:61:09:6a:db:73:40:c0:d0:af:
|
60
|
-
9f:07:38:2d:5f:d0:de:46:31:c4:90:cf:73:01:1c:7c:c8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