riak-client 2.5.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/RELNOTES.md +3 -0
  4. data/lib/riak/bucket.rb +1 -1
  5. data/lib/riak/client.rb +14 -7
  6. data/lib/riak/client/beefcake/messages.rb +13 -0
  7. data/lib/riak/multi.rb +101 -0
  8. data/lib/riak/multiexist.rb +14 -0
  9. data/lib/riak/multiget.rb +7 -107
  10. data/lib/riak/version.rb +1 -1
  11. metadata +12 -234
  12. data/.document +0 -5
  13. data/.gitignore +0 -44
  14. data/.rspec +0 -2
  15. data/Gemfile +0 -17
  16. data/Guardfile +0 -20
  17. data/Rakefile +0 -124
  18. data/riak-client.gemspec +0 -71
  19. data/spec/failover/failover.rb +0 -59
  20. data/spec/fixtures/bitcask.txt +0 -25
  21. data/spec/fixtures/cat.jpg +0 -0
  22. data/spec/fixtures/multipart-basic-conflict.txt +0 -15
  23. data/spec/fixtures/multipart-blank.txt +0 -7
  24. data/spec/fixtures/multipart-mapreduce.txt +0 -10
  25. data/spec/fixtures/multipart-with-body.txt +0 -16
  26. data/spec/fixtures/multipart-with-marked-tombstones.txt +0 -17
  27. data/spec/fixtures/multipart-with-unmarked-tombstone.txt +0 -16
  28. data/spec/fixtures/server.cert.crt +0 -15
  29. data/spec/fixtures/server.cert.key +0 -15
  30. data/spec/fixtures/test.pem +0 -1
  31. data/spec/fixtures/yz_schema_template.xml +0 -18
  32. data/spec/integration/riak/bucket_types_spec.rb +0 -308
  33. data/spec/integration/riak/conflict_resolution_spec.rb +0 -96
  34. data/spec/integration/riak/counters_spec.rb +0 -36
  35. data/spec/integration/riak/crdt/configuration_spec.rb +0 -38
  36. data/spec/integration/riak/crdt_search_spec.rb +0 -176
  37. data/spec/integration/riak/crdt_spec.rb +0 -332
  38. data/spec/integration/riak/crdt_validation/map_spec.rb +0 -63
  39. data/spec/integration/riak/crdt_validation/set_spec.rb +0 -122
  40. data/spec/integration/riak/encodings/crdt_spec.rb +0 -122
  41. data/spec/integration/riak/encodings/kv_spec.rb +0 -87
  42. data/spec/integration/riak/encodings/yz_spec.rb +0 -142
  43. data/spec/integration/riak/preflist_spec.rb +0 -43
  44. data/spec/integration/riak/properties_spec.rb +0 -69
  45. data/spec/integration/riak/protobuffs/interrupted_request_spec.rb +0 -33
  46. data/spec/integration/riak/protobuffs/timeouts_spec.rb +0 -178
  47. data/spec/integration/riak/protobuffs_backends_spec.rb +0 -40
  48. data/spec/integration/riak/search_spec.rb +0 -104
  49. data/spec/integration/riak/secondary_index_spec.rb +0 -72
  50. data/spec/integration/riak/security_spec.rb +0 -105
  51. data/spec/integration/riak/threading_spec.rb +0 -154
  52. data/spec/integration/riak/time_series_spec.rb +0 -212
  53. data/spec/integration/yokozuna/index_spec.rb +0 -61
  54. data/spec/integration/yokozuna/queries_spec.rb +0 -115
  55. data/spec/integration/yokozuna/schema_spec.rb +0 -49
  56. data/spec/riak/beefcake_protobuffs_backend/bucket_properties_operator_spec.rb +0 -247
  57. data/spec/riak/beefcake_protobuffs_backend/crdt_operator_spec.rb +0 -244
  58. data/spec/riak/beefcake_protobuffs_backend/object_methods_spec.rb +0 -53
  59. data/spec/riak/beefcake_protobuffs_backend/protocol_spec.rb +0 -189
  60. data/spec/riak/beefcake_protobuffs_backend/ts_cell_codec_spec.rb +0 -124
  61. data/spec/riak/beefcake_protobuffs_backend_spec.rb +0 -162
  62. data/spec/riak/bucket_properties_spec.rb +0 -135
  63. data/spec/riak/bucket_spec.rb +0 -275
  64. data/spec/riak/bucket_type_spec.rb +0 -50
  65. data/spec/riak/bucket_typed/bucket_spec.rb +0 -78
  66. data/spec/riak/client_spec.rb +0 -304
  67. data/spec/riak/core_ext/to_param_spec.rb +0 -15
  68. data/spec/riak/counter_spec.rb +0 -122
  69. data/spec/riak/crdt/counter_spec.rb +0 -55
  70. data/spec/riak/crdt/hyper_log_log_spec.rb +0 -56
  71. data/spec/riak/crdt/inner_counter_spec.rb +0 -21
  72. data/spec/riak/crdt/inner_flag_spec.rb +0 -39
  73. data/spec/riak/crdt/inner_map_spec.rb +0 -47
  74. data/spec/riak/crdt/inner_register_spec.rb +0 -40
  75. data/spec/riak/crdt/inner_set_spec.rb +0 -33
  76. data/spec/riak/crdt/map_spec.rb +0 -78
  77. data/spec/riak/crdt/set_spec.rb +0 -61
  78. data/spec/riak/crdt/shared_examples.rb +0 -88
  79. data/spec/riak/crdt/typed_collection_spec.rb +0 -225
  80. data/spec/riak/escape_spec.rb +0 -72
  81. data/spec/riak/feature_detection_spec.rb +0 -77
  82. data/spec/riak/index_collection_spec.rb +0 -53
  83. data/spec/riak/instrumentation_spec.rb +0 -124
  84. data/spec/riak/link_spec.rb +0 -85
  85. data/spec/riak/list_buckets_spec.rb +0 -41
  86. data/spec/riak/map_reduce/filter_builder_spec.rb +0 -32
  87. data/spec/riak/map_reduce/phase_spec.rb +0 -142
  88. data/spec/riak/map_reduce_spec.rb +0 -434
  89. data/spec/riak/multiget_spec.rb +0 -81
  90. data/spec/riak/node_spec.rb +0 -26
  91. data/spec/riak/robject_spec.rb +0 -542
  92. data/spec/riak/search/index_spec.rb +0 -72
  93. data/spec/riak/search/query_spec.rb +0 -88
  94. data/spec/riak/search/result_collection_spec.rb +0 -89
  95. data/spec/riak/search/result_document_spec.rb +0 -106
  96. data/spec/riak/search/schema_spec.rb +0 -63
  97. data/spec/riak/search_spec.rb +0 -107
  98. data/spec/riak/secondary_index_spec.rb +0 -225
  99. data/spec/riak/serializers_spec.rb +0 -121
  100. data/spec/riak/stamp_spec.rb +0 -54
  101. data/spec/riak/time_series/deletion_spec.rb +0 -33
  102. data/spec/riak/time_series/listing_spec.rb +0 -51
  103. data/spec/riak/time_series/submission_spec.rb +0 -35
  104. data/spec/riak/util/gzip_spec.rb +0 -49
  105. data/spec/riak/walk_spec_spec.rb +0 -203
  106. data/spec/spec_helper.rb +0 -67
  107. data/spec/support/certs/README.md +0 -13
  108. data/spec/support/certs/ca.crt +0 -21
  109. data/spec/support/certs/client.crl +0 -13
  110. data/spec/support/certs/client.crt +0 -94
  111. data/spec/support/certs/client.csr +0 -18
  112. data/spec/support/certs/client.key +0 -27
  113. data/spec/support/certs/empty_ca.crt +0 -21
  114. data/spec/support/certs/server.crl +0 -13
  115. data/spec/support/certs/server.crt +0 -94
  116. data/spec/support/certs/server.key +0 -27
  117. data/spec/support/crdt_search_config.rb +0 -112
  118. data/spec/support/crdt_search_fixtures.rb +0 -42
  119. data/spec/support/integration_setup.rb +0 -10
  120. data/spec/support/search_config.rb +0 -83
  121. data/spec/support/search_corpus_setup.rb +0 -39
  122. data/spec/support/test_client.rb +0 -52
  123. data/spec/support/test_client.yml.example +0 -10
  124. data/spec/support/unified_backend_examples.rb +0 -402
  125. data/spec/support/version_filter.rb +0 -12
  126. data/spec/support/wait_until.rb +0 -20
@@ -1,18 +0,0 @@
1
- -----BEGIN CERTIFICATE REQUEST-----
2
- MIIC0zCCAbsCAQAwgY0xCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdGbG9yaWRhMQ4w
3
- DAYDVQQHDAVNaWFtaTEOMAwGA1UECgwFQmFzaG8xGTAXBgNVBAsMEFJpYWsgUnVi
4
- eSBjbGllbnQxETAPBgNVBAMMCGNlcnR1c2VyMR4wHAYJKoZIhvcNAQkBFg9icnlj
5
- ZUBiYXNoby5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDU0OCf
6
- hMWM7To3szO9M0KJj7BTm/xG2TrtT6mKXwV1OE6msGIn+f3+/ykY5I25+iXgsCg0
7
- JK7zP9zgMda60H+x01JqZHfrY3Q0mULWKM3oihqMlR5xW6PYQtW3hsnrePORKmtc
8
- hCDyvI5Sh4cC5jzLvlh9omXOd22Ad3kn5bk4BEFLzC1xuBwk0+n86k9UIJUHb+Ga
9
- b4p46bm9cvmmsC1QyrvAm6+a4Up/OnQxvjVsmzMuTkqoKmgNOwRbLvMbxQYwzy/X
10
- S6wP5mY0uMyIV1l51TMnHS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6Ibs2pb8QrDxXZqBAfhnpinPnqfXqu/m3sjG+XsDLZHii0VzdA/j
12
- scUW02yn/pHQ19z20BR2XN9pswBXqS5ERwc6qJjWMA==
13
- -----END X509 CRL-----
@@ -1,94 +0,0 @@
1
- Certificate:
2
- Data:
3
- Version: 3 (0x2)
4
- Serial Number: 3159555 (0x303603)
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=riak@127.0.0.1/emailAddress=bryce@basho.com
11
- Subject Public Key Info:
12
- Public Key Algorithm: rsaEncryption
13
- Public-Key: (2048 bit)
14
- Modulus:
15
- 00:ca:94:6a:54:b6:5b:ee:56:f2:d6:e1:01:7b:87:
16
- ef:91:f5:4a:a5:51:af:11:69:6e:fc:53:1c:c2:73:
17
- 49:72:0f:80:6b:47:d4:3c:b9:03:1f:fa:51:85:dc:
18
- 1d:d0:52:ac:cd:97:37:0b:86:fd:f7:3c:f6:9c:ad:
19
- b7:06:54:14:f3:3c:a1:cf:fe:57:b2:14:91:de:17:
20
- 59:5f:c1:86:81:2f:15:8a:c5:85:de:cb:d4:88:9a:
21
- f8:04:45:dc:6a:e9:f5:58:96:f1:2a:ca:5d:d7:e3:
22
- f4:ea:1d:f7:34:ae:98:c2:94:05:74:de:c3:72:51:
23
- 47:8a:e2:1f:e1:b3:d7:aa:dd:46:04:f8:45:fb:0d:
24
- 8b:a5:3b:57:74:14:df:05:6a:ef:9d:f4:1a:9d:e1:
25
- f5:8e:90:ca:dc:e3:75:c9:ac:cc:da:f4:a2:f5:e4:
26
- d4:84:ee:fa:ce:8b:35:5f:05:32:be:3a:23:5f:77:
27
- ce:78:e6:98:8e:d3:d7:70:96:71:14:a7:90:69:3d:
28
- d7:18:5c:ed:cf:25:b7:c7:56:15:9f:24:c0:d7:2b:
29
- 59:68:94:89:2c:56:6b:b4:67:e3:ce:09:cc:8e:1a:
30
- 83:32:af:fd:a0:cd:df:b2:8a:db:d6:44:6b:25:af:
31
- 54:a8:70:88:03:0b:c6:9c:9a:dd:d7:d1:59:26:bc:
32
- c3:43
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
- F9:FB:09:A9:5A:C6:BC:B2:59:39:29:88:8C:A2:83:56:DD:9B:CD:4E
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
- 00:b9:e8:c6:0d:d3:fb:86:c3:a6:bd:c8:18:f7:71:26:c5:34:
53
- 42:66:79:77:2c:31:23:e4:bf:4d:8a:21:d9:de:da:b6:00:d6:
54
- 84:3a:17:63:5a:16:d1:01:ed:c6:a3:20:87:5f:da:d7:fe:e0:
55
- 99:f6:3b:83:35:4c:82:5e:d7:21:2a:2a:bc:d9:72:78:64:6c:
56
- 6c:b6:9a:56:ac:f8:dc:21:1d:05:db:e2:30:22:d7:8d:0b:94:
57
- 91:82:04:0a:0a:e0:78:01:84:9e:dd:77:e6:d5:9c:ca:71:23:
58
- 6b:d1:67:c5:f3:87:fa:51:f9:6c:04:54:e9:a4:66:9a:b0:f7:
59
- b7:40:9a:b6:c8:ee:c3:5e:eb:c2:03:30:1a:4c:63:f5:8e:fb:
60
- 9e:45:f0:a8:62:5c:be:8c:42:bb:84:ea:41:df:4e:2c:64:9c:
61
- 34:bc:b7:b8:54:7f:10:75:fa:0b:34:0a:62:0c:78:72:6a:c5:
62
- 89:e4:3c:31:36:96:08:83:ce:4f:3c:2d:e9:d1:4b:42:cc:59:
63
- 0b:af:ce:83:79:02:4d:35:07:dc:09:17:ee:27:c0:b0:17:3d:
64
- d8:9a:e4:99:3a:aa:ca:e7:30:29:2b:5a:19:5c:cc:8c:04:94:
65
- 2a:69:37:11:ee:dc:99:70:b6:e0:9b:43:b8:fc:1e:c6:20:f1:
66
- 80:1c:de:68
67
- -----BEGIN CERTIFICATE-----
68
- MIIE1jCCA76gAwIBAgIDMDYDMA0GCSqGSIb3DQEBBQUAMIGHMQswCQYDVQQGEwJV
69
- UzEQMA4GA1UECAwHRmxvcmlkYTEOMAwGA1UEBwwFTWlhbWkxDjAMBgNVBAoMBUJh
70
- c2hvMRkwFwYDVQQLDBBSaWFrIFJ1YnkgQ2xpZW50MQswCQYDVQQDDAJDQTEeMBwG
71
- CSqGSIb3DQEJARYPYnJ5Y2VAYmFzaG8uY29tMB4XDTE0MDkxODIyNTgwMloXDTI0
72
- MDkxNTIyNTgwMlowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdGbG9yaWRhMQ4w
73
- DAYDVQQKDAVCYXNobzEZMBcGA1UECwwQUmlhayBSdWJ5IGNsaWVudDEXMBUGA1UE
74
- AwwOcmlha0AxMjcuMC4wLjExHjAcBgkqhkiG9w0BCQEWD2JyeWNlQGJhc2hvLmNv
75
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMqUalS2W+5W8tbhAXuH
76
- 75H1SqVRrxFpbvxTHMJzSXIPgGtH1Dy5Ax/6UYXcHdBSrM2XNwuG/fc89pyttwZU
77
- FPM8oc/+V7IUkd4XWV/BhoEvFYrFhd7L1Iia+ARF3Grp9ViW8SrKXdfj9Ood9zSu
78
- mMKUBXTew3JRR4riH+Gz16rdRgT4RfsN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- eeqUbF3pjkafm+9Qp9V/NQaXC+Jfcz/hUDtyZW+B+jiXIQ/aHXRSvw8oCrYEKOtq
18
- ohFjUJst0UmdgQmkQFpnuqctZus0Xl/fEBjiTfC9AoGBAMHQP7ruwWhmNcV6i7XQ
19
- iJM9gARsX7mV7U3R3iI4dnF3wat7z07KtO4e3A6oUnfJYhpLOP2lfzCa0HvIvaLw
20
- zs1gVSYnKp/okinvjbtzjorgmg2+i8jbAbHUxY9d4BNoO4pWi3Kk6hGF63p5UVIK
21
- pyC8gvYBBvfi7ghaLWFVTiPLAoGATMNq+xpMinLAvK+SWQlWtfpvyPO7HrL1bV51
22
- p5lmLUGPTSMJbzkPr59XaEbztibWBsAlaJTtgL5XalucKqQqNurNEQrAiKb2opXf
23
- VmQhWQF0lH0FBMrK/SWAKEz2tfQY3xGwYJKxPWyLVOaHzPSWpUTzwmhegve54G3J
24
- uYgHaIECgYBjLTnXZvihDZfbnIZo9zx65DsperToL1WAWXYBN/RbYWPGNWsIIw9l
25
- /k/dstB8Q3fhRvRq1zWtLFSjVL+t03b0eXN62dLj2hrojgtAInbwAUDVtgtnfqQd
26
- R1Xw38QGYIhQV8hnLGFRUAa+71jlLdQDfogOpwFS96ZL4yFX6rDX+Q==
27
- -----END RSA PRIVATE KEY-----
@@ -1,112 +0,0 @@
1
- module CrdtSearchConfig
2
- include SearchConfig
3
-
4
- def counter_bucket
5
- @counter_bucket ||= bucket_for :counter
6
- end
7
-
8
- def map_bucket
9
- @map_bucket ||= bucket_for :map
10
- end
11
-
12
- def set_bucket
13
- @set_bucket ||= bucket_for :set
14
- end
15
-
16
- def first_counter
17
- return @first_counter if defined? @first_counter
18
-
19
- @first_counter = Riak::Crdt::Counter.new counter_bucket, nil
20
- @first_counter.increment 83475 # BEANS in leet, i guess
21
-
22
- @first_counter.tap do |c|
23
- wait_until do
24
- index.query('counter:83475').results.length > 0
25
- end
26
- end
27
- end
28
-
29
- def first_map
30
- return @first_map if defined? @first_map
31
-
32
- @first_map = Riak::Crdt::Map.new map_bucket, nil
33
- @first_map.registers['arroz'] = 'frijoles'
34
-
35
- @first_map.tap do |m|
36
- wait_until do
37
- index.query('arroz_register:frijoles').results.length > 0
38
- end
39
- end
40
- end
41
-
42
- def first_set
43
- return @first_set if defined? @first_set
44
-
45
- @first_set = Riak::Crdt::Set.new set_bucket, nil
46
- @first_set.add 'frijoles'
47
-
48
- @first_set.tap do |s|
49
- wait_until do
50
- index.query('set:frijoles').results.length > 0
51
- end
52
- end
53
- end
54
-
55
- def configure_crdt_buckets
56
- return if defined? @crdt_buckets_configured
57
-
58
- create_index
59
-
60
- cp = Riak::BucketProperties.new counter_bucket
61
- mp = Riak::BucketProperties.new map_bucket
62
- sp = Riak::BucketProperties.new set_bucket
63
-
64
- cp['search_index'] = index_name
65
- cp.store
66
- mp['search_index'] = index_name
67
- mp.store
68
- sp['search_index'] = index_name
69
- sp.store
70
-
71
- wait_until do
72
- cp.reload
73
- cp['search_index'] == index_name
74
- end
75
- wait_until do
76
- mp.reload
77
- mp['search_index'] == index_name
78
- end
79
- wait_until do
80
- sp.reload
81
- sp['search_index'] == index_name
82
- end
83
-
84
- @crdt_buckets_configured = true
85
- end
86
-
87
- private
88
-
89
- def bucket_for(type)
90
- @bucket_for ||= Hash.new
91
- return @bucket_for[type] if @bucket_for[type]
92
-
93
- test_client.
94
- bucket_type(Riak::Crdt::DEFAULT_BUCKET_TYPES[type]).
95
- bucket("crdt-search-#{ type }-#{ random_key }").
96
- tap do |bucket|
97
- @bucket_for[type] = bucket
98
- props = Riak::BucketProperties.new bucket
99
- props['search_index'] = index.name
100
- props.store
101
-
102
- wait_until do
103
- props.reload
104
- props['search_index'] == index.name
105
- end
106
- end
107
- end
108
- end
109
-
110
- RSpec.configure do |config|
111
- config.include CrdtSearchConfig, crdt_search_config: true
112
- end
@@ -1,42 +0,0 @@
1
- module CrdtSearchFixtures
2
- def map_result_score
3
- 43.21
4
- end
5
-
6
- def maps_type_name
7
- Riak::Crdt::DEFAULT_BUCKET_TYPES[:map]
8
- end
9
-
10
- def maps_bucket_type
11
- return @maps_bucket_type if defined? @maps_bucket_type
12
-
13
- @maps_bucket_type = instance_double('Riak::BucketType').tap do |bt|
14
- allow(bt).to receive(:bucket).
15
- with(bucket_name).
16
- and_return(map_bucket)
17
- allow(bt).to receive(:data_type_class).
18
- and_return(Riak::Crdt::Map)
19
- end
20
- end
21
-
22
- def map_bucket
23
- @map_bucket ||= instance_double('Riak::BucketTyped::Bucket')
24
- end
25
-
26
- def map_raw
27
- @map_raw ||= {
28
- 'score'=>map_result_score,
29
- '_yz_rb'=>bucket_name,
30
- '_yz_rt'=>maps_type_name,
31
- '_yz_rk'=>'map-key'
32
- }
33
- end
34
-
35
- def map_results
36
- @map_results ||= Riak::Search::ResultDocument.new client, map_raw
37
- end
38
- end
39
-
40
- RSpec.configure do |config|
41
- config.include CrdtSearchFixtures, crdt_search_fixtures: true
42
- end
@@ -1,10 +0,0 @@
1
- # auto-tag all integration specs with :integration => true
2
- module IntegrationSpecs
3
- def self.included(klass)
4
- klass.metadata[:integration] = true
5
- end
6
- end
7
-
8
- RSpec.configure do |config|
9
- config.include IntegrationSpecs, file_path: %r{spec/integration}
10
- end
@@ -1,83 +0,0 @@
1
- module SearchConfig
2
- include TestClient
3
-
4
- def search_bucket
5
- return @search_bucket if defined? @search_bucket
6
- type = test_client.bucket_type 'yokozuna'
7
- @search_bucket = type.bucket "search_config-#{random_key}"
8
- end
9
-
10
- def index_name
11
- @index_name ||= search_bucket.name
12
- end
13
-
14
- def index
15
- return @index if defined? @index
16
- create_index
17
- @index = Riak::Search::Index.new test_client, index_name
18
- end
19
-
20
- def create_index
21
- return if defined? @index_exists
22
-
23
- test_client.create_search_index index_name
24
-
25
- @index_exists = true
26
- end
27
-
28
- def configure_bucket
29
- return if defined? @bucket_configured
30
-
31
- create_index
32
-
33
- test_client.set_bucket_props(search_bucket,
34
- { search_index: index_name },
35
- 'yokozuna')
36
-
37
- wait_until do
38
- props = test_client.get_bucket_props search_bucket, type: 'yokozuna'
39
- props['search_index'] == index_name
40
- end
41
-
42
- @bucket_configred = true
43
- end
44
-
45
- def load_corpus
46
- return if defined? @corpus_loaded
47
-
48
- configure_bucket
49
-
50
- old_encoding = Encoding.default_external
51
- Encoding.default_external = Encoding::UTF_8
52
-
53
- IO.foreach('spec/fixtures/bitcask.txt').with_index do |para, idx|
54
- next if para =~ /^\s*$|introduction|chapter/ui
55
-
56
- Riak::RObject.new(search_bucket, "bitcask-#{idx}") do |obj|
57
- obj.content_type = 'text/plain'
58
- obj.raw_data = para
59
- obj.store
60
- end
61
- end
62
-
63
- Encoding.default_external = old_encoding
64
-
65
- wait_until do
66
- results = @client.search(index_name,
67
- 'contain your entire keyspace',
68
- df: 'text')
69
-
70
- results['docs'].length > 0
71
- end
72
-
73
- @corpus_loaded = true
74
- end
75
-
76
- def schema_xml(schema_name)
77
- File.read('spec/fixtures/yz_schema_template.xml').sub('SCHEMA_NAME', schema_name)
78
- end
79
- end
80
-
81
- RSpec.configure do |config|
82
- config.include SearchConfig, search_config: true
83
- end