Commit graph

771 commits

Author SHA1 Message Date
Lex Berezhny
9bb7b0571e fix integrat tests 2019-05-09 00:00:39 -04:00
Lex Berezhny
d98162a118 stream_update --replace also clears the channel 2019-05-09 00:00:39 -04:00
Victor Shyba
77c69f661d add locking cases scenarios 2019-05-08 23:02:38 -03:00
Jack Robison
a2a1ef34ab
fix tests 2019-05-08 14:55:09 -04:00
Jack Robison
3ca2fee592
use stream size from claim if available 2019-05-08 14:11:39 -04:00
Jack Robison
d7032b12d7
add saved_file and content_fee columns to file table
-drop not null constraints for file_name and download_directory

-add migrator
2019-05-08 10:26:06 -04:00
Victor Shyba
84b471d486 limit batch size on announcer test so it covers batching logic 2019-05-07 11:10:49 -03:00
Jack Robison
f506b3e6d4
tests 2019-05-06 18:46:26 -04:00
Jack Robison
9099ee2e8e
fix/refactor starting and stopping files
-move partial content handling into ManagedStream
-add delayed stop test
2019-05-06 18:46:26 -04:00
Victor Shyba
2247b354b3 integration test for announcing both on publish and download 2019-05-06 17:27:12 -03:00
Victor Shyba
a4d17d1705 re-enable tests for announcing on stream creation 2019-05-06 16:49:03 -03:00
Lex Berezhny
d7c2e4e9b3 fixed bug where lbrynet failed to start with single-key accounts in the wallet 2019-05-04 17:56:39 -04:00
Victor Shyba
cf7bb6a391 fix tests and stream being deleted on data timeout 2019-05-02 16:41:48 -03:00
Victor Shyba
6594b7c50c test concurrency through races on getting a writer 2019-05-01 15:08:47 -03:00
Victor Shyba
771fe935f4 test get-delete-get respects existing files 2019-05-01 13:16:32 -03:00
Victor Shyba
3cf5c536c0 improve ban timing and downloader loop friction 2019-04-30 17:56:29 -03:00
Lex Berezhny
180cfcfb72 fix chris45 tests 2019-04-29 16:01:59 -04:00
Lex Berezhny
864c1dd901 fix test_claim_commands integration tests 2019-04-29 16:01:59 -04:00
Victor Shyba
9f83cce574 test confirmations and timestamp on file list, being updated on resolve 2019-04-29 00:26:14 -04:00
Victor Shyba
30b113d64a depth -> confirmations 2019-04-29 00:26:14 -04:00
Victor Shyba
3127cd11cf test for timestamp field on resolve 2019-04-29 00:26:14 -04:00
Victor Shyba
46c03c0cb2 refactor: move generate to blockchain call 2019-04-28 22:53:43 -04:00
Victor Shyba
c2ca0a9467 tests: replace sleep with the proper generate call 2019-04-28 22:53:43 -04:00
Victor Shyba
de9473f75a test resolve updates file list 2019-04-28 22:53:43 -04:00
Lex Berezhny
6a2efa54ab dropped block_show command from API, users should run a full node if they need access to blocks 2019-04-27 18:03:35 -04:00
Lex Berezhny
f3c8776878 fixed --preview mode on stream_create/update 2019-04-27 13:11:32 -04:00
Lex Berezhny
539ea04039 fixed signing streams using --channel_name argument 2019-04-27 11:52:29 -04:00
Lex Berezhny
8f96b07559 updating stream claim with new file now correctly updates file list removing old file 2019-04-27 10:55:20 -04:00
Lex Berezhny
0a1e97fe23 cli test fix 2019-04-26 23:37:10 -04:00
Lex Berezhny
da637b9c0e added --replace option to stream_update and channel_update, publish defaults to --replace 2019-04-26 23:37:10 -04:00
Lex Berezhny
3618de1227 added --clear_fee ability to stream update command 2019-04-26 17:52:29 -04:00
Victor Shyba
bad99de5b3 add tests for channel_name, which should work for urls too 2019-04-26 17:30:21 -04:00
Jack Robison
1ffb99f9f9
rename streaming_only setting -> save_files 2019-04-24 12:44:12 -04:00
Jack Robison
a8e612773d
test 2019-04-24 09:48:04 -04:00
Jack Robison
67088b2ca2
test_blob_writers_concurrency 2019-04-24 09:48:04 -04:00
Jack Robison
bb7649e8ad
test file_save stopped before finished writing with streaming_only on/off 2019-04-24 09:48:04 -04:00
Jack Robison
3234d70270
add peer address/port to hash blob writer 2019-04-24 09:48:04 -04:00
Jack Robison
861c25716e
add unit tests for cache_concurrent decorator 2019-04-24 09:48:04 -04:00
Jack Robison
35479dcbd2
add file_save integration tests 2019-04-24 09:48:04 -04:00
Jack Robison
5b1398b588
rename test_streaming.py 2019-04-24 09:48:04 -04:00
Jack Robison
01a81fceed
more streaming_only + save_blobs integration testing 2019-04-24 09:48:04 -04:00
Jack Robison
a14b0aa573
tests 2019-04-24 09:48:04 -04:00
Jack Robison
a1abb7c8fb
test range requests 2019-04-24 09:48:04 -04:00
Jack Robison
46b166952b
non async blob_completed callback, tests 2019-04-24 09:48:04 -04:00
Jack Robison
40b9fa38b0
update mock dht 2019-04-24 09:48:04 -04:00
Jack Robison
a882f2e8c5
merge conflicts 2019-04-24 09:48:04 -04:00
Jack Robison
7d782d516a
track and close blob readers 2019-04-24 09:48:04 -04:00
Jack Robison
d3eac48035
tests, add __slots__ to AbstractBlob 2019-04-24 09:48:04 -04:00
Jack Robison
287b89db66
fix tests 2019-04-24 09:48:04 -04:00
Jack Robison
7a160f7335
fix tests 2019-04-24 09:48:04 -04:00
Jack Robison
04ddee7d89
blob tests 2019-04-24 09:48:04 -04:00
Jack Robison
3a916a8e8e
tests 2019-04-24 09:48:04 -04:00
Jack Robison
b230d8fbcb
rename BlobFileManager -> BlobManager 2019-04-24 09:48:04 -04:00
Lex Berezhny
3357a419ab ability to overide the file name, hash and size when updating a stream claim 2019-04-22 18:05:49 -04:00
Lex Berezhny
bf467e06c5 added create stream image detection test 2019-04-21 22:12:02 -04:00
Lex Berezhny
26fec098e4 fix stream unit tests 2019-04-21 14:28:43 -04:00
Lex Berezhny
6ef1b1dd59 resolve command also returns protobuf 2019-04-21 14:28:43 -04:00
Lex Berezhny
68215699f7 fix chri45 test 2019-04-21 00:45:51 -04:00
Lex Berezhny
71f5061848 exposed new protobuf fields in APIs and updated tests 2019-04-21 00:45:51 -04:00
Lex Berezhny
2034104cfc test fixes 2019-04-20 02:33:41 -04:00
Lex Berezhny
633f725634 stream manager test fix 2019-04-20 02:33:41 -04:00
Lex Berezhny
fa9a4a75c6 update to an even newer protobufs 2019-04-20 02:33:41 -04:00
Lex Berezhny
60080cbd19 updating to new protobufs 2019-04-20 02:33:41 -04:00
Victor Shyba
76dea9e89b batch save supports 2019-04-20 01:19:40 -04:00
Oleg Silkin
74b3da79aa Adds integration tests 2019-04-07 15:27:59 -04:00
Lex Berezhny
2cfcc3cd45 test fix 2019-04-06 17:08:15 -04:00
Lex Berezhny
9af625e627 test fixes 2019-04-06 17:08:15 -04:00
Lex Berezhny
6f76d9e24a moved integration testcase.py into lbrynet so that it can be used from scripts 2019-04-06 17:08:15 -04:00
Victor Shyba
fd56dc68cd fix depth on resolve, add tests 2019-04-05 09:40:26 -04:00
Victor Shyba
c1d3b5984d fix old hash reverse confusion 2019-04-05 09:40:26 -04:00
Victor Shyba
b87316fb02 make permanent url name#id only for now 2019-04-05 09:40:26 -04:00
Victor Shyba
47bc1526f7 test invalid signature to be False, not accepting None 2019-04-05 09:40:26 -04:00
Victor Shyba
36a62d3756 port orchstr8 fix to our test case as its lbrynet specific 2019-04-03 00:51:05 -04:00
Victor Shyba
89c80cedfd test resolve for invalid data 2019-04-03 00:51:05 -04:00
Lex Berezhny
83411acfbd split claim_abandon into stream_abandon and channel_abandon 2019-03-29 21:48:55 -04:00
Lex Berezhny
4230812f82 added integration test to make sure publishing the same stream re-signs it with the original channel 2019-03-29 21:14:20 -04:00
Lex Berezhny
7b57ba96dd fix docopt parsing and stream manager tests 2019-03-29 21:14:20 -04:00
Lex Berezhny
a3bd335f7f --languages, --locations fully support all attributes, add BTC 2019-03-29 21:14:20 -04:00
Lex Berezhny
adab7bd7b1 fix file command tests 2019-03-27 21:57:22 -04:00
Lex Berezhny
750c0e4f4f fix cli test 2019-03-27 21:57:22 -04:00
Lex Berezhny
5f8482bdb7 hash -> sd_hash, encoding fixes, update to new protobufs 2019-03-27 21:57:22 -04:00
Lex Berezhny
7860b956ff fixes and tests for publish command 2019-03-27 21:57:22 -04:00
Lex Berezhny
ea4444edbe fix internal transaction api test 2019-03-25 22:54:08 -04:00
Lex Berezhny
183e3ac1c7 claim search 2019-03-25 22:54:08 -04:00
Lex Berezhny
e2964f9728 test cli fix, take 2 2019-03-25 22:54:08 -04:00
Lex Berezhny
e0cea60c87 fix cli test 2019-03-25 22:54:08 -04:00
Lex Berezhny
c708c1db07 audio/video/image stream types 2019-03-25 22:54:08 -04:00
Lex Berezhny
1cb696fb5c fix test_claim_show 2019-03-25 22:54:08 -04:00
Lex Berezhny
7cd0213eb9 fixed chris45 again 2019-03-25 22:54:08 -04:00
Lex Berezhny
2007c48af3 fixed tests for setting claim values 2019-03-25 22:54:08 -04:00
Lex Berezhny
50721786d2 skip test_claim_list for now 2019-03-25 22:54:08 -04:00
Lex Berezhny
6d7eb259cb test normalization fixes 2019-03-25 22:54:08 -04:00
Lex Berezhny
0592cee567 claim integration test fixes 2019-03-25 22:54:08 -04:00
Lex Berezhny
814eaca524 cli tests fixed 2019-03-25 22:54:08 -04:00
Lex Berezhny
e06916f5ae fixing unit tests 2019-03-25 22:54:08 -04:00
Victor Shyba
d61e1e9d8c fix proto v1 integration test 2019-03-25 22:54:08 -04:00
Lex Berezhny
25436893bc pylint and a few other fixes 2019-03-25 22:54:08 -04:00
Lex Berezhny
4b3a6ab875 big support tests passes 2019-03-25 22:54:08 -04:00
Lex Berezhny
67dcede2d8 lots of stuff deleted 2019-03-25 22:54:08 -04:00
Victor Shyba
0872a6fea3 partial test_claim_list_by_channel 2019-03-25 22:54:08 -04:00
Victor Shyba
a3aed3219f fix test_abandoned_channel_with_signed_claims 2019-03-25 22:54:08 -04:00
Lex Berezhny
af73e1a2f5 chris45 passing again 2019-03-25 22:54:08 -04:00
Lex Berezhny
55bbf5aa74 progress on chris45 2019-03-25 22:54:08 -04:00
Lex Berezhny
d47575e8e0 progress 2019-03-25 22:54:08 -04:00
Victor Shyba
8fc4f4aa73 cleanup recent test changes 2019-03-25 22:54:08 -04:00
Victor Shyba
fe9aa666e9 fix name is not part of old sigs 2019-03-25 22:54:08 -04:00
Victor Shyba
a9e0eeba7e add tests and fix verification of old signatures 2019-03-25 22:54:08 -04:00
Victor Shyba
0830917afb delete unused test method 2019-03-25 22:54:08 -04:00
Victor Shyba
1ed086e90f bring back test for picking oldest on dupe claims 2019-03-25 22:54:08 -04:00
Victor Shyba
56db631626 fix signed channel tests, WIP on tampering 2019-03-25 22:54:08 -04:00
Victor Shyba
aa029955ee fix tx api tests 2019-03-25 22:54:08 -04:00
Lex Berezhny
df649341cd json output formatting fix for Claim 2019-03-25 22:54:08 -04:00
Lex Berezhny
a3c3143868 fixed remaining references to lbrynet.extras.wallet -> lbrynet.wallet 2019-03-25 22:54:08 -04:00
Lex Berezhny
d0201fe7c7 base integration test class should default to VERBOSITY=WARN, not DEBUG 2019-03-25 22:54:08 -04:00
Lex Berezhny
664a2a324d fix import error on stream unit test 2019-03-25 22:54:08 -04:00
Lex Berezhny
8259d7c680 txo.claim_hash and other fixes related to proto3 refactor 2019-03-25 22:54:08 -04:00
Victor Shyba
6653da2973 all 2019-03-25 22:54:08 -04:00
Lex Berezhny
1d68bef6f2 client side pretty much done 2019-03-25 22:54:08 -04:00
Lex Berezhny
22bacc907b moved test_channel_signing.py from tests/unit/schema to tests/unit/wallet 2019-03-25 22:54:08 -04:00
Lex Berezhny
1e8ad900c7 renamed test_signing.py to test_channel_signing.py 2019-03-25 22:54:08 -04:00
Lex Berezhny
cd2b535afb moved claim signing to TXO 2019-03-25 22:54:08 -04:00
Lex Berezhny
1ec8f0b0b4 wip 2019-03-25 22:54:08 -04:00
Lex Berezhny
d5e37acd8f minor Fee changes 2019-03-25 22:54:08 -04:00
Lex Berezhny
cd15230a92 getting close to a nice model 2019-03-25 22:54:08 -04:00
Victor Shyba
11086b93f1 migrate other fields 2019-03-25 22:54:08 -04:00
Victor Shyba
df5662136d migrate cert + adapt to latest types repo 2019-03-25 22:54:08 -04:00
Victor Shyba
291d65070d move common schema values to constants.py 2019-03-25 22:54:08 -04:00
Victor Shyba
9b64ee33dc fix imports: schema.schema -> schema.legacy_schema_v1 2019-03-25 22:54:08 -04:00
Jack Robison
f2fefbe287
add lbrynet.dht.blob_announcer unit tests 2019-03-15 14:29:02 -04:00
Jack Robison
60a24f0e6e
add lbrynet.dht.protocol.data_store unit tests 2019-03-15 12:44:55 -04:00
Jack Robison
664f91bfab
add lbrynet.dht.protocol.distance unit tests 2019-03-15 12:44:41 -04:00
Jack Robison
44f92a271f
move dht tests to reflect the real directory structure 2019-03-15 12:01:21 -04:00
Jack Robison
6565ca8558
improve lbrynet.dht.serialization unit tests 2019-03-14 18:45:56 -04:00
Jack Robison
c9b2829227
fix/test fixed_peer_delay and added_fixed_peers 2019-03-14 15:08:26 -04:00
Jack Robison
2ab2b846b1
fix default download timeout not being set 2019-03-14 13:07:11 -04:00
Jack Robison
ab5d71ff61
fix the time to the head blob including the time to the sd blob in analytics 2019-03-13 16:24:23 -04:00
Lex Berezhny
98d8b7d463 sync uses new apply APIs in torba 2019-03-12 20:22:41 -04:00
Lex Berezhny
a914de155a working sync 2019-03-12 20:22:41 -04:00
Lex Berezhny
2dee0ff0bf wip account manifest command 2019-03-12 20:22:41 -04:00
Jack Robison
993cb43e5b fix tests
-fix cleanup of a failed download
2019-03-12 20:22:01 -04:00
Jack Robison
5d212a0f82 time to first bytes analytics 2019-03-12 20:22:01 -04:00
Jack Robison
d0a1541d0a
fix test 2019-03-12 13:00:43 -04:00
Brannon King
8d9da61c7d reverted temporary code for full local stack from 2019-03-05 09:32:43 -05:00
Brannon King
5bdd87c904 removed name-to-claim lookup table
added unit test for Greek and made it work


pylint: revert bad move


revert claim_sequence changes


fixed broken test
2019-03-05 09:32:43 -05:00
Jack Robison
df8934d472
restore old download analytics and update tests 2019-03-01 14:50:06 -05:00
Jack Robison
ba518e2a0e
update test 2019-02-22 11:12:31 -05:00
Victor Shyba
f49578cdbc fix integration test 2019-02-21 21:14:51 -03:00
Victor Shyba
61132312dd test nullify length on blob delete 2019-02-21 21:00:20 -03:00
Victor Shyba
edb5083a5e test that corrupted sd blobs gets delete if fails to decode 2019-02-21 20:53:04 -03:00
Victor Shyba
aa40337ded test that invalid blobs raise proper exception 2019-02-21 20:42:36 -03:00