multistream tests use data from file
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Apr 7, 2016 at 10:33 UTC
42455d27b310f08520059c3037c1a366123beb0b
3 files changed
+4
-2
test/sharness/t0060-daemon.sh
+1
-1
@@ -81,7 +81,7 @@ test_expect_success "nc is available" '
81
82
# check transport is encrypted
83
test_expect_success "transport should be encrypted" '
84
- printf "\x13/multistream/1.0.0\n\3ls\n" | nc -q1 localhost $SWARM_PORT > swarmnc &&
84
+ nc -q1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
85
grep -q "/secio" swarmnc &&
86
test_must_fail grep -q "/plaintext/1.0.0" swarmnc ||
87
test_fsh cat swarmnc
test/sharness/t0060-data/mss-ls
new
+2
@@ -0,0 +1,2 @@
1
+/multistream/1.0.0
2
+ls
test/sharness/t0061-daemon-opts.sh
+1
-1
@@ -27,7 +27,7 @@ test_expect_success 'api gateway should be unrestricted' '
27
28
# Odd. this fails here, but the inverse works on t0060-daemon.
29
test_expect_success 'transport should be unencrypted' '
30
- printf "\x13/multistream/1.0.0\n\3ls\n" | nc -q 1 localhost $SWARM_PORT > swarmnc &&
30
+ nc -q 1 localhost $SWARM_PORT > swarmnc < ../t0060-data/mss-ls &&
31
test_must_fail grep -q "/secio" swarmnc &&
32
grep -q "/plaintext" swarmnc ||
33
test_fsh cat swarmnc