@@ -138,7 +138,7 @@ func Test_GetServerStatus(t *testing.T) {
138138
139139func Test_GetDeploymentSupportInfo (t * testing.T ) {
140140 Wrap (t , func (t * testing.T , client arangodb.Client ) {
141- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
141+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
142142
143143 serverRole , err := client .ServerRole (ctx )
144144 require .NoError (t , err )
@@ -160,7 +160,7 @@ func Test_GetDeploymentSupportInfo(t *testing.T) {
160160
161161func Test_GetStartupConfiguration (t * testing.T ) {
162162 Wrap (t , func (t * testing.T , client arangodb.Client ) {
163- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
163+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
164164
165165 resp , err := client .GetStartupConfiguration (ctx )
166166 if err != nil {
@@ -220,7 +220,8 @@ func Test_GetStartupConfiguration(t *testing.T) {
220220func Test_ReloadRoutingTable (t * testing.T ) {
221221 Wrap (t , func (t * testing.T , client arangodb.Client ) {
222222 WithDatabase (t , client , nil , func (db arangodb.Database ) {
223- withContextT (t , time .Minute , func (ctx context.Context , t testing.TB ) {
223+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
224+ requireV8Enabled (client , ctx , t )
224225 err := client .ReloadRoutingTable (ctx , db .Name ())
225226 require .NoError (t , err )
226227 })
@@ -232,6 +233,7 @@ func Test_ExecuteAdminScript(t *testing.T) {
232233 Wrap (t , func (t * testing.T , client arangodb.Client ) {
233234 WithDatabase (t , client , nil , func (db arangodb.Database ) {
234235 withContextT (t , defaultTestTimeout , func (ctx context.Context , tb testing.TB ) {
236+ requireV8Enabled (client , ctx , t )
235237 tests := []struct {
236238 name string
237239 script string
@@ -283,7 +285,7 @@ func Test_ExecuteAdminScript(t *testing.T) {
283285
284286func Test_CompactDatabases (t * testing.T ) {
285287 Wrap (t , func (t * testing.T , client arangodb.Client ) {
286- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
288+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
287289
288290 checkCompact := func (opts * arangodb.CompactOpts ) {
289291 resp , err := client .CompactDatabases (ctx , opts )
@@ -404,7 +406,7 @@ func validateTLSResponse(t testing.TB, tlsResp arangodb.TLSDataResponse, operati
404406// Test_ReloadTLSData tests TLS certificate reload functionality, skipping if superuser rights unavailable.
405407func Test_ReloadTLSData (t * testing.T ) {
406408 Wrap (t , func (t * testing.T , client arangodb.Client ) {
407- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
409+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
408410 // Reload TLS data - requires superuser rights
409411 tlsResp , err := client .ReloadTLSData (ctx )
410412 if err != nil {
@@ -437,7 +439,7 @@ func Test_ReloadTLSData(t *testing.T) {
437439// The test is skipped if superuser rights are missing or the feature is disabled/not configured.
438440func Test_RotateEncryptionAtRestKey (t * testing.T ) {
439441 Wrap (t , func (t * testing.T , client arangodb.Client ) {
440- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
442+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
441443
442444 // Attempt to rotate encryption at rest key - requires superuser rights
443445 resp , err := client .RotateEncryptionAtRestKey (ctx )
@@ -502,7 +504,7 @@ func Test_GetJWTSecrets(t *testing.T) {
502504// Test_ReloadJWTSecrets validates JWT secrets reload functionality, skipping if not available.
503505func Test_ReloadJWTSecrets (t * testing.T ) {
504506 Wrap (t , func (t * testing.T , client arangodb.Client ) {
505- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
507+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
506508 resp , err := client .ReloadJWTSecrets (ctx )
507509 if err != nil {
508510 if handleJWTSecretsError (t , err , "ReloadJWTSecrets" , []int {http .StatusForbidden , http .StatusBadRequest }) {
@@ -567,7 +569,7 @@ func validateJWTSecretsResponse(t testing.TB, resp arangodb.JWTSecretsResult, op
567569}
568570func Test_HandleAdminVersion (t * testing.T ) {
569571 Wrap (t , func (t * testing.T , client arangodb.Client ) {
570- withContextT (t , time . Minute , func (ctx context.Context , tb testing.TB ) {
572+ withContextT (t , defaultTestTimeout , func (ctx context.Context , tb testing.TB ) {
571573 t .Run ("With Options" , func (t * testing.T ) {
572574 resp , err := client .HandleAdminVersion (context .Background (), & arangodb.GetVersionOptions {
573575 Details : utils .NewType (true ),
@@ -593,7 +595,7 @@ func Test_HandleAdminVersion(t *testing.T) {
593595func Test_GetDeploymentId (t * testing.T ) {
594596 Wrap (t , func (t * testing.T , client arangodb.Client ) {
595597 t .Run ("Success case" , func (t * testing.T ) {
596- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
598+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
597599 version := skipBelowVersion (client , ctx , "3.12.6" , t )
598600 t .Logf ("Current Version %s" , version .Version )
599601
@@ -607,7 +609,7 @@ func Test_GetDeploymentId(t *testing.T) {
607609 })
608610
609611 t .Run ("Multiple calls consistency" , func (t * testing.T ) {
610- withContextT (t , time . Minute , func (ctx context.Context , t testing.TB ) {
612+ withContextT (t , defaultTestTimeout , func (ctx context.Context , t testing.TB ) {
611613 version := skipBelowVersion (client , ctx , "3.12.6" , t )
612614 t .Logf ("Current Version %s" , version .Version )
613615
0 commit comments