Skip to content

Commit

Permalink
Use 2048 bit RSA keys in sharness and bench
Browse files Browse the repository at this point in the history
  • Loading branch information
bigs committed Aug 3, 2019
1 parent 048cdc0 commit a1cac77
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ require (
github.com/ipfs/go-unixfs v0.2.1
github.com/ipfs/go-verifcid v0.0.1
github.com/ipfs/hang-fds v0.0.1
github.com/ipfs/interface-go-ipfs-core v0.1.0
github.com/ipfs/interface-go-ipfs-core v0.2.0
github.com/ipfs/iptb v1.4.0
github.com/ipfs/iptb-plugins v0.1.0
github.com/jbenet/go-is-domain v1.0.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ github.com/ipfs/go-verifcid v0.0.1 h1:m2HI7zIuR5TFyQ1b79Da5N9dnnCP1vcu2QqawmWlK2
github.com/ipfs/go-verifcid v0.0.1/go.mod h1:5Hrva5KBeIog4A+UpqlaIU+DEstipcJYQQZc0g37pY0=
github.com/ipfs/hang-fds v0.0.1 h1:KGAxiGtJPT3THVRNT6yxgpdFPeX4ZemUjENOt6NlOn4=
github.com/ipfs/hang-fds v0.0.1/go.mod h1:U4JNbzwTpk/qP2Ms4VgrZ4HcgJGVosBJqMXvwe4udSY=
github.com/ipfs/interface-go-ipfs-core v0.1.0 h1:4LD2TJThswXVMJgAji9k9PyPsOGNtmdcx7U9RM1xH84=
github.com/ipfs/interface-go-ipfs-core v0.1.0/go.mod h1:h1zJvvfh9dcNU0bK+Jag516LputHLKQkHsDP+z0dz4A=
github.com/ipfs/interface-go-ipfs-core v0.2.0 h1:Rd/TEvCXLlX97PKtxDstXcvLg+haULSJmlD964X+u8U=
github.com/ipfs/interface-go-ipfs-core v0.2.0/go.mod h1:r4aDX0CTcI0pvqGqy4JxlwiTOGuIyDSpVKs0qZKqIMI=
github.com/ipfs/iptb v1.4.0 h1:YFYTrCkLMRwk/35IMyC6+yjoQSHTEcNcefBStLJzgvo=
github.com/ipfs/iptb v1.4.0/go.mod h1:1rzHpCYtNp87/+hTxG5TfCVn/yMY3dKnLn8tBiMfdmg=
github.com/ipfs/iptb-plugins v0.1.0 h1:9/PTKJX+rB2qqXkaX/3IDxLSHTBwMMvFrYEf7g2mFo8=
Expand Down
2 changes: 1 addition & 1 deletion test/bench/bench_cli_ipfs_add/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
}
}

initCmd := exec.Command("ipfs", "init", "-b=1024")
initCmd := exec.Command("ipfs", "init", "-b=2048")
setupCmd(initCmd)
if err := initCmd.Run(); err != nil {
benchmarkError = err
Expand Down
2 changes: 1 addition & 1 deletion test/bench/offline_add/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func benchmarkAdd(amount int64) (*testing.BenchmarkResult, error) {
cmd.Env = env
}

cmd := exec.Command("ipfs", "init", "-b=1024")
cmd := exec.Command("ipfs", "init", "-b=2048")
setupCmd(cmd)
if err := cmd.Run(); err != nil {
b.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion test/sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ test_init_ipfs() {

test_expect_success "ipfs init succeeds" '
export IPFS_PATH="$(pwd)/.ipfs" &&
ipfs init --profile=test -b=1024 > /dev/null
ipfs init --profile=test -b=2048 > /dev/null
'

test_expect_success "prepare config -- mounting" '
Expand Down
10 changes: 5 additions & 5 deletions test/sharness/t0020-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ test_expect_success "clean up ipfs dir" '
'

test_expect_success "'ipfs init --empty-repo' succeeds" '
BITS="1024" &&
BITS="2048" &&
ipfs init --bits="$BITS" --empty-repo >actual_init
'

Expand Down Expand Up @@ -128,14 +128,14 @@ test_expect_success "clean up ipfs dir" '

# test init profiles
test_expect_success "'ipfs init --profile' with invalid profile fails" '
BITS="1024" &&
BITS="2048" &&
test_must_fail ipfs init --bits="$BITS" --profile=nonexistent_profile 2> invalid_profile_out
EXPECT="Error: invalid configuration profile: nonexistent_profile" &&
grep "$EXPECT" invalid_profile_out
'

test_expect_success "'ipfs init --profile' succeeds" '
BITS="1024" &&
BITS="2048" &&
ipfs init --bits="$BITS" --profile=server
'

Expand All @@ -149,7 +149,7 @@ test_expect_success "clean up ipfs dir" '
'

test_expect_success "'ipfs init --profile=test' succeeds" '
BITS="1024" &&
BITS="2048" &&
ipfs init --bits="$BITS" --profile=test
'

Expand All @@ -168,7 +168,7 @@ test_expect_success "clean up ipfs dir" '
'

test_expect_success "'ipfs init --profile=lowpower' succeeds" '
BITS="1024" &&
BITS="2048" &&
ipfs init --bits="$BITS" --profile=lowpower
'

Expand Down
2 changes: 1 addition & 1 deletion test/sharness/t0025-datastores.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test_description="Test non-standard datastores"
. lib/test-lib.sh

test_expect_success "'ipfs init --profile=badgerds' succeeds" '
BITS="1024" &&
BITS="2048" &&
ipfs init --bits="$BITS" --profile=badgerds
'

Expand Down

0 comments on commit a1cac77

Please sign in to comment.