- 23 Apr, 2015 3 commits
-
-
Jeromy authored
rename directory and update vendored dep cleanup
-
Juan Batiz-Benet authored
fix log callstack for log messages
-
Jeromy authored
-
- 22 Apr, 2015 16 commits
-
-
Jeromy Johnson authored
Instructions for installing command completion
-
Dylan Powers authored
-
Dylan Powers authored
-
Dylan Powers authored
-
Dylan Powers authored
-
Dylan Powers authored
-
Jeromy authored
-
Jeromy Johnson authored
implement basic peer discovery using mdns
-
Jeromy authored
-
Jeromy authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
sharness: encapsulate ipfs mount
-
Juan Batiz-Benet authored
test-lib.sh: fix umount calls
-
Jeromy authored
-
- 21 Apr, 2015 16 commits
-
-
Christian Couder authored
As test directories contain a space, we need to properly quote paths, otherwise we get errors like: ``` umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash is not mounted (according to mtab) umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash is not mounted (according to mtab) ``` instead of: ``` umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash directory.t0030-mount.sh/ipfs is not mounted (according to mtab) umount: /home/christian/gocode/src/github.com/ipfs/go-ipfs/test/sharness/trash directory.t0030-mount.sh/ipns is not mounted (according to mtab) ``` License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
As the ipfs mount call is now encapsulated in a temporary function (see previous commit) its output should not be tempered with by test_must_fail. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
Christian Couder authored
As described in issue #1109 on OSX some output from test_must_fail unfortunately goes into the "output" file that we use to test the output from "ipfs mount". This patch avoids the above by encapsulating the call to "ipfs mount" into a temporary function. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
-
Juan Batiz-Benet authored
This patch update fixes a few bugs: * harden shutdown logic by @torarnv * daemon locking fixes by @travisperson * don't re-add entire dirs by @whyrusleeping * tests now wait for graceful shutdown by @jbenet * default key size is now 2048 by @jbenet (experimenting with using semver)
-
Juan Batiz-Benet authored
init: lower default rsa key size to 2048 for now
-
Juan Batiz-Benet authored
sharness: wait for graceful shutdown
-
Juan Batiz-Benet authored
I think we should lower the default rsa key size to 2048 for now -- until we have a proper focus on securing everything. It's always a pain for new users to get hung on 4096 rsa key gen, when we have not even made sure we're using the keys perfectly correctly yet. (And 2048 is still considered secure)
-
Juan Batiz-Benet authored
sharness should only send the kill signal once, as that is what a graceful shutdown should do. in the event that doesn't happen, we should send it again, and then kill -9 to prevent it lingering and messing with other tests.
-
Juan Batiz-Benet authored
The test_must_fail check fails on osx. (it does not seem to fail on linux). See #1109
-
Juan Batiz-Benet authored
Harden shutdown logic
-
Juan Batiz-Benet authored
Check to see if the daemon is currently running
-
Travis Person authored
-
Travis Person authored
At this point I think this test should be moved out of this file
-
Juan Batiz-Benet authored
don't readd entire directories recursively
-
Travis Person authored
This test to make sure we can't run `ipfs init` while a daemon is currently running.
-
Travis Person authored
If the daemon is running we do not want to proceed with an an initialization. Return a client error telling the user to kill the daemon before proceeding with the command.
-
- 20 Apr, 2015 5 commits
-
-
Jeromy authored
-
Tor Arne Vestbø authored
Instead of just terminating right there and then, we cancel the context, and let the daemon exit cleanly. This make take a few seconds, as the node builder and its child processes do not care too much about the context state while building nodes, but this can be improved by injecting checks for ctx.Done() before time-consuming steps.
-
Tor Arne Vestbø authored
Instead of assuming the command is the daemon command and closing the node, which resulted in bugs like #1053, we cancel the context and let the context children detect the cancellation and gracefully clean up after themselves. The shutdown logging has been moved into the daemon command, where it makes more sense, so that commands like ping will not print out the same output on cancellation.
-
Tor Arne Vestbø authored
When the response includes the X-Chunked-Output header, we treat that as channel output, and fire up a goroutine to decode the chunks. This routine need to look for context cancellation so that it can exit cleanly.
-
Tor Arne Vestbø authored
The context may be cancelled while a request is in flight. We need to handle this and cancel the request. The code is based on the ideas from https://blog.golang.org/context
-