forked from TrueCloudLab/frostfs-http-gw
[#102] test: Set up pool with SessionExpiration value
neofs-node v0.26.1 release tracks session token expiration more closely, so it has to be specified correctly. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
0d2621d346
commit
3ef46151d2
1 changed files with 6 additions and 4 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"math"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
|
@ -35,7 +36,7 @@ type putResponse struct {
|
||||||
func TestIntegration(t *testing.T) {
|
func TestIntegration(t *testing.T) {
|
||||||
rootCtx := context.Background()
|
rootCtx := context.Background()
|
||||||
aioImage := "nspccdev/neofs-aio-testcontainer:"
|
aioImage := "nspccdev/neofs-aio-testcontainer:"
|
||||||
versions := []string{"0.24.0", "0.25.1", "latest"}
|
versions := []string{"0.24.0", "0.25.1", "0.26.1", "latest"}
|
||||||
key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb")
|
key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
@ -269,9 +270,10 @@ func getPool(ctx context.Context, t *testing.T, key *keys.PrivateKey) pool.Pool
|
||||||
pb.AddNode("localhost:8080", 1)
|
pb.AddNode("localhost:8080", 1)
|
||||||
|
|
||||||
opts := &pool.BuilderOptions{
|
opts := &pool.BuilderOptions{
|
||||||
Key: &key.PrivateKey,
|
Key: &key.PrivateKey,
|
||||||
NodeConnectionTimeout: 5 * time.Second,
|
NodeConnectionTimeout: 5 * time.Second,
|
||||||
NodeRequestTimeout: 5 * time.Second,
|
NodeRequestTimeout: 5 * time.Second,
|
||||||
|
SessionExpirationEpoch: math.MaxUint64,
|
||||||
}
|
}
|
||||||
clientPool, err := pb.Build(ctx, opts)
|
clientPool, err := pb.Build(ctx, opts)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in a new issue