Adin Schmahmann
ee42e34ee4
sharness(pubsub): turn off the DHT for pubsub tests
2019-12-05 13:26:46 -05:00
Oli Evans
25694d0238
fix: ignore nonexistant when force rm
...
- Make `ipfs files rm --force /nonexistant` succeed when the path does not exist.
- Add shaness test for removing nonexistant paths
- Refactor duplicated code to find a parent dir into a function
I've been writing scripts against the files api, and having to stat things before removing them is a pain. So this PR aims to make --force do what I'd expect it to.
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-11-25 11:38:29 +00:00
Steven Allen
5fbf0d35fb
test(sharness): fix dht tests
2019-11-15 09:15:50 -08:00
Steven Allen
c93adf6701
test(sharness): fix flaky repo test
...
Just make sure we've removed all the blocks. We can't guarantee that the size
will revert.
2019-10-29 00:20:37 -07:00
Steven Allen
3f30a7caca
fix(sharness): fix ambigious multiaddr
2019-10-28 22:55:21 -07:00
Steven Allen
67da056908
test(sharness): improve reliability of ma-pipe-unidir
...
Write the PID file after listening.
2019-10-28 21:54:47 -07:00
Steven Allen
f20db0cce8
fix(pin): wait till after fetching to remove direct pin
...
Otherwise, we could abort while fetching the graph and stay in a state where the
direct pin is removed.
fixes #4650
2019-10-08 17:12:44 +09:00
Steven Allen
4391ef92e5
fix(sharness): spelling
2019-10-08 08:34:55 +09:00
Jakub Sztandera
6f4f9b4cbb
Add test for buzhash
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-07 18:17:01 +02:00
Steven Allen
8e346a993e
test(sharness): fix tests for commands lib update
...
We no longer spit out the annoying http error.
2019-09-30 18:47:55 -07:00
Steven Allen
460c2119e4
daemon: support unix domain sockets for the API/gateway
...
All the work was client-side. Unix domain socket multiaddrs already worked
server-side.
fixes #4218
2019-09-30 17:21:28 -07:00
Steven Allen
2147f50240
test(sharness): fix circuit tests
2019-09-27 15:50:47 -07:00
Steven Allen
6722a38535
pin: fix pin update X Y where X==Y
...
We were pining Y then removing the pin for X. When X == Y, we'd remove the new
pin.
fixes #6648
2019-09-23 16:29:26 -07:00
Steven Allen
315a3c9e48
build: fix golangci again
...
The patches that required the replace directives have been merged upstream.
Unfortunately, those branches have now been deleted, breaking the build.
GAH!
2019-09-12 13:56:35 -07:00
Steven Allen
a8fbd066d7
make: move all test deps to a separate module
...
1. This means those deps don't get pulled in unless we actually need to test.
2. It means we can cordon all the golangci-lint module replace hacks off into a
separate package.
2019-09-11 11:43:50 -07:00
Steven Allen
150b6dd1bd
plugins: add support for plugin configs
...
For now, configs specified in `daemon --init-config` and `init CONFIG` are not
available. We should fix this eventually but isn't necessary for now (and
supporting this will be annoying).
2019-08-29 17:17:23 -07:00
Dominic Della Valle
e7e7000611
add init config tests
2019-08-28 19:00:38 -04:00
Steven Allen
ce964404a2
test: handle murmur3 rename
2019-08-23 17:07:53 -07:00
Steven Allen
403b322914
test: handle id -> identity rename
...
"identity" is the official name
2019-08-23 17:02:23 -07:00
Steven Allen
17533b4378
sharness: disable broken test
...
We can no longer test this with bad keys. Unfortunately, good keys will likely
contain a newline and we have no way to send such keys to the server due to how
API requests are formatted.
2019-08-23 17:02:19 -07:00
Steven Allen
a2a70d2cc0
use 2048 keys everywhere else
2019-08-23 14:36:42 -07:00
Cole Brown
f5ea1af519
Use 2048 bit RSA keys in sharness and bench
2019-08-23 14:26:20 -07:00
Steven Allen
1de768fb8f
fix: require gmake
...
IPFS doesn't build correctly under non-GNU make implementations.
2019-08-01 12:18:56 -07:00
Steven Allen
50a1113b92
sharness: make sure putting to IPNS fails
2019-07-25 22:47:57 -07:00
Steven Allen
e282aa1480
sharness: make sure the writable gateway produces the correct hash
2019-07-25 19:55:46 -07:00
Steven Allen
521a29956b
fix and improve the writable gateway
...
1. Fix handling of PUT. The simple implementation was the correct
implementation, I have no idea what was going on here.
2. Use MFS everywhere to reduce code duplication and add support for sharded
directories.
3. _Correctly_ block IPNS.
4. Remove the dependency on `core.IpfsNode`.
5. Remove support for putting empty directories with a well-known CID. It was
useless as directories are automatically created.
2019-07-25 19:22:56 -07:00
Alan Shaw
76f29603a8
feat: add --long as alias for -l in files.ls
...
Allow passing --long or ?long=true as a more descriptive option name than "l".
refs: https://github.com/ipfs/go-ipfs#issuecomment-392477565
2019-07-17 15:17:57 +01:00
Steven Allen
2b2e570c20
sharness: test pin ls stream
2019-07-12 08:06:02 -07:00
Steven Allen
288a83ce7d
feat: deprecate ipfs repo fsck command
...
This command is no longer necessary and is quite dangerous:
1. All lockfiles are now released by the OS when the daemon stops.
2. The API file is ignored when (a) the repo is initialized and (b) daemon is
off.
fixes #6435
2019-07-03 12:53:15 -07:00
Steven Allen
e96416dea6
test: test operations when the API file is stale
2019-06-29 11:17:46 +02:00
Devin
f9e9f2854b
Fix a typo
2019-06-11 15:41:51 -07:00
Łukasz Magiera
7be8475c9b
block cmd: allow adding multiple blocks at once
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-06-03 20:19:33 -07:00
Steven Allen
ce5084b5a5
fix: go-libp2p-pnet now enforces the correct key size
2019-06-01 17:14:16 -07:00
Raúl Kripalani
e8c2852179
migrate to go-libp2p-core.
...
closes #6391
License: MIT
Signed-off-by: Raúl Kripalani <raul@protocol.ai>
2019-05-31 23:23:52 -07:00
Michael Avila
8f03df805b
Move sharness test helpers
...
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:32 -07:00
Michael Avila
6d6ce8fba7
Introduce first strategic provider: do nothing
...
License: MIT
Signed-off-by: Michael Avila <davidmichaelavila@gmail.com>
2019-05-29 16:20:31 -07:00
Steven Allen
deb7af02ed
feat: improve errors when a path fails to parse
...
This helps with issues like #4190 by telling the user the path that failed to
parse.
fixes #4190
2019-05-17 12:19:15 -07:00
Steven Allen
ec19d4c54f
Merge pull request #6321 from ipfs/ci/golangci-lint
...
Add golangci-lint
2019-05-15 13:38:31 -07:00
Steven Allen
30fc529983
sharness: test loading a bad plugin
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-15 12:19:21 -07:00
Steven Allen
7340eb5e95
don't skip git plugin test in travis
...
The git plugin is built-in. Anyways, there's no reason plugin loading shouldn't
work in travis.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-15 12:11:56 -07:00
Steven Allen
942760b4b7
Merge pull request #6330 from ipfs/fix/obj-put-empty
...
object put: Allow empty objects
2019-05-14 16:08:18 -07:00
Łukasz Magiera
f18289531d
object: update sharness tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-05-14 23:42:58 +02:00
Steven Allen
307d06b465
Merge pull request #6277 from ipfs/fix/3124
...
work towards fixing dht commands
2019-05-14 12:38:39 -07:00
Steven Allen
037382239d
build: switch from megacheck to golangci-lint
...
(which includes megacheck)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:29 -07:00
Steven Allen
9886fc06fc
switch to base32 by default for CIDv1
...
fixes #6220
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-13 10:57:53 -07:00
Steven Allen
3803a6e5eb
ping: fixup sharness tests
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-08 23:15:16 -07:00
Steven Allen
0defe54899
dep: update go-ipfs-config
...
fixes #6284
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 12:43:04 -07:00
Steven Allen
a8fa9dd05a
test: dht put/get round trips
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-01 11:41:01 -07:00
myself659
63e18dac8d
humanize for ipfs bitswap stat
...
License: MIT
Signed-off-by: Eric Wu <myself659@163.com>
2019-04-26 02:54:48 -07:00
Łukasz Magiera
ac51d2999e
add: test adding multiple files
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-04-25 15:49:13 +02:00