Łukasz Magiera
69470db596
Merge pull request #8162 from filecoin-project/cli-mempool-tests
...
test: Cli: add mempool tests
2022-02-25 16:09:32 +00:00
Geoff Stuart
83bf0c5a11
Review fixes
2022-02-24 12:40:13 -05:00
Geoff Stuart
25912e72a1
Update cli/filplus.go
...
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
2022-02-23 12:14:26 -05:00
Geoff Stuart
e9715cae3b
Small fixes
2022-02-22 22:58:51 -05:00
Geoff Stuart
23147378a3
Added cli command for vrk to send RemoveVerifiedClientDataCap message
2022-02-22 22:07:20 -05:00
Geoff Stuart
375d9fdfc9
Added cli command for verifier to sing RemoveDataCapProposal
2022-02-22 22:07:20 -05:00
Darko Brdareski
79ba74ce71
Merge branch 'master' into cli-mempool-tests
2022-02-22 16:27:38 +01:00
TheMenko
cd64eba76c
add stm annotations
2022-02-22 16:00:01 +01:00
TheMenko
de68f1e5fe
Merge branch 'master' into cli_wallet_tests
...
update branch from master
2022-02-22 15:37:09 +01:00
TheMenko
fce9ff237a
add fmt output checks
2022-02-22 15:35:46 +01:00
Darko Brdareski
e753e7a66e
Merge branch 'master' into bloxico/cli-sync-tests
2022-02-22 14:03:44 +01:00
Łukasz Magiera
a0cb6094c6
Merge remote-tracking branch 'origin/master' into feat/paych-avail-reuse
2022-02-22 10:55:03 +01:00
ZenGround0
6123aa2ed4
Merge pull request #8048 from filecoin-project/cli-chain-tests
...
test: cli: chain category unit tests
2022-02-21 19:12:18 -07:00
Darko Brdareski
7b203eae1b
More lint issues fixed
2022-02-21 18:35:31 +01:00
Darko Brdareski
76157c5e03
Merge branch 'master' into cli-mempool-tests
2022-02-21 18:08:15 +01:00
Darko Brdareski
ad4acf3baa
Fix lint issues
2022-02-21 17:58:00 +01:00
Darko Brdareski
580fa86ea3
Change annotation to #cli
2022-02-21 17:57:01 +01:00
Darko Brdareski
675012fe1c
Fix matching for TestInspectUsage
2022-02-21 16:49:07 +01:00
Darko Brdareski
87c63e2cb7
Add stm file annotation
2022-02-21 12:33:07 +01:00
Darko Brdareski
c8cd8bb591
Add stm annotations
2022-02-21 12:32:53 +01:00
Darko Brdareski
c3817652dc
Add cli tests for mempool
2022-02-21 11:28:45 +01:00
florian@eyesr.fr
1c39730531
Fix #8095
...
Clear the list of miner addresses and successfull get-asked before asking for new ones
Previous behavior : if get-ask failed for miner(s), the faulty miner will be retried each time,
so you have to stop the command and start again to change this faulty miner (instead of removing from the list on the new attempt)
2022-02-18 15:46:40 +00:00
Darko Brdareski
6feae1993d
Fix PR comments.
...
Refactor random addr generation to use a rand seed.
Remove unused lines in tests.
2022-02-17 14:24:42 +01:00
Kevin Li
ba72eff3e6
feat: cli/net: implement 'net ping' command
2022-02-17 17:22:52 +08:00
Łukasz Magiera
384999556c
paychmgr: AvailableAmt -> NonReservedAmt
2022-02-16 20:39:43 +01:00
Łukasz Magiera
f61eb23f8f
api: separate method for paych funding
2022-02-14 19:56:02 +01:00
Nikola Divic
93d9bfb682
doc: stm test annotations for cli/sync category
2022-02-13 18:39:37 +01:00
Nikola Divic
e6c8c9a6ab
doc: add stm annotation to cli chain tests
2022-02-13 17:14:27 +01:00
Masih H. Derkani
59351c8cb8
Add lotus net
CLI command to add/remove/list protected peers
...
Add CLI commands under `lotus net` to add/ remove/list protected peers.
2022-02-11 19:54:59 +00:00
Nikola Divic
94374aa93d
test: sync checkpoint cli command
2022-02-11 18:30:07 +01:00
Nikola Divic
05c8635749
test: sync check-bad cli command
2022-02-11 18:08:36 +01:00
Nikola Divic
0f79a0024c
test: sync unmark-bad cli command
2022-02-11 18:00:01 +01:00
Nikola Divic
7fc2f9dc29
test: sync mark-bad cli command
2022-02-11 17:54:53 +01:00
Nikola Divic
ec0607900d
test: sync state cli command
2022-02-11 17:45:19 +01:00
TheMenko
8a2d27309d
adding cli wallet tests
2022-02-11 16:30:28 +01:00
Nikola Divic
107eb76b20
cleanup: small cleanup before final push
2022-02-11 00:09:07 +01:00
Nikola Divic
e5ac8662c8
test: chain gas-price cli command
...
Contains some funny mocking logic, because estimate gas price is called
multiple times (for various nblocks) and I wanted to make it as flexible
as possible.
2022-02-10 21:55:09 +01:00
Nikola Divic
c0f89e5b2d
test: chain export cli command
...
Modified ChainExportCmd to use io.WriterCloser instead of os.File so
it the file can be mocked in unit tests, without side effects to the FS.
2022-02-10 18:18:31 +01:00
Nikola Divic
b536dfa552
test: chain bisect cli command
2022-02-10 15:46:06 +01:00
Nikola Divic
6bc2ee2735
test: chain get cli command
...
Cover the essential function execution paths, no time for every -as-type
combination.
2022-02-10 14:49:38 +01:00
Nikola Divic
b3f7db7a15
test: chain list (love) cli command
...
Some "funky" string matching in this one, but I think that's ok.
Chain is love. ❤️
2022-02-10 00:36:38 +01:00
Nikola Divic
4e37131602
test: chain inspect-usage cli command
2022-02-09 23:47:40 +01:00
Nikola Divic
ae49729afb
test: chain sethead cli command
...
Also moved the mock definition to a separate file (mocks_test.go)
because it's gonna be used in other test files, and it didn't make sense
for it to stay inside chain_test.go.
2022-02-09 20:46:51 +01:00
Nikola Divic
e797ec138d
test: chain getmessage cli command
...
I also added some helper functions for mocking in the types/mock pkg
2022-02-09 17:29:29 +01:00
Nikola Divic
a923d7c884
test: chain stat-obj cli command
...
Test expected output with respect to the --base flag
2022-02-09 16:22:52 +01:00
Nikola Divic
c0f47e5eed
test: chain delete-obj cli command
...
Contains two subtests, that check if the --really-do-it flag (force)
is respected, since removing wrong objects may lead to sync issues.
2022-02-09 15:56:13 +01:00
Nikola Divic
1cd590ace9
test: chain read-obj
...
Simple test that checks if this CLI method prints the IPLD node referenced
by the given CID encoded in hexadecimal.
2022-02-09 15:29:10 +01:00
Nikola Divic
78649d45b9
test: cli chain getblock command
...
Unit test for the cli `chain getblock` command.
Tests if output is JSON in the expected format.
2022-02-08 18:24:45 +01:00
Nikola Divic
811bc62d65
test: cli test setup & test chain head
...
CLI actions lack unit tests. I decided to use the approach similar to
what I found in `send_test.go` using gomock, but I don't rely on custom
"service" implementations but mock the whole FullNode API.
This first commit validates the test setup by testing the simplest method
of the chain category, e.g. `chain head`.
This requires a minor refactor of the CLI action code:
- The constructor (`GetFullNodeAPI`) checks if there's an injected mock
API in the app Metadata and uses that in unit tests.
- Actions shouldn't use raw `fmt.*` but instead write to the `app.Writer`
so the CLI output is testable
2022-02-08 17:15:45 +01:00
Łukasz Magiera
8b19b84140
paych: option to force off-chain get
2022-01-20 18:19:26 +01:00
Łukasz Magiera
533349cc0d
paych: Fix cli tests
2022-01-20 18:17:18 +01:00
Łukasz Magiera
ff8b95df93
paych: Reserve flag for add-funds cli
2022-01-20 18:16:00 +01:00
Łukasz Magiera
8f6f21c94c
paych: Print available amounts in paych status
2022-01-20 18:16:00 +01:00
Łukasz Magiera
7a938b2dea
paych: Output FIL in cli
2022-01-20 18:16:00 +01:00
vyzo
325a4c0e5b
fix lint
2022-01-20 11:46:39 +02:00
vyzo
19c8ea3288
add description for net stat and limit commands
2022-01-20 11:36:11 +02:00
vyzo
0de1566eaf
add net stat and limit cli
2022-01-20 11:36:11 +02:00
emad22552
135186e33d
go fmt ./client.go
2022-01-02 19:08:22 +03:30
Dirk McCormick
0e53275d40
feat: retrieval-ask - if size param is zero use QueryOffer.Size
2021-12-20 16:03:03 +01:00
Dirk McCormick
bb56e97177
fix: rename query-retrieval-ask to retrieval-ask
2021-12-17 18:01:12 +01:00
dirkmc
0f22d51309
Update cli/client.go
...
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
2021-12-17 17:54:32 +01:00
Dirk McCormick
b1734f84b3
feat: retrieval ask CLI command
2021-12-17 15:55:12 +01:00
Aayush Rajasekaran
dfb65ed89f
Plumb contexts through
2021-12-11 17:04:00 -05:00
Łukasz Magiera
092e12d1be
cli: boolean logic is hard
2021-11-29 21:41:38 +01:00
Łukasz Magiera
320b36495d
gofmt
2021-11-29 21:39:27 +01:00
Łukasz Magiera
e4f47de6ef
retrieval: Check required flags for --car-export-merkle-proof
2021-11-29 21:39:18 +01:00
Łukasz Magiera
410ecb4bbc
retrieval: --car-export-merkle-proof flag for client retrieve
2021-11-29 21:37:28 +01:00
Łukasz Magiera
58a084049d
retrieval: Fix traversal in ls
2021-11-29 21:08:53 +01:00
Łukasz Magiera
61791b90ea
retrieval: Only output matching nodes, MatchPath dagspec
2021-11-29 20:40:55 +01:00
Łukasz Magiera
210485d800
Add some description to the retrieve command
2021-11-23 22:44:57 +01:00
Łukasz Magiera
407c2ed114
retrieval: Drop the RootSelector hack
2021-11-23 17:42:43 +01:00
Łukasz Magiera
f88c514be9
make lint happy
2021-11-22 12:52:11 +01:00
Łukasz Magiera
3e70b8420e
retrieval: Make the cat command work
2021-11-22 12:46:29 +01:00
Łukasz Magiera
2c583b03ff
retrieval: Support DM-paths in ls
2021-11-22 12:46:29 +01:00
Łukasz Magiera
dd78e75dd6
retrieval: add depth parameter to ls
2021-11-22 12:46:29 +01:00
Łukasz Magiera
c6101aa02f
retrieval: Support listing ipld links in ls
2021-11-22 12:46:29 +01:00
Łukasz Magiera
46ee3a0c46
retrieval: Don't default to non-zero cost retrieval
2021-11-22 12:46:29 +01:00
Łukasz Magiera
53a48df77e
retrieval: Don't use subcommands
2021-11-22 12:46:29 +01:00
Łukasz Magiera
597b72e286
retrieval: Fix lint, cli docsgen
2021-11-22 12:46:29 +01:00
Łukasz Magiera
8ea5162ad9
retrieval: Cleanup retrieve command output
2021-11-22 12:46:17 +01:00
Łukasz Magiera
9c119bfdad
retrieval: Make the ls command work
2021-11-22 12:46:17 +01:00
Łukasz Magiera
a1d5b2a293
retrieval: wip improved retrieval commands
2021-11-22 12:46:17 +01:00
Łukasz Magiera
b26906963b
retrieval: Support multi-root export
2021-11-22 12:46:17 +01:00
Łukasz Magiera
b868769ec8
more retrieval api work
2021-11-22 12:46:02 +01:00
Łukasz Magiera
89138bab4d
Simplify retrieval APIs
2021-11-22 12:45:42 +01:00
Aayush Rajasekaran
32fc03886d
CLI: Add a lotus multisig cancel command
2021-11-18 19:21:17 -05:00
Travis Person
60b3ae2ac2
add timeout flag to wait-api command
2021-11-02 17:28:11 +00:00
Jennifer Wang
dc6bd2b015
use existing util
2021-10-26 20:53:16 -04:00
Jennifer Wang
18834de7d0
parse attofil to fil
2021-10-26 19:37:29 -04:00
emad22552
4eaf89666f
fix manual-stateless-deal with interactive
...
fix checking manual-stateless-deal with interactive deal making as --manual-stateless-deal can not be combined with interactive deal mode.
2021-10-26 14:00:41 +03:30
jennijuju
9369c54f54
rename a fil plus cmd upon request
2021-10-20 17:53:16 -07:00
Jakub Sztandera
35291983a1
Fix missnamed variable
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-10-11 14:06:21 +02:00
Jakub Sztandera
4853762763
Fix withdrawn amount equiality check
...
Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com>
2021-10-11 14:03:37 +02:00
Aayush Rajasekaran
e158b1d1e4
Bugfix: actor withdraw CLI should depend on network version
2021-10-09 20:17:03 -04:00
Peter Rabbitson
5e6aceeb0e
Merge remote-tracking branch 'origin/master' into feat/datamodel-selector-retrieval
2021-10-05 18:15:51 +02:00
Aayush Rajasekaran
2bafdf7271
Modify tooling to support new WithdrawBalance return
2021-09-29 13:01:04 -04:00
Peter Rabbitson
0444435589
Expose basic text-based datamodel selector on retrieval
...
Syntaxt of selection is located at
https://pkg.go.dev/github.com/ipld/go-ipld-selector-text-lite#SelectorSpecFromPath
Example use, assuming that:
- The root of the deal is a plain dag-pb unixfs directory
- The directory is not sharded
- The user wants to retrieve the first entry in that directory
lotus client retrieve --miner f0XXXXX --datamodel-path-selector 'Links/0/Hash' bafyROOTCID ~/output
For a much more elaborate example see the top of ./itests/deals_partial_retrieval_test.go
2021-09-10 09:44:11 +02:00
Łukasz Magiera
727bb84592
stmgr: drop MethdosMap
2021-09-02 18:58:34 +02:00
Łukasz Magiera
95b128b7bc
chain: Cleanup consensus logic
2021-09-02 18:09:37 +02:00
Łukasz Magiera
e2ba650a8c
cli for checking alerts
2021-08-26 15:45:17 +02:00