Skip to content

Commit 17c58f0

Browse files
committed
tests
1 parent 8a93598 commit 17c58f0

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

test/cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [ "$CMD" == "start" ]; then
4949
STARTERARGS="$STARTERARGS --all.backup.api-enabled=true"
5050
fi
5151
if [ -n "$ENABLE_DATABASE_EXTRA_FEATURES" ]; then
52-
STARTERARGS="$STARTERARGS --all.database.extended-names-databases=true --args.all.http.compress-response-threshold=1"
52+
STARTERARGS="$STARTERARGS --all.database.extended-names-databases=true --args.all.http.compress-response-threshold=1 --args.all.http.http.handle-content-encoding-for-unauthenticated-requests=true"
5353
fi
5454
if [[ "$OSTYPE" == "darwin"* ]]; then
5555
DOCKERPLATFORMARG="--platform linux/x86_64"

v2/connection/connection.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ type Compression struct {
6060
// RequestCompressionEnabled is used to enable compression for the requests
6161
RequestCompressionEnabled bool
6262

63-
// RequestCompressionThreshold - Sets the minimum HTTP request body size (in bytes) to trigger compression.
64-
// Default: 0 (AlwaysCompress)
65-
RequestCompressionThreshold int
66-
6763
// RequestCompressionLevel - Sets the compression level between -1 and 9
6864
// Default: 0 (NoCompression). For Reference see: https://pkg.go.dev/compress/flate#pkg-constants
6965
RequestCompressionLevel int

v2/tests/run_wrap_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func WrapConnectionFactory(t *testing.T, w WrapperConnectionFactory, wo ...WrapO
9595
}
9696

9797
waitForConnection(t, arangodb.NewClient(conn))
98-
applyCompression(t, conn)
98+
applyCompression(conn)
9999
return conn
100100
})
101101
})
@@ -112,7 +112,7 @@ func WrapConnectionFactory(t *testing.T, w WrapperConnectionFactory, wo ...WrapO
112112
}
113113

114114
waitForConnection(t, arangodb.NewClient(conn))
115-
applyCompression(t, conn)
115+
applyCompression(conn)
116116
return conn
117117
})
118118
})
@@ -132,7 +132,7 @@ func WrapConnectionFactory(t *testing.T, w WrapperConnectionFactory, wo ...WrapO
132132
}
133133

134134
waitForConnection(t, arangodb.NewClient(conn))
135-
applyCompression(t, conn)
135+
applyCompression(conn)
136136
return conn
137137
})
138138
})
@@ -152,13 +152,13 @@ func WrapConnectionFactory(t *testing.T, w WrapperConnectionFactory, wo ...WrapO
152152
}
153153

154154
waitForConnection(t, arangodb.NewClient(conn))
155-
applyCompression(t, conn)
155+
applyCompression(conn)
156156
return conn
157157
})
158158
})
159159
}
160160

161-
func applyCompression(t *testing.T, conn connection.Connection) {
161+
func applyCompression(conn connection.Connection) {
162162
if os.Getenv("ENABLE_DATABASE_EXTRA_FEATURES") == "true" {
163163
cmp := conn.GetConfiguration()
164164
cmp.Compression = &connection.Compression{

0 commit comments

Comments
 (0)