@cryptotaxi247 / kubo / commits / f5ea1af51

Use 2048 bit RSA keys in sharness and bench

Cole Brown committed Aug 2, 2019 at 22:17 UTC f5ea1af51979622e7f66717e52d988ee31570c3f
7 files changed +12 -12
go.mod
+1 -1
@@ -52,7 +52,7 @@ require (
52 github.com/ipfs/go-unixfs v0.2.1
53 github.com/ipfs/go-verifcid v0.0.1
54 github.com/ipfs/hang-fds v0.0.1
55 - github.com/ipfs/interface-go-ipfs-core v0.1.0
55 + github.com/ipfs/interface-go-ipfs-core v0.2.0
56 github.com/ipfs/iptb v1.4.0
57 github.com/ipfs/iptb-plugins v0.1.0
58 github.com/jbenet/go-is-domain v1.0.2
go.sum
+2 -2
@@ -314,8 +314,8 @@ github.com/ipfs/go-verifcid v0.0.1 h1:m2HI7zIuR5TFyQ1b79Da5N9dnnCP1vcu2QqawmWlK2
314 github.com/ipfs/go-verifcid v0.0.1/go.mod h1:5Hrva5KBeIog4A+UpqlaIU+DEstipcJYQQZc0g37pY0=
315 github.com/ipfs/hang-fds v0.0.1 h1:KGAxiGtJPT3THVRNT6yxgpdFPeX4ZemUjENOt6NlOn4=
316 github.com/ipfs/hang-fds v0.0.1/go.mod h1:U4JNbzwTpk/qP2Ms4VgrZ4HcgJGVosBJqMXvwe4udSY=
317 -github.com/ipfs/interface-go-ipfs-core v0.1.0 h1:4LD2TJThswXVMJgAji9k9PyPsOGNtmdcx7U9RM1xH84=
318 -github.com/ipfs/interface-go-ipfs-core v0.1.0/go.mod h1:h1zJvvfh9dcNU0bK+Jag516LputHLKQkHsDP+z0dz4A=
317 +github.com/ipfs/interface-go-ipfs-core v0.2.0 h1:Rd/TEvCXLlX97PKtxDstXcvLg+haULSJmlD964X+u8U=
318 +github.com/ipfs/interface-go-ipfs-core v0.2.0/go.mod h1:r4aDX0CTcI0pvqGqy4JxlwiTOGuIyDSpVKs0qZKqIMI=
319 github.com/ipfs/iptb v1.4.0 h1:YFYTrCkLMRwk/35IMyC6+yjoQSHTEcNcefBStLJzgvo=
320 github.com/ipfs/iptb v1.4.0/go.mod h1:1rzHpCYtNp87/+hTxG5TfCVn/yMY3dKnLn8tBiMfdmg=
321 github.com/ipfs/iptb-plugins v0.1.0 h1:9/PTKJX+rB2qqXkaX/3IDxLSHTBwMMvFrYEf7g2mFo8=
test/bench/bench_cli_ipfs_add/main.go
+1 -1
@@ -65,7 +65,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
65 }
66 }
67
68 - initCmd := exec.Command("ipfs", "init", "-b=1024")
68 + initCmd := exec.Command("ipfs", "init", "-b=2048")
69 setupCmd(initCmd)
70 if err := initCmd.Run(); err != nil {
71 benchmarkError = err
test/bench/offline_add/main.go
+1 -1
@@ -49,7 +49,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
49 cmd.Env = env
50 }
51
52 - cmd := exec.Command("ipfs", "init", "-b=1024")
52 + cmd := exec.Command("ipfs", "init", "-b=2048")
53 setupCmd(cmd)
54 if err := cmd.Run(); err != nil {
55 b.Fatal(err)
test/sharness/lib/test-lib.sh
+1 -1
@@ -148,7 +148,7 @@ test_init_ipfs() {
148
149 test_expect_success "ipfs init succeeds" '
150 export IPFS_PATH="$(pwd)/.ipfs" &&
151 - ipfs init --profile=test -b=1024 > /dev/null
151 + ipfs init --profile=test -b=2048 > /dev/null
152 '
153
154 test_expect_success "prepare config -- mounting" '
test/sharness/t0020-init.sh
+5 -5
@@ -98,7 +98,7 @@ test_expect_success "clean up ipfs dir" '
98 '
99
100 test_expect_success "'ipfs init --empty-repo' succeeds" '
101 - BITS="1024" &&
101 + BITS="2048" &&
102 ipfs init --bits="$BITS" --empty-repo >actual_init
103 '
104
@@ -128,14 +128,14 @@ test_expect_success "clean up ipfs dir" '
128
129 # test init profiles
130 test_expect_success "'ipfs init --profile' with invalid profile fails" '
131 - BITS="1024" &&
131 + BITS="2048" &&
132 test_must_fail ipfs init --bits="$BITS" --profile=nonexistent_profile 2> invalid_profile_out
133 EXPECT="Error: invalid configuration profile: nonexistent_profile" &&
134 grep "$EXPECT" invalid_profile_out
135 '
136
137 test_expect_success "'ipfs init --profile' succeeds" '
138 - BITS="1024" &&
138 + BITS="2048" &&
139 ipfs init --bits="$BITS" --profile=server
140 '
141
@@ -149,7 +149,7 @@ test_expect_success "clean up ipfs dir" '
149 '
150
151 test_expect_success "'ipfs init --profile=test' succeeds" '
152 - BITS="1024" &&
152 + BITS="2048" &&
153 ipfs init --bits="$BITS" --profile=test
154 '
155
@@ -168,7 +168,7 @@ test_expect_success "clean up ipfs dir" '
168 '
169
170 test_expect_success "'ipfs init --profile=lowpower' succeeds" '
171 - BITS="1024" &&
171 + BITS="2048" &&
172 ipfs init --bits="$BITS" --profile=lowpower
173 '
174
test/sharness/t0025-datastores.sh
+1 -1
@@ -5,7 +5,7 @@ test_description="Test non-standard datastores"
5 . lib/test-lib.sh
6
7 test_expect_success "'ipfs init --profile=badgerds' succeeds" '
8 - BITS="1024" &&
8 + BITS="2048" &&
9 ipfs init --bits="$BITS" --profile=badgerds
10 '
11