Skip to content

Instantly share code, notes, and snippets.

@monken
Created March 19, 2011 12:16
Show Gist options
  • Select an option

  • Save monken/877441 to your computer and use it in GitHub Desktop.

Select an option

Save monken/877441 to your computer and use it in GitHub Desktop.
$ perl -Ilib t/00-request.t
1..266
ok 1 - use ElasticSearch;
ok 2 - use ElasticSearch::TestServer;
#
# Testing ElasticSearch 0.31, Perl 5.012003, perl
# Transport: http (Set ES_TRANSPORT=http|httplite|thrift)
#
Starting test server installed in /Users/mo/Downloads/elasticsearch-0.15.2
Starting test node 1
Starting test node 2
Starting test node 3
Waiting for servers to warm up
Node running on 127.0.0.1:9200
Node running on 127.0.0.1:9200
Node running on 127.0.0.1:9201
Node running on 127.0.0.1:9201
# Couldn't start 3 nodes at lib/ElasticSearch/TestServer.pm line 151.
ok 3 # skip ElasticSearch server not available for testing
ok 4 # skip ElasticSearch server not available for testing
ok 5 # skip ElasticSearch server not available for testing
ok 6 # skip ElasticSearch server not available for testing
ok 7 # skip ElasticSearch server not available for testing
ok 8 # skip ElasticSearch server not available for testing
ok 9 # skip ElasticSearch server not available for testing
ok 10 # skip ElasticSearch server not available for testing
ok 11 # skip ElasticSearch server not available for testing
ok 12 # skip ElasticSearch server not available for testing
ok 13 # skip ElasticSearch server not available for testing
ok 14 # skip ElasticSearch server not available for testing
ok 15 # skip ElasticSearch server not available for testing
ok 16 # skip ElasticSearch server not available for testing
ok 17 # skip ElasticSearch server not available for testing
ok 18 # skip ElasticSearch server not available for testing
ok 19 # skip ElasticSearch server not available for testing
ok 20 # skip ElasticSearch server not available for testing
ok 21 # skip ElasticSearch server not available for testing
ok 22 # skip ElasticSearch server not available for testing
ok 23 # skip ElasticSearch server not available for testing
ok 24 # skip ElasticSearch server not available for testing
ok 25 # skip ElasticSearch server not available for testing
ok 26 # skip ElasticSearch server not available for testing
ok 27 # skip ElasticSearch server not available for testing
ok 28 # skip ElasticSearch server not available for testing
ok 29 # skip ElasticSearch server not available for testing
ok 30 # skip ElasticSearch server not available for testing
ok 31 # skip ElasticSearch server not available for testing
ok 32 # skip ElasticSearch server not available for testing
ok 33 # skip ElasticSearch server not available for testing
ok 34 # skip ElasticSearch server not available for testing
ok 35 # skip ElasticSearch server not available for testing
ok 36 # skip ElasticSearch server not available for testing
ok 37 # skip ElasticSearch server not available for testing
ok 38 # skip ElasticSearch server not available for testing
ok 39 # skip ElasticSearch server not available for testing
ok 40 # skip ElasticSearch server not available for testing
ok 41 # skip ElasticSearch server not available for testing
ok 42 # skip ElasticSearch server not available for testing
ok 43 # skip ElasticSearch server not available for testing
ok 44 # skip ElasticSearch server not available for testing
ok 45 # skip ElasticSearch server not available for testing
ok 46 # skip ElasticSearch server not available for testing
ok 47 # skip ElasticSearch server not available for testing
ok 48 # skip ElasticSearch server not available for testing
ok 49 # skip ElasticSearch server not available for testing
ok 50 # skip ElasticSearch server not available for testing
ok 51 # skip ElasticSearch server not available for testing
ok 52 # skip ElasticSearch server not available for testing
ok 53 # skip ElasticSearch server not available for testing
ok 54 # skip ElasticSearch server not available for testing
ok 55 # skip ElasticSearch server not available for testing
ok 56 # skip ElasticSearch server not available for testing
ok 57 # skip ElasticSearch server not available for testing
ok 58 # skip ElasticSearch server not available for testing
ok 59 # skip ElasticSearch server not available for testing
ok 60 # skip ElasticSearch server not available for testing
ok 61 # skip ElasticSearch server not available for testing
ok 62 # skip ElasticSearch server not available for testing
ok 63 # skip ElasticSearch server not available for testing
ok 64 # skip ElasticSearch server not available for testing
ok 65 # skip ElasticSearch server not available for testing
ok 66 # skip ElasticSearch server not available for testing
ok 67 # skip ElasticSearch server not available for testing
ok 68 # skip ElasticSearch server not available for testing
ok 69 # skip ElasticSearch server not available for testing
ok 70 # skip ElasticSearch server not available for testing
ok 71 # skip ElasticSearch server not available for testing
ok 72 # skip ElasticSearch server not available for testing
ok 73 # skip ElasticSearch server not available for testing
ok 74 # skip ElasticSearch server not available for testing
ok 75 # skip ElasticSearch server not available for testing
ok 76 # skip ElasticSearch server not available for testing
ok 77 # skip ElasticSearch server not available for testing
ok 78 # skip ElasticSearch server not available for testing
ok 79 # skip ElasticSearch server not available for testing
ok 80 # skip ElasticSearch server not available for testing
ok 81 # skip ElasticSearch server not available for testing
ok 82 # skip ElasticSearch server not available for testing
ok 83 # skip ElasticSearch server not available for testing
ok 84 # skip ElasticSearch server not available for testing
ok 85 # skip ElasticSearch server not available for testing
ok 86 # skip ElasticSearch server not available for testing
ok 87 # skip ElasticSearch server not available for testing
ok 88 # skip ElasticSearch server not available for testing
ok 89 # skip ElasticSearch server not available for testing
ok 90 # skip ElasticSearch server not available for testing
ok 91 # skip ElasticSearch server not available for testing
ok 92 # skip ElasticSearch server not available for testing
ok 93 # skip ElasticSearch server not available for testing
ok 94 # skip ElasticSearch server not available for testing
ok 95 # skip ElasticSearch server not available for testing
ok 96 # skip ElasticSearch server not available for testing
ok 97 # skip ElasticSearch server not available for testing
ok 98 # skip ElasticSearch server not available for testing
ok 99 # skip ElasticSearch server not available for testing
ok 100 # skip ElasticSearch server not available for testing
ok 101 # skip ElasticSearch server not available for testing
ok 102 # skip ElasticSearch server not available for testing
ok 103 # skip ElasticSearch server not available for testing
ok 104 # skip ElasticSearch server not available for testing
ok 105 # skip ElasticSearch server not available for testing
ok 106 # skip ElasticSearch server not available for testing
ok 107 # skip ElasticSearch server not available for testing
ok 108 # skip ElasticSearch server not available for testing
ok 109 # skip ElasticSearch server not available for testing
ok 110 # skip ElasticSearch server not available for testing
ok 111 # skip ElasticSearch server not available for testing
ok 112 # skip ElasticSearch server not available for testing
ok 113 # skip ElasticSearch server not available for testing
ok 114 # skip ElasticSearch server not available for testing
ok 115 # skip ElasticSearch server not available for testing
ok 116 # skip ElasticSearch server not available for testing
ok 117 # skip ElasticSearch server not available for testing
ok 118 # skip ElasticSearch server not available for testing
ok 119 # skip ElasticSearch server not available for testing
ok 120 # skip ElasticSearch server not available for testing
ok 121 # skip ElasticSearch server not available for testing
ok 122 # skip ElasticSearch server not available for testing
ok 123 # skip ElasticSearch server not available for testing
ok 124 # skip ElasticSearch server not available for testing
ok 125 # skip ElasticSearch server not available for testing
ok 126 # skip ElasticSearch server not available for testing
ok 127 # skip ElasticSearch server not available for testing
ok 128 # skip ElasticSearch server not available for testing
ok 129 # skip ElasticSearch server not available for testing
ok 130 # skip ElasticSearch server not available for testing
ok 131 # skip ElasticSearch server not available for testing
ok 132 # skip ElasticSearch server not available for testing
ok 133 # skip ElasticSearch server not available for testing
ok 134 # skip ElasticSearch server not available for testing
ok 135 # skip ElasticSearch server not available for testing
ok 136 # skip ElasticSearch server not available for testing
ok 137 # skip ElasticSearch server not available for testing
ok 138 # skip ElasticSearch server not available for testing
ok 139 # skip ElasticSearch server not available for testing
ok 140 # skip ElasticSearch server not available for testing
ok 141 # skip ElasticSearch server not available for testing
ok 142 # skip ElasticSearch server not available for testing
ok 143 # skip ElasticSearch server not available for testing
ok 144 # skip ElasticSearch server not available for testing
ok 145 # skip ElasticSearch server not available for testing
ok 146 # skip ElasticSearch server not available for testing
ok 147 # skip ElasticSearch server not available for testing
ok 148 # skip ElasticSearch server not available for testing
ok 149 # skip ElasticSearch server not available for testing
ok 150 # skip ElasticSearch server not available for testing
ok 151 # skip ElasticSearch server not available for testing
ok 152 # skip ElasticSearch server not available for testing
ok 153 # skip ElasticSearch server not available for testing
ok 154 # skip ElasticSearch server not available for testing
ok 155 # skip ElasticSearch server not available for testing
ok 156 # skip ElasticSearch server not available for testing
ok 157 # skip ElasticSearch server not available for testing
ok 158 # skip ElasticSearch server not available for testing
ok 159 # skip ElasticSearch server not available for testing
ok 160 # skip ElasticSearch server not available for testing
ok 161 # skip ElasticSearch server not available for testing
ok 162 # skip ElasticSearch server not available for testing
ok 163 # skip ElasticSearch server not available for testing
ok 164 # skip ElasticSearch server not available for testing
ok 165 # skip ElasticSearch server not available for testing
ok 166 # skip ElasticSearch server not available for testing
ok 167 # skip ElasticSearch server not available for testing
ok 168 # skip ElasticSearch server not available for testing
ok 169 # skip ElasticSearch server not available for testing
ok 170 # skip ElasticSearch server not available for testing
ok 171 # skip ElasticSearch server not available for testing
ok 172 # skip ElasticSearch server not available for testing
ok 173 # skip ElasticSearch server not available for testing
ok 174 # skip ElasticSearch server not available for testing
ok 175 # skip ElasticSearch server not available for testing
ok 176 # skip ElasticSearch server not available for testing
ok 177 # skip ElasticSearch server not available for testing
ok 178 # skip ElasticSearch server not available for testing
ok 179 # skip ElasticSearch server not available for testing
ok 180 # skip ElasticSearch server not available for testing
ok 181 # skip ElasticSearch server not available for testing
ok 182 # skip ElasticSearch server not available for testing
ok 183 # skip ElasticSearch server not available for testing
ok 184 # skip ElasticSearch server not available for testing
ok 185 # skip ElasticSearch server not available for testing
ok 186 # skip ElasticSearch server not available for testing
ok 187 # skip ElasticSearch server not available for testing
ok 188 # skip ElasticSearch server not available for testing
ok 189 # skip ElasticSearch server not available for testing
ok 190 # skip ElasticSearch server not available for testing
ok 191 # skip ElasticSearch server not available for testing
ok 192 # skip ElasticSearch server not available for testing
ok 193 # skip ElasticSearch server not available for testing
ok 194 # skip ElasticSearch server not available for testing
ok 195 # skip ElasticSearch server not available for testing
ok 196 # skip ElasticSearch server not available for testing
ok 197 # skip ElasticSearch server not available for testing
ok 198 # skip ElasticSearch server not available for testing
ok 199 # skip ElasticSearch server not available for testing
ok 200 # skip ElasticSearch server not available for testing
ok 201 # skip ElasticSearch server not available for testing
ok 202 # skip ElasticSearch server not available for testing
ok 203 # skip ElasticSearch server not available for testing
ok 204 # skip ElasticSearch server not available for testing
ok 205 # skip ElasticSearch server not available for testing
ok 206 # skip ElasticSearch server not available for testing
ok 207 # skip ElasticSearch server not available for testing
ok 208 # skip ElasticSearch server not available for testing
ok 209 # skip ElasticSearch server not available for testing
ok 210 # skip ElasticSearch server not available for testing
ok 211 # skip ElasticSearch server not available for testing
ok 212 # skip ElasticSearch server not available for testing
ok 213 # skip ElasticSearch server not available for testing
ok 214 # skip ElasticSearch server not available for testing
ok 215 # skip ElasticSearch server not available for testing
ok 216 # skip ElasticSearch server not available for testing
ok 217 # skip ElasticSearch server not available for testing
ok 218 # skip ElasticSearch server not available for testing
ok 219 # skip ElasticSearch server not available for testing
ok 220 # skip ElasticSearch server not available for testing
ok 221 # skip ElasticSearch server not available for testing
ok 222 # skip ElasticSearch server not available for testing
ok 223 # skip ElasticSearch server not available for testing
ok 224 # skip ElasticSearch server not available for testing
ok 225 # skip ElasticSearch server not available for testing
ok 226 # skip ElasticSearch server not available for testing
ok 227 # skip ElasticSearch server not available for testing
ok 228 # skip ElasticSearch server not available for testing
ok 229 # skip ElasticSearch server not available for testing
ok 230 # skip ElasticSearch server not available for testing
ok 231 # skip ElasticSearch server not available for testing
ok 232 # skip ElasticSearch server not available for testing
ok 233 # skip ElasticSearch server not available for testing
ok 234 # skip ElasticSearch server not available for testing
ok 235 # skip ElasticSearch server not available for testing
ok 236 # skip ElasticSearch server not available for testing
ok 237 # skip ElasticSearch server not available for testing
ok 238 # skip ElasticSearch server not available for testing
ok 239 # skip ElasticSearch server not available for testing
ok 240 # skip ElasticSearch server not available for testing
ok 241 # skip ElasticSearch server not available for testing
ok 242 # skip ElasticSearch server not available for testing
ok 243 # skip ElasticSearch server not available for testing
ok 244 # skip ElasticSearch server not available for testing
ok 245 # skip ElasticSearch server not available for testing
ok 246 # skip ElasticSearch server not available for testing
ok 247 # skip ElasticSearch server not available for testing
ok 248 # skip ElasticSearch server not available for testing
ok 249 # skip ElasticSearch server not available for testing
ok 250 # skip ElasticSearch server not available for testing
ok 251 # skip ElasticSearch server not available for testing
ok 252 # skip ElasticSearch server not available for testing
ok 253 # skip ElasticSearch server not available for testing
ok 254 # skip ElasticSearch server not available for testing
ok 255 # skip ElasticSearch server not available for testing
ok 256 # skip ElasticSearch server not available for testing
ok 257 # skip ElasticSearch server not available for testing
ok 258 # skip ElasticSearch server not available for testing
ok 259 # skip ElasticSearch server not available for testing
ok 260 # skip ElasticSearch server not available for testing
ok 261 # skip ElasticSearch server not available for testing
ok 262 # skip ElasticSearch server not available for testing
ok 263 # skip ElasticSearch server not available for testing
ok 264 # skip ElasticSearch server not available for testing
ok 265 # skip ElasticSearch server not available for testing
ok 266 # skip ElasticSearch server not available for testing
Node running on 127.0.0.1:9202
ok 3 - Connected to an ES cluster
ok 4 - Current server set
# Creating indices
#
# Testing: version
# ----------------
ok 5 - Current server version isa HASH
ok 6 - - has a version string
ok 7 - - has a build date
ok 8 - - has snapshot_build
# Current server is version 0.15.2
# Built: 2011-03-07T11:57:46
#
# Testing: cluster_state
# ----------------------
ok 9 - Cluster state isa HASH
ok 10 - - allocations isa ARRAY
ok 11 - - cluster name
ok 12 - - master node
ok 13 - - blocks isa HASH
ok 14 - - routing_table isa HASH
ok 15 - - routing_nodes isa HASH
ok 16 - - nodes isa HASH
ok 17 - - metadata isa HASH
ok 18 - - metadata has 2 indices
ok 19 - Filtered cluster state
ok 20 - - filtered metadata has 1 index
#
# Testing: cluster_health
# -----------------------
ok 21 - Cluster health isa HASH
ok 22 - - wait_for_status
ok 23 - - wait_for_relocating_shards
ok 24 - - wait_for_nodes
ok 25 - - timeout
ok 26 - - level cluster
ok 27 - - level indices
ok 28 - - level shards
#
# Testing: nodes
# --------------
ok 29 - All nodes isa HASH
ok 30 - - has cluster_name
ok 31 - - has nodes isa HASH
ok 32 - - 3 nodes
ok 33 - - request single node
ok 34 - - got one node
ok 35 - - got same node
ok 36 - - nodes by name isa HASH
ok 37 - - retrieved same number of nodes
ok 38 - - retrieved the same nodes
ok 39 - - without settings
ok 40 - - with settings isa HASH
ok 41 - - nodes_stats isa HASH
ok 42 - - stats detail
#
# Testing: module_options
# -----------------------
ok 43 - Camel case on
ok 44 - - got camel case
ok 45 - - camel case off
ok 46 - - got underscores
ok 47 - Error trace on
ok 48 - The object isa ElasticSearch::Error::Request
ok 49 - - has error_trace
ok 50 - error_trace off
#
# Testing: create_index
# ---------------------
ok 51 - Created index
ok 52 - - second create fails
ok 53 - - multiple indices fails
ok 54 - - with settings and mappings
ok 55 - - number of shards stored
ok 56 - - analyzer stored
ok 57 - - mappings stored
ok 58 - - analyzer mapped
#
# Testing: index_status
# ---------------------
ok 59 - Index status - all
ok 60 - - Index 1 exists
ok 61 - - Index 2 exists
ok 62 - - Index 2 settings
ok 63 - - index missing
#
# Testing: update_settings
# ------------------------
ok 64 - Update index settings
ok 65 - - has 2 replicas
ok 66 - - reset to 1 replica
not ok 67 - - has 1 replica
# Failed test ' - has 1 replica'
# at t/request_tests/update_settings.pl line 30.
# got: '2'
# expected: '1'
ok 68 - - index missing
#
# Testing: index_admin
# --------------------
ok 69 - Refresh index
ok 70 - Flush index
ok 71 - - with refresh
ok 72 - - with full
ok 73 - Optimize all indices
ok 74 - - only_deletes
ok 75 - - without flush
ok 76 - - without refresh
ok 77 - - without wait_for_merge
ok 78 - - with max_num_segments
ok 79 - Snapshot all indices
ok 80 - - with gateway_snapshot
ok 81 - Snapshot test indices
ok 82 - - with gateway_snapshot
ok 83 - refresh_index index missing
ok 84 - flush_index index missing
ok 85 - optimize_index index missing
ok 86 - snapshot_index index missing
ok 87 - gateway_snapshot index missing
#
# Testing: analyze
# ----------------
ok 88 - Analyzer
#
# Testing: clear_cache
# --------------------
ok 89 - Clear all index caches
ok 90 - - just index 1
ok 91 - - index 1 and 2
ok 92 - - field cache populated
ok 93 - - filter cache populated
ok 94 - - clear field cache
ok 95 - - field cache cleared
ok 96 - - filter cache not cleared
ok 97 - - field cache populated
ok 98 - - filter cache populated
ok 99 - - clear filter cache
ok 100 - - field cache not cleared
ok 101 - - filter cache cleared
ok 102 - - cache types
ok 103 - - index missing
#
# Testing: index_alias
# --------------------
ok 104 - add alias_1
ok 105 - alias_1 added
ok 106 - add and remove alias_1
ok 107 - alias_1 changed
#
# Testing: open_close_index
# -------------------------
ok 108 - Closed index
ok 109 - - index missing
ok 110 - Opened index
ok 111 - - index reopened
#
# Testing: delete_index
# ---------------------
ok 112 - Delete index
ok 113 - - index deleted
ok 114 - - ignore_missing
#
# Testing: index_templates
# ------------------------
ok 115 - index template - create
ok 116 - - index 1 has 1 shard
ok 117 - - index 2 has 5 shards
ok 118 - - template retrieved
ok 119 - Delete template
ok 120 - - template deleted
ok 121 - - template missing
ok 122 - - ignore missing
#
# Testing: rivers
# ---------------
ok 123 - Create river
ok 124 - Get river
[ERROR] ** ElasticSearch::Error::Missing at lib/ElasticSearch/Transport/HTTP.pm line 53 :
Not Found (404)
With vars:{
'request' => {
'qs' => {},
'cmd' => '/_river/foo/_status',
'data' => undef,
'method' => 'GET'
},
'status_code' => 404,
'content' => '{"_index":"_river","_type":"foo","_id":"_status"}',
'server' => '127.0.0.1:9200',
'status_msg' => 'Not Found'
}
# Looks like you planned 266 tests but ran 124.
# Looks like you failed 1 test of 124 run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment