Stephen Whitmore
2f64de0d61
Uses preset API_MADDR and GWAY_ADDR globals.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Stephen Whitmore
c342d57347
Updates uses of *_ADDR -> *_MADDR
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Stephen Whitmore
31f4ef02c2
Use test_launch_ipfs_daemon
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Stephen Whitmore
597d684160
Adds arbitrary port support to t0060-daemon.sh.
...
Removes all of the hardcoded ports and defaults to non-standard API,
Gateway, and Swarm ports.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Jeromy Johnson
f630f9d92a
Merge pull request #2382 from ipfs/fix/mfs-truncate
...
fix minor mfs truncate bug
2016-02-23 10:42:06 -08:00
Christian Couder
73e76dca56
files: make 'files ls' defaults to /
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-22 19:15:49 +01:00
Jeromy
973707a884
fix minor mfs truncate bug
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-19 18:57:41 -08:00
Jeromy Johnson
662625318a
Merge pull request #2374 from ipfs/t0062-indentation-fix
...
t0062: fix indentation
2016-02-19 08:42:08 -08:00
Christian Couder
c6a7b51f0c
t0062: fix indentation
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-19 04:24:12 +01:00
Christian Couder
ad71b15e36
sharness: remove xt0130-multinode.sh
...
xt0130 test is already in as t0130.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-19 03:32:07 +01:00
Christian Couder
fa57fb7349
sharness: remove x0045-add-cat-iptb.sh
...
x0045 can be removed since we do the same stuff in other tests.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-19 03:31:39 +01:00
Jeromy
11f9e7f647
add a pause to fix timing on t0065
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-15 19:16:03 -08:00
Jeromy Johnson
6b76e2a41a
Merge pull request #2319 from ipfs/cleanup/gx-godeps
...
use gx vendored packages instead of godeps ones
2016-02-13 14:46:19 -08:00
Jeromy
d7dab3afea
Use gx vendored go-ipfs-utils where possible
...
For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Christian Couder
ce5eac46d4
t0020: improve error message
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-12 17:20:23 -08:00
Christian Couder
7d80512a4c
test-lib: add test_path_cmp()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-12 17:20:23 -08:00
Christian Couder
ea8d8aaa13
appveyor: use a POSIX prereq
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-12 17:20:23 -08:00
Jeromy
0c7595b65b
Use port zero for all ipfs daemon addresses in sharness testing
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 14:04:32 -08:00
Jeromy Johnson
c913105dd7
Merge pull request #2308 from ipfs/docker-auto-builds
...
Docker automatic builds
2016-02-10 09:23:23 -08:00
Jeromy
5474e15e93
blockstore locks return unlocker object now
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
d2e0d73bd5
flush pinning improvements
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
1feea8bc5f
flushing and shallow list names
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Lars Gierth
e59dc8e49d
docker: move to ipfs/go-ipfs image name
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-06 04:28:45 +01:00
Jeromy Johnson
5a0b8023be
Merge pull request #2256 from ipfs/feat/gx-libp2p
...
vendor libp2p with gx
2016-02-05 16:52:02 -08:00
Lars Gierth
ce0d62dca3
docker: save image space by excluding .git/
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-05 04:03:30 +01:00
Lars Gierth
c103efc1a9
sharness: disable t0300-docker-image on Circle CI
...
The actual tests for the IPFS daemon within the image,
which were added in the previous commits, made Circle CI unhappy.
Circle CI runs an old version of Docker
which still uses LXC instead of libcontainer.
The existing lxc-attach hack is testament to that.
We might be able to get it work [1][2]
but it's really not worth it at the moment,
and Circle CI isn't a good option for Docker things, right now.
[1] https://jpetazzo.github.io/2014/03/23/lxc-attach-nsinit-nsenter-docker-0-9/
[2] https://github.com/jpetazzo/nsenter
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-05 03:11:50 +01:00
Christian Couder
91322346e2
t0240: improvements
...
This:
- uses startup_cluster() from iptb-lib.sh,
- avoids running test_expect_success() inside test_expect_success()
as it makes the output confusing,
- makes the number of test nodes easily configurable.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-04 22:42:02 +01:00
Christian Couder
78f2f10ccf
iptb-lib: small improvements
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-04 22:32:49 +01:00
Lars Gierth
81c8cffee9
Rework the Dockerfile
...
- Have two Dockerfiles doing essentially the same,
but optimized for build time (for tests)
and image size (for Docker Hub)
- Fetch gx dependencies
- Expose port 4002 for utp
- Specify go version, currently 1.5.3-r0
- Create ephemeral fs-repo if none is mounted
- Have t0300-docker-image actually test IPFS, not just an echo
- Make everything a bit less hardcoded
- Remove dead shacheck
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-04 10:46:26 -08:00
Jeromy Johnson
585ef2b957
Merge pull request #2275 from ipfs/refactor-iptb-tests
...
Refactor iptb tests
2016-02-02 08:44:57 -08:00
Jeromy
c7c1e72eaf
add sharness test
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-01 16:35:22 -08:00
Christian Couder
79b6297770
t0130: use startup_cluster() from iptb-lib.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 23:23:53 +01:00
Christian Couder
e0a48ffcf6
iptb-lib: add startup_cluster()
...
While at it let's cleanup startup_cluster() too.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 23:22:35 +01:00
Christian Couder
8b875ebe77
t0121, t0130, t0240: use iptb-lib.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 13:48:00 +01:00
Christian Couder
d1f15d445b
iptb-lib: small cleanup
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 13:23:51 +01:00
Christian Couder
cacb1cc2d4
sharness: add lib/iptb-lib.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 13:17:13 +01:00
Jeromy
2263539c1c
do that last thing again
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 15:37:39 -08:00
Jeromy
c0101c0c4b
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 10:19:50 -08:00
Jeromy
0e8a6700f9
correct go-log dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:10 -08:00
Jeromy
3d0aa592ec
go-keyspace dep from libp2p added
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Jeromy
0e312f5caf
initial vendoring of libp2p outside of the repo with gx
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:06 -08:00
Stephen Whitmore
81b9607c49
Merge pull request #2201 from noffle/unpin-2155
...
Resolve paths in 'pin rm' /wo network lookup
2016-01-25 17:17:47 -08:00
Stephen Whitmore
9745704f5f
Slightly optimizes core.ResolveToKey().
...
This is done by skipping the step of resolving the final segment in the
path to a DAG node; instead preferring to look at the second-to-last
segmenet's links.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-24 23:31:05 -08:00
Juan Benet
a5c4c5d17c
Merge pull request #2232 from lidel/cors-preflight-fix
...
Gateway: add support for HTTP OPTIONS request type
2016-01-23 19:56:24 -08:00
Marcin Rataj
15d717c165
CORS header tests for Gateway
...
- Implements
https://github.com/ipfs/go-ipfs/pull/2232#issuecomment-173742385
- Separate test suite:
- we don't want to pollute other gateway tests with CORS headers
- (as of now) changing headers requires daemon restart anyway
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2016-01-22 23:41:33 +01:00
Juan Benet
a2b0287a5f
Merge pull request #2141 from Kubuxu/patch-1
...
Add Server field in HTTP API response header
2016-01-21 23:31:25 -08:00
Juan Benet
ffe6c8576e
Merge pull request #2021 from ipfs/fix/corsconfig
...
Fix SetAllowedOrigins
2016-01-21 23:03:23 -08:00
rht
f0801589b4
Add SetAllowedOrigins race test case
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-21 20:03:17 +07:00
Jakub Sztandera
981b389a04
Add Server field in HTTP API
...
Resolves #625
Included in tests.
License: MIT
Signed-off-by: Jakub (Kubuxu) Sztandera <kubuxu@gmail.com>
2016-01-20 18:30:39 +01:00
Christian Couder
2dd4f40c10
test/bin: remove ipfs-pin-stat
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00