e2e: add new custom timeout value for slow PV deletion

This commit is contained in:
Fabio Bertinatto
2020-12-01 09:38:34 -03:00
parent c82626f96f
commit c28dba5494
2 changed files with 8 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ const (
pvReclaimTimeout = 3 * time.Minute
pvBoundTimeout = 3 * time.Minute
pvDeleteTimeout = 3 * time.Minute
pvDeleteSlowTimeout = 20 * time.Minute
snapshotCreateTimeout = 5 * time.Minute
snapshotDeleteTimeout = 5 * time.Minute
)
@@ -68,6 +69,9 @@ type TimeoutContext struct {
// PVDelete is how long PVs have to become deleted.
PVDelete time.Duration
// PVDeleteSlow is the same as PVDelete, but slower.
PVDeleteSlow time.Duration
// SnapshotCreate is how long for snapshot to create snapshotContent.
SnapshotCreate time.Duration
@@ -88,6 +92,7 @@ func NewTimeoutContextWithDefaults() *TimeoutContext {
PVReclaim: pvReclaimTimeout,
PVBound: pvBoundTimeout,
PVDelete: pvDeleteTimeout,
PVDeleteSlow: pvDeleteSlowTimeout,
SnapshotCreate: snapshotCreateTimeout,
SnapshotDelete: snapshotDeleteTimeout,
}