reve 0.0.80 → 0.0.83
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.
- data/Rakefile +11 -0
- data/lib/reve/classes.rb +143 -142
- data/lib/reve.rb +18 -19
- data/test/test_reve.rb +151 -74
- data/test/xml/characterid.xml +10 -10
- data/test/xml/corporate_wallet_balance.xml +15 -15
- data/test/xml/corporate_wallet_journal.xml +10 -10
- data/test/xml/corporate_wallet_transactions.xml +9 -9
- data/test/xml/corporation_sheet.xml +1 -1
- data/test/xml/errors.xml +61 -61
- data/test/xml/skill_in_training-amarr-titan.xml +9 -7
- metadata +2 -2
data/test/test_reve.rb
CHANGED
@@ -69,16 +69,27 @@ class TestReve < Test::Unit::TestCase
|
|
69
69
|
|
70
70
|
def test_saving_xml_works
|
71
71
|
@api.save_path = SAVE_PATH
|
72
|
-
alliances = @api.alliances
|
72
|
+
alliances = @api.alliances :url => File.join(XML_BASE,'alliances.xml')
|
73
73
|
assert File.exists?(File.join(SAVE_PATH,'alliances',@api.cached_until.to_i.to_s + '.xml'))
|
74
|
+
assert_equal(
|
75
|
+
File.open(File.join(XML_BASE,'alliances.xml')).read,
|
76
|
+
File.open(File.join(SAVE_PATH,'alliances',@api.cached_until.to_i.to_s + '.xml')).read)
|
74
77
|
end
|
75
78
|
|
76
79
|
def test_saving_xml_when_save_path_is_nil
|
77
80
|
assert_nil @api.save_path
|
78
|
-
alliances = @api.alliances
|
81
|
+
alliances = @api.alliances :url => File.join(XML_BASE,'alliances.xml')
|
79
82
|
assert ! File.exists?(File.join(SAVE_PATH,'alliances',@api.cached_until.to_i.to_s + '.xml'))
|
80
83
|
end
|
81
84
|
|
85
|
+
# We want to see <url /> in the saved XML because that's what came from the source
|
86
|
+
def test_saving_xml_with_bad_short_tag
|
87
|
+
@api.save_path = SAVE_PATH
|
88
|
+
@corpsheet = @api.corporation_sheet :url => File.join(XML_BASE,'corporation_sheet.xml')
|
89
|
+
assert_equal "", @corpsheet.url
|
90
|
+
assert File.open(File.join(SAVE_PATH,'corporation_sheet',@api.cached_until.to_i.to_s + '.xml')).read.include?("<url />")
|
91
|
+
end
|
92
|
+
|
82
93
|
def test_saving_xml_when_404
|
83
94
|
@api.save_path = SAVE_PATH
|
84
95
|
alliances = nil
|
@@ -110,7 +121,11 @@ class TestReve < Test::Unit::TestCase
|
|
110
121
|
errors = @api.errors :url => File.join(XML_BASE,'errors.xml')
|
111
122
|
end
|
112
123
|
assert errors.all? { |e| e.kind_of?(Reve::Classes::APIError) }
|
113
|
-
assert_equal 61, errors.size # 61 errors in total
|
124
|
+
assert_equal 61, errors.size # 61 errors in total
|
125
|
+
errors.each do |error|
|
126
|
+
assert_not_nil(error.code)
|
127
|
+
assert_not_nil(error.text)
|
128
|
+
end
|
114
129
|
end
|
115
130
|
|
116
131
|
def test_corporation_sheet_clean
|
@@ -121,7 +136,31 @@ class TestReve < Test::Unit::TestCase
|
|
121
136
|
end
|
122
137
|
assert_not_nil @api.last_hash
|
123
138
|
assert_not_nil @api.cached_until
|
124
|
-
|
139
|
+
assert_equal 150212025, corporation.id
|
140
|
+
assert_equal "Banana Republic", corporation.name
|
141
|
+
assert_equal "BR", corporation.ticker
|
142
|
+
assert_equal(150208955, corporation.ceo_id)
|
143
|
+
assert_equal("Mark Roled", corporation.ceo_name)
|
144
|
+
assert_equal(60003469, corporation.station_id)
|
145
|
+
assert_equal("Jita IV - Caldari Business Tribunal Information Center", corporation.station_name)
|
146
|
+
assert_equal "Garth's testing corp of awesome sauce, win sauce as it were. In this corp...<br><br>IT HAPPENS ALL OVER", corporation.description
|
147
|
+
assert_equal("", corporation.url)
|
148
|
+
assert_equal(150430947, corporation.alliance_id)
|
149
|
+
assert_equal("The Dead Rabbits", corporation.alliance_name)
|
150
|
+
assert_equal 93.7, corporation.tax_rate
|
151
|
+
assert_equal(3, corporation.member_count)
|
152
|
+
assert_equal(6300, corporation.member_limit)
|
153
|
+
assert_equal(1, corporation.shares)
|
154
|
+
assert_equal "DIVISION", corporation.divisions.select { |d| d.key == 1003 }.first.description
|
155
|
+
corporation.divisions.each do |d|
|
156
|
+
assert_not_nil(d.key)
|
157
|
+
assert_not_nil(d.description)
|
158
|
+
end
|
159
|
+
assert_equal "Master Wallet", corporation.wallet_divisions.select { |d| d.key == 1000 }.first.description
|
160
|
+
corporation.wallet_divisions.each do |wd|
|
161
|
+
assert_not_nil(wd.key)
|
162
|
+
assert_not_nil(wd.description)
|
163
|
+
end
|
125
164
|
assert_equal 0, corporation.logo.graphic_id
|
126
165
|
assert_equal 681, corporation.logo.color_1
|
127
166
|
assert_equal 676, corporation.logo.color_2
|
@@ -129,13 +168,6 @@ class TestReve < Test::Unit::TestCase
|
|
129
168
|
assert_equal 418, corporation.logo.shape_3
|
130
169
|
assert_equal 0, corporation.logo.color_3
|
131
170
|
assert_equal 0, corporation.logo.shape_2
|
132
|
-
assert_equal "Master Wallet", corporation.wallet_divisions.select { |d| d.key == 1000 }.first.description
|
133
|
-
assert_equal "DIVISION", corporation.divisions.select { |d| d.key == 1003 }.first.description
|
134
|
-
assert_equal "Garth's testing corp of awesome sauce, win sauce as it were. In this corp...<br><br>IT HAPPENS ALL OVER", corporation.description
|
135
|
-
assert_equal 150212025, corporation.id
|
136
|
-
assert_equal "Banana Republic", corporation.name
|
137
|
-
assert_equal "BR", corporation.ticker
|
138
|
-
assert_equal 93.7, corporation.tax_rate
|
139
171
|
end
|
140
172
|
|
141
173
|
def test_conqurable_stations_clean
|
@@ -160,24 +192,32 @@ class TestReve < Test::Unit::TestCase
|
|
160
192
|
end
|
161
193
|
|
162
194
|
def test_convert_characterids_to_names
|
163
|
-
ids = [ 797400947,892008733 ]
|
195
|
+
ids = [ 797400947,892008733 ] # CCP Garthagk, Raquel Smith
|
164
196
|
names = []
|
165
197
|
assert_nothing_raised do
|
166
198
|
names = @api.character_name :url => XML_BASE + 'charactername.xml', :ids => ids
|
167
199
|
end
|
168
200
|
assert_equal 2, names.size
|
201
|
+
names.each do |name|
|
202
|
+
assert_not_nil(name.name)
|
203
|
+
assert_not_nil(name.id)
|
204
|
+
end
|
169
205
|
actual_names = names.collect { |n| n.name }
|
170
206
|
assert actual_names.include?('CCP Garthagk')
|
171
207
|
assert actual_names.include?('Raquel Smith')
|
172
208
|
end
|
173
209
|
|
174
210
|
def test_convert_characternames_to_ids
|
175
|
-
names = [ 'CCP Garthagk', 'Raquel Smith' ]
|
211
|
+
names = [ 'CCP Garthagk', 'Raquel Smith' ] # 797400947,892008733
|
176
212
|
ids = []
|
177
213
|
assert_nothing_raised do
|
178
214
|
ids = @api.character_id :url => XML_BASE + 'characterid.xml', :names => names
|
179
215
|
end
|
180
216
|
assert_equal 2, ids.size
|
217
|
+
ids.each do |id|
|
218
|
+
assert_not_nil(id.id)
|
219
|
+
assert_not_nil(id.name)
|
220
|
+
end
|
181
221
|
actual_ids = ids.collect { |n| n.id }
|
182
222
|
assert actual_ids.include?(797400947)
|
183
223
|
assert actual_ids.include?(892008733)
|
@@ -204,6 +244,7 @@ class TestReve < Test::Unit::TestCase
|
|
204
244
|
end
|
205
245
|
end
|
206
246
|
end
|
247
|
+
|
207
248
|
def test_corporate_industry_jobs_clean
|
208
249
|
Reve::API.corporate_industry_jobs_url = XML_BASE + 'industryjobs.xml'
|
209
250
|
jobs = nil
|
@@ -225,7 +266,7 @@ class TestReve < Test::Unit::TestCase
|
|
225
266
|
end
|
226
267
|
end
|
227
268
|
end
|
228
|
-
|
269
|
+
|
229
270
|
def test_assets_clean
|
230
271
|
Reve::API.personal_assets_url = XML_BASE + 'assets.xml'
|
231
272
|
assets = nil
|
@@ -233,71 +274,35 @@ class TestReve < Test::Unit::TestCase
|
|
233
274
|
assets = @api.personal_assets_list
|
234
275
|
end
|
235
276
|
assert_equal 18, assets.size # 18 single and 1 container
|
236
|
-
|
237
|
-
|
277
|
+
contained_assets = assets.inject([]) { |ass,container| ass << container.assets }.flatten
|
278
|
+
assert_equal(1, contained_assets.size) # We have a container it happens to have 1 asset in it
|
279
|
+
contained_assets.each do |asset|
|
280
|
+
assert_instance_of(Reve::Classes::Asset, asset)
|
281
|
+
assert_not_nil(asset.item_id)
|
282
|
+
assert_not_nil(asset.type_id)
|
283
|
+
assert_not_nil(asset.quantity)
|
284
|
+
assert_not_nil(asset.flag)
|
285
|
+
assert_not_nil(asset.singleton)
|
286
|
+
end
|
287
|
+
assets.each do |asset|
|
288
|
+
assert_instance_of(Reve::Classes::AssetContainer, asset)
|
289
|
+
assert_not_nil(asset.item_id)
|
290
|
+
assert_not_nil(asset.location_id)
|
291
|
+
assert_not_nil(asset.type_id)
|
292
|
+
assert_not_nil(asset.quantity)
|
293
|
+
assert_not_nil(asset.flag)
|
294
|
+
assert_not_nil(asset.singleton)
|
295
|
+
end
|
238
296
|
end
|
239
297
|
|
240
|
-
|
241
298
|
# no need to test corporate cos they're the same.
|
242
299
|
# TODO: Test with nested losses
|
243
300
|
def test_kills_clean
|
244
|
-
|
245
|
-
kills = nil
|
246
|
-
assert_nothing_raised do
|
247
|
-
kills = @api.personal_kills
|
248
|
-
end
|
249
|
-
assert_equal 10, kills.size
|
250
|
-
assert_equal 10, kills.collect { |k| k.victim.name }.nitems # i should have 10 good victim names
|
251
|
-
|
252
|
-
# Process the Kills here to get the number of "Contained Losses" - KillLoss that are contained within another
|
253
|
-
# KillLoss (like a Giant Secure Container); there should only be one contained loss and should be
|
254
|
-
# 63 losses (not including the contained_losses)
|
255
|
-
losses = kills.collect { |k| k.losses }.flatten
|
256
|
-
assert_equal 63, losses.size
|
257
|
-
contained_losses = losses.collect { |loss| loss.contained_losses }.flatten
|
258
|
-
assert_equal 1, contained_losses.size
|
259
|
-
|
260
|
-
attacker_names = kills.collect { |k| k.attackers.collect { |a| a.name } }.flatten
|
261
|
-
assert_equal 25, attacker_names.size # total of 25 attackers (24 players + 1 NPC)
|
262
|
-
assert_equal 1, attacker_names.grep(nil).size # npc exists once
|
263
|
-
assert_equal 24, attacker_names.nitems # 24 player attackers
|
264
|
-
|
265
|
-
kills.each do |kill|
|
266
|
-
assert_kind_of Integer, kill.id
|
267
|
-
assert_kind_of Integer, kill.system_id
|
268
|
-
assert_kind_of Time, kill.created_at
|
269
|
-
assert_nil kill.moon_id # the ones in the kills.xml are all nil
|
270
|
-
end
|
301
|
+
kills_cleanly(:personal_kills,File.join(XML_BASE,'kills.xml'))
|
271
302
|
end
|
272
303
|
|
273
304
|
def test_corporate_kills_clean
|
274
|
-
|
275
|
-
kills = nil
|
276
|
-
assert_nothing_raised do
|
277
|
-
kills = @api.corporate_kills
|
278
|
-
end
|
279
|
-
assert_equal 10, kills.size
|
280
|
-
assert_equal 10, kills.collect { |k| k.victim.name }.nitems # i should have 10 good victim names
|
281
|
-
|
282
|
-
# Process the Kills here to get the number of "Contained Losses" - KillLoss that are contained within another
|
283
|
-
# KillLoss (like a Giant Secure Container); there should only be one contained loss and should be
|
284
|
-
# 63 losses (not including the contained_losses)
|
285
|
-
losses = kills.collect { |k| k.losses }.flatten
|
286
|
-
assert_equal 63, losses.size
|
287
|
-
contained_losses = losses.collect { |loss| loss.contained_losses }.flatten
|
288
|
-
assert_equal 1, contained_losses.size
|
289
|
-
|
290
|
-
attacker_names = kills.collect { |k| k.attackers.collect { |a| a.name } }.flatten
|
291
|
-
assert_equal 25, attacker_names.size # total of 25 attackers (24 players + 1 NPC)
|
292
|
-
assert_equal 1, attacker_names.grep(nil).size # npc exists once
|
293
|
-
assert_equal 24, attacker_names.nitems # 24 player attackers
|
294
|
-
|
295
|
-
kills.each do |kill|
|
296
|
-
assert_kind_of Integer, kill.id
|
297
|
-
assert_kind_of Integer, kill.system_id
|
298
|
-
assert_kind_of Time, kill.created_at
|
299
|
-
assert_nil kill.moon_id # the ones in the kills.xml are all nil
|
300
|
-
end
|
305
|
+
kills_cleanly(:corporate_kills,File.join(XML_BASE,'kills.xml'))
|
301
306
|
end
|
302
307
|
|
303
308
|
def test_characters_clean
|
@@ -310,6 +315,10 @@ class TestReve < Test::Unit::TestCase
|
|
310
315
|
assert_not_nil @api.cached_until
|
311
316
|
assert_equal 1, chars.size
|
312
317
|
chars.each do |char|
|
318
|
+
assert_not_nil(char.name)
|
319
|
+
assert_not_nil(char.id)
|
320
|
+
assert_not_nil(char.corporation_name)
|
321
|
+
assert_not_nil(char.corporation_id)
|
313
322
|
assert_instance_of Reve::Classes::Character, char
|
314
323
|
end
|
315
324
|
end
|
@@ -415,7 +424,10 @@ class TestReve < Test::Unit::TestCase
|
|
415
424
|
assert_equal 11, orders.size
|
416
425
|
buys = sells = 0
|
417
426
|
orders.each do |order|
|
418
|
-
|
427
|
+
[ :id, :character_id, :station_id, :volume_entered, :volume_remaining, :minimum_volume,
|
428
|
+
:order_state, :type_id, :range, :account_key, :duration, :escrow, :price, :bid ].each do |attr|
|
429
|
+
assert_not_nil(order.send(attr))
|
430
|
+
end
|
419
431
|
assert_kind_of Time, order.created_at
|
420
432
|
assert [TrueClass, FalseClass].include?(order.bid.class)
|
421
433
|
buys += 1 if ! order.bid
|
@@ -435,7 +447,10 @@ class TestReve < Test::Unit::TestCase
|
|
435
447
|
assert_equal 1, orders.size
|
436
448
|
buys = sells = 0
|
437
449
|
orders.each do |order|
|
438
|
-
|
450
|
+
[ :id, :character_id, :station_id, :volume_entered, :volume_remaining, :minimum_volume,
|
451
|
+
:order_state, :type_id, :range, :account_key, :duration, :escrow, :price, :bid ].each do |attr|
|
452
|
+
assert_not_nil(order.send(attr))
|
453
|
+
end
|
439
454
|
assert_kind_of Time, order.created_at
|
440
455
|
assert [TrueClass, FalseClass].include?(order.bid.class)
|
441
456
|
buys += 1 if ! order.bid
|
@@ -451,7 +466,15 @@ class TestReve < Test::Unit::TestCase
|
|
451
466
|
trans = @api.corporate_wallet_transactions :url => File.join(XML_BASE,'corporate_wallet_transactions.xml')
|
452
467
|
end
|
453
468
|
assert_equal 1, trans.size
|
454
|
-
|
469
|
+
assert trans.all? { |tran| tran.kind_of?(Reve::Classes::CorporateWalletTransaction) }
|
470
|
+
trans.each do |tran|
|
471
|
+
[ :created_at, :id, :quantity, :type_name, :type_id, :price,
|
472
|
+
:client_id, :client_name, :character_id, :station_id, :station_name, :type,
|
473
|
+
:transaction_for ].each do |attr|
|
474
|
+
assert_not_nil(tran.send(attr))
|
475
|
+
end
|
476
|
+
assert_instance_of(Time, tran.created_at)
|
477
|
+
end
|
455
478
|
end
|
456
479
|
|
457
480
|
def test_corporate_wallet_balance_clean
|
@@ -460,6 +483,11 @@ class TestReve < Test::Unit::TestCase
|
|
460
483
|
balance = @api.corporate_wallet_balance :url => File.join(XML_BASE, 'corporate_wallet_balance.xml')
|
461
484
|
end
|
462
485
|
assert balance.all? { |b| b.kind_of?(Reve::Classes::WalletBalance) }
|
486
|
+
balance.each do |bal|
|
487
|
+
assert_not_nil(bal.account_id)
|
488
|
+
assert_not_nil(bal.account_key)
|
489
|
+
assert_not_nil(bal.balance)
|
490
|
+
end
|
463
491
|
assert_equal 18004409.84, balance.select { |b| b.account_key == '1000' }.first.balance
|
464
492
|
balance.select { |b| b.account_key != '1000' }.each do |non_tested_account|
|
465
493
|
assert_equal 0.00, non_tested_account.balance
|
@@ -473,6 +501,11 @@ class TestReve < Test::Unit::TestCase
|
|
473
501
|
end
|
474
502
|
assert_equal 2, journal.size
|
475
503
|
assert journal.all? { |j| j.kind_of?(Reve::Classes::WalletJournal) }
|
504
|
+
journal.each do |j|
|
505
|
+
[ :date, :ref_id, :reftype_id, :owner_name1, :owner_name2, :arg_name1, :amount, :balance, :reason ].each do |attr|
|
506
|
+
assert_not_nil(j.send(attr))
|
507
|
+
end
|
508
|
+
end
|
476
509
|
end
|
477
510
|
|
478
511
|
def test_corporate_assets_list_clean
|
@@ -666,6 +699,7 @@ class TestReve < Test::Unit::TestCase
|
|
666
699
|
assert_equal false, skill.skill_in_training
|
667
700
|
end
|
668
701
|
|
702
|
+
# Tests Reve::API#get_xml's segment that fetches from http
|
669
703
|
def test_no_skill_in_training_clean_from_svn
|
670
704
|
skill = nil
|
671
705
|
assert_nothing_raised do
|
@@ -806,5 +840,48 @@ class TestReve < Test::Unit::TestCase
|
|
806
840
|
api.save_path = nil
|
807
841
|
api
|
808
842
|
end
|
843
|
+
|
844
|
+
# no need to test corporate cos they're the same.
|
845
|
+
# TODO: Test with nested losses
|
846
|
+
def kills_cleanly(meth = :personal_kills,url = File.join(XML_BASE,'kills.xml'))
|
847
|
+
kills = nil
|
848
|
+
assert_nothing_raised do
|
849
|
+
kills = @api.send(meth,{:url =>url})
|
850
|
+
end
|
851
|
+
assert_equal 10, kills.size
|
852
|
+
assert_equal 10, kills.collect { |k| k.victim.name }.nitems # i should have 10 good victim names to match with 10 kills
|
853
|
+
|
854
|
+
# Process the Kills here to get the number of "Contained Losses" - KillLoss that are contained within another
|
855
|
+
# KillLoss (like a Giant Secure Container); there should only be one contained loss and should be
|
856
|
+
# 64 losses (including the contained_losses)
|
857
|
+
losses = kills.collect { |k| k.losses }.flatten
|
858
|
+
assert_equal 64, losses.size
|
859
|
+
contained_losses = losses.collect { |loss| loss.contained_losses }.flatten
|
860
|
+
assert_equal 1, contained_losses.size
|
861
|
+
|
862
|
+
attacker_names = kills.collect { |k| k.attackers.collect { |a| a.name } }.flatten
|
863
|
+
assert_equal 25, attacker_names.size # total of 25 attackers (24 players + 1 NPC)
|
864
|
+
assert_equal 1, attacker_names.grep(nil).size # npc exists once
|
865
|
+
assert_equal 24, attacker_names.nitems # 24 player attackers
|
866
|
+
|
867
|
+
kills.each do |kill|
|
868
|
+
assert_kind_of Integer, kill.id
|
869
|
+
assert_kind_of Integer, kill.system_id
|
870
|
+
assert_kind_of Time, kill.created_at
|
871
|
+
assert_nil kill.moon_id # the ones in the kills.xml are all nil
|
872
|
+
kill.losses.each do |loss|
|
873
|
+
assert_not_nil(loss.type_id)
|
874
|
+
assert_not_nil(loss.flag)
|
875
|
+
assert_not_nil(loss.quantity_dropped)
|
876
|
+
assert_not_nil(loss.quantity_destroyed)
|
877
|
+
loss.contained_losses.each do |closs|
|
878
|
+
assert_not_nil(closs.type_id)
|
879
|
+
assert_not_nil(closs.flag)
|
880
|
+
assert_not_nil(closs.quantity_dropped)
|
881
|
+
assert_not_nil(closs.quantity_destroyed)
|
882
|
+
end
|
883
|
+
end
|
884
|
+
end
|
885
|
+
end
|
809
886
|
|
810
887
|
end
|
data/test/xml/characterid.xml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
<?xml version=
|
2
|
-
<eveapi version="2">
|
3
|
-
<
|
4
|
-
<result>
|
5
|
-
<rowset
|
6
|
-
<row:name name="CCP Garthagk"
|
7
|
-
|
8
|
-
</
|
9
|
-
</result>
|
10
|
-
<
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<eveapi version="2">
|
3
|
+
<currentTime>2008-02-18 00:25:03</currentTime>
|
4
|
+
<result>
|
5
|
+
<rowset name="characters" key="characterID" columns="name,characterID">
|
6
|
+
<row:name name="CCP Garthagk" characterID="797400947" xmlns:row="characterID" />
|
7
|
+
<row:name name="Raquel Smith" characterID="892008733" xmlns:row="characterID" />
|
8
|
+
</rowset>
|
9
|
+
</result>
|
10
|
+
<cachedUntil>2008-03-18 00:25:03</cachedUntil>
|
11
11
|
</eveapi>
|
@@ -1,16 +1,16 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<eveapi version="2">
|
3
|
-
<currenttime>2008-02-03 14:50:39</currenttime>
|
4
|
-
<result>
|
5
|
-
<rowset columns="accountID,accountKey,balance" name="accounts" key="accountID">
|
6
|
-
<row
|
7
|
-
</row><row
|
8
|
-
</row><row
|
9
|
-
</row><row
|
10
|
-
</row><row
|
11
|
-
</row><row
|
12
|
-
</row><row
|
13
|
-
</row></rowset>
|
14
|
-
</result>
|
15
|
-
<cacheduntil>2008-02-03 15:05:39</cacheduntil>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<eveapi version="2">
|
3
|
+
<currenttime>2008-02-03 14:50:39</currenttime>
|
4
|
+
<result>
|
5
|
+
<rowset columns="accountID,accountKey,balance" name="accounts" key="accountID">
|
6
|
+
<row accountID="9161533" accountKey="1000" balance="18004409.84">
|
7
|
+
</row><row accountID="13679725" accountKey="1001" balance="0.00">
|
8
|
+
</row><row accountID="13679726" accountKey="1002" balance="0.00">
|
9
|
+
</row><row accountID="13679727" accountKey="1003" balance="0.00">
|
10
|
+
</row><row accountID="13679728" accountKey="1004" balance="0.00">
|
11
|
+
</row><row accountID="13679729" accountKey="1005" balance="0.00">
|
12
|
+
</row><row accountID="13679730" accountKey="1006" balance="0.00">
|
13
|
+
</row></rowset>
|
14
|
+
</result>
|
15
|
+
<cacheduntil>2008-02-03 15:05:39</cacheduntil>
|
16
16
|
</eveapi>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<eveapi version="2">
|
3
|
-
<currenttime>2008-02-03 14:51:03</currenttime>
|
4
|
-
<result>
|
5
|
-
<rowset columns="date,refID,refTypeID,ownerName1,ownerID1,ownerName2,ownerID2,argName1,argID1,amount,balance,reason" name="entries" key="refID">
|
6
|
-
<row date="2008-02-03 14:47:00"
|
7
|
-
</row><row date="2008-02-03 14:47:00"
|
8
|
-
</row></rowset>
|
9
|
-
</result>
|
10
|
-
<cacheduntil>2008-02-03 15:51:03</cacheduntil>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<eveapi version="2">
|
3
|
+
<currenttime>2008-02-03 14:51:03</currenttime>
|
4
|
+
<result>
|
5
|
+
<rowset columns="date,refID,refTypeID,ownerName1,ownerID1,ownerName2,ownerID2,argName1,argID1,amount,balance,reason" name="entries" key="refID">
|
6
|
+
<row date="2008-02-03 14:47:00" argID1="1" argName1="EVE System" amount="-100.00" ownerID1="892804655" refID="922128913" ownerName1="Liquidator Brunt" refTypeID="46" ownerID2="1000035" reason="" ownerName2="Caldari Navy" balance="18004409.84">
|
7
|
+
</row><row date="2008-02-03 14:47:00" argID1="0" argName1="" amount="-270.00" ownerID1="892804655" refID="922126594" ownerName1="Liquidator Brunt" refTypeID="42" ownerID2="0" reason="" ownerName2="" balance="18004509.84">
|
8
|
+
</row></rowset>
|
9
|
+
</result>
|
10
|
+
<cacheduntil>2008-02-03 15:51:03</cacheduntil>
|
11
11
|
</eveapi>
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<eveapi version="2">
|
3
|
-
<currenttime>2008-02-03 14:50:52</currenttime>
|
4
|
-
<result>
|
5
|
-
<rowset columns="transactionDateTime,transactionID,quantity,typeName,typeID,price,clientID,clientName,characterID,characterName,stationID,stationName,transactionType,transactionFor" name="transactions" key="transactionID">
|
6
|
-
<row
|
7
|
-
</row></rowset>
|
8
|
-
</result>
|
9
|
-
<cacheduntil>2008-02-03 15:50:52</cacheduntil>
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<eveapi version="2">
|
3
|
+
<currenttime>2008-02-03 14:50:52</currenttime>
|
4
|
+
<result>
|
5
|
+
<rowset columns="transactionDateTime,transactionID,quantity,typeName,typeID,price,clientID,clientName,characterID,characterName,stationID,stationName,transactionType,transactionFor" name="transactions" key="transactionID">
|
6
|
+
<row characterName="Liquidator Brunt" price="2.70" transactionType="buy" typeID="215" transactionID="545372452" transactionDateTime="2008-02-03 14:47:00" transactionFor="corporation" stationID="60003838" characterID="892804655" clientName="Ceredrif" quantity="100" stationName="Sarekuwa III - Moon 8 - Caldari Navy Assembly Plant" typeName="Iron Charge S" clientID="1710698307">
|
7
|
+
</row></rowset>
|
8
|
+
</result>
|
9
|
+
<cacheduntil>2008-02-03 15:50:52</cacheduntil>
|
10
10
|
</eveapi>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<description>
|
14
14
|
Garth's testing corp of awesome sauce, win sauce as it were. In this corp...<br><br>IT HAPPENS ALL OVER
|
15
15
|
</description>
|
16
|
-
<url
|
16
|
+
<url />
|
17
17
|
<allianceID>150430947</allianceID>
|
18
18
|
<allianceName>The Dead Rabbits</allianceName>
|
19
19
|
<taxRate>93.7</taxRate>
|
data/test/xml/errors.xml
CHANGED
@@ -3,67 +3,67 @@
|
|
3
3
|
<currenttime>2008-02-03 13:58:00</currenttime>
|
4
4
|
<result>
|
5
5
|
<rowset columns="errorCode,errorText" name="errors" key="errorCode">
|
6
|
-
<row
|
7
|
-
</row><row
|
8
|
-
</row><row
|
9
|
-
</row><row
|
10
|
-
</row><row
|
11
|
-
</row><row
|
12
|
-
</row><row
|
13
|
-
</row><row
|
14
|
-
</row><row
|
15
|
-
</row><row
|
16
|
-
</row><row
|
17
|
-
</row><row
|
18
|
-
</row><row
|
19
|
-
</row><row
|
20
|
-
</row><row
|
21
|
-
</row><row
|
22
|
-
</row><row
|
23
|
-
</row><row
|
24
|
-
</row><row
|
25
|
-
</row><row
|
26
|
-
</row><row
|
27
|
-
</row><row
|
28
|
-
</row><row
|
29
|
-
</row><row
|
30
|
-
</row><row
|
31
|
-
</row><row
|
32
|
-
</row><row
|
33
|
-
</row><row
|
34
|
-
</row><row
|
35
|
-
</row><row
|
36
|
-
</row><row
|
37
|
-
</row><row
|
38
|
-
</row><row
|
39
|
-
</row><row
|
40
|
-
</row><row
|
41
|
-
</row><row
|
42
|
-
</row><row
|
43
|
-
</row><row
|
44
|
-
</row><row
|
45
|
-
</row><row
|
46
|
-
</row><row
|
47
|
-
</row><row
|
48
|
-
</row><row
|
49
|
-
</row><row
|
50
|
-
</row><row
|
51
|
-
</row><row
|
52
|
-
</row><row
|
53
|
-
</row><row
|
54
|
-
</row><row
|
55
|
-
</row><row
|
56
|
-
</row><row
|
57
|
-
</row><row
|
58
|
-
</row><row
|
59
|
-
</row><row
|
60
|
-
</row><row
|
61
|
-
</row><row
|
62
|
-
</row><row
|
63
|
-
</row><row
|
64
|
-
</row><row
|
65
|
-
</row><row
|
66
|
-
</row><row
|
6
|
+
<row errorText="Expected before ref/trans ID = 0: wallet not previously loaded." errorCode="100">
|
7
|
+
</row><row errorText="Wallet exhausted: retry after {0}." errorCode="101">
|
8
|
+
</row><row errorText="Expected before ref/trans ID [{0}] but supplied [{1}]: wallet previously loaded." errorCode="102">
|
9
|
+
</row><row errorText="Already returned one week of data: retry after {0}." errorCode="103">
|
10
|
+
</row><row errorText="Invalid characterID." errorCode="105">
|
11
|
+
</row><row errorText="Must provide userID parameter for authentication." errorCode="106">
|
12
|
+
</row><row errorText="Invalid beforeRefID provided." errorCode="107">
|
13
|
+
</row><row errorText="Invalid accountKey provided." errorCode="108">
|
14
|
+
</row><row errorText="Invalid accountKey: must be in the range 1000 to 1006." errorCode="109">
|
15
|
+
</row><row errorText="Invalid beforeTransID provided." errorCode="110">
|
16
|
+
</row><row errorText="'{0}' is not a valid integer." errorCode="111">
|
17
|
+
</row><row errorText="Version mismatch." errorCode="112">
|
18
|
+
</row><row errorText="Version escalation is not allowed at this time." errorCode="113">
|
19
|
+
</row><row errorText="Invalid itemID provided." errorCode="114">
|
20
|
+
</row><row errorText="Assets already downloaded: retry after {0}." errorCode="115">
|
21
|
+
</row><row errorText="Industry jobs already downloaded: retry after {0}." errorCode="116">
|
22
|
+
</row><row errorText="Market orders already downloaded: retry after {0}." errorCode="117">
|
23
|
+
</row><row errorText="Expected beforeKillID = 0: wallet not previously loaded." errorCode="118">
|
24
|
+
</row><row errorText="Kills exhausted: retry after {0}." errorCode="119">
|
25
|
+
</row><row errorText="Expected beforeKillID [{0}] but supplied [{1}]: kills previously loaded." errorCode="120">
|
26
|
+
</row><row errorText="Invalid beforeKillID provided." errorCode="121">
|
27
|
+
</row><row errorText="Current security level not high enough." errorCode="200">
|
28
|
+
</row><row errorText="Character does not belong to account." errorCode="201">
|
29
|
+
</row><row errorText="Cached API key authentication failure." errorCode="202">
|
30
|
+
</row><row errorText="Authentication failure." errorCode="203">
|
31
|
+
</row><row errorText="Authentication failure." errorCode="204">
|
32
|
+
</row><row errorText="Authentication failure (final pass)." errorCode="205">
|
33
|
+
</row><row errorText="Character must have Accountant or Junior Accountant roles." errorCode="206">
|
34
|
+
</row><row errorText="Not available for NPC corporations." errorCode="207">
|
35
|
+
</row><row errorText="Character must have Accountant, Junior Accountant, or Trader roles." errorCode="208">
|
36
|
+
</row><row errorText="Character must be a Director or CEO." errorCode="209">
|
37
|
+
</row><row errorText="Authentication failure." errorCode="210">
|
38
|
+
</row><row errorText="Login denied by account status." errorCode="211">
|
39
|
+
</row><row errorText="Authentication failure (final pass)." errorCode="212">
|
40
|
+
</row><row errorText="Character must have Factory Manager role." errorCode="213">
|
41
|
+
</row><row errorText="Corporation is not part of alliance." errorCode="214">
|
42
|
+
</row><row errorText="GetID({0}) is invalid or not loaded." errorCode="501">
|
43
|
+
</row><row errorText="GetSkillpointsForLevel({0}, {1}): invalid input." errorCode="503">
|
44
|
+
</row><row errorText="GetRace({0}): invalid race." errorCode="504">
|
45
|
+
</row><row errorText="GetGender({0}): invalid gender." errorCode="505">
|
46
|
+
</row><row errorText="GetBloodline({0}): invalid bloodline." errorCode="506">
|
47
|
+
</row><row errorText="GetAttributeName({0}): invalid attribute." errorCode="507">
|
48
|
+
</row><row errorText="GetRefType({0}): invalid reftype." errorCode="508">
|
49
|
+
</row><row errorText="attributeID {0} has null data components." errorCode="509">
|
50
|
+
</row><row errorText="Character does not appear to have a corporation. Not loaded?" errorCode="510">
|
51
|
+
</row><row errorText="AccountCanQuery({0}): invalid accountKey." errorCode="511">
|
52
|
+
</row><row errorText="Invalid charID passed to CharData.GetCharacter()." errorCode="512">
|
53
|
+
</row><row errorText="Failed to get character roles in corporation." errorCode="513">
|
54
|
+
</row><row errorText="Invalid corpID passed to CorpData.GetCorporation()." errorCode="514">
|
55
|
+
</row><row errorText="Failed getting user information." errorCode="516">
|
56
|
+
</row><row errorText="CSV header/row count mismatch." errorCode="517">
|
57
|
+
</row><row errorText="Unable to get current TQ time." errorCode="518">
|
58
|
+
</row><row errorText="Failed getting starbase detail information." errorCode="519">
|
59
|
+
</row><row errorText="Unexpected failure accessing database." errorCode="520">
|
60
|
+
</row><row errorText="Invalid username and/or password passed to UserData.LoginWebUser()." errorCode="521">
|
61
|
+
</row><row errorText="Failed getting character information." errorCode="522">
|
62
|
+
</row><row errorText="Failed getting corporation information." errorCode="523">
|
63
|
+
</row><row errorText="Web site database temporarily disabled." errorCode="901">
|
64
|
+
</row><row errorText="EVE backend database temporarily disabled." errorCode="902">
|
65
|
+
</row><row errorText="Rate limited [{0}]: please obey all cachedUntil timers." errorCode="903">
|
66
|
+
</row><row errorText="User forced test error condition." errorCode="999">
|
67
67
|
</row></rowset>
|
68
68
|
</result>
|
69
69
|
<cacheduntil>2008-02-03 14:58:00</cacheduntil>
|