mirror of
https://github.com/actions/toolkit.git
synced 2026-08-18 00:00:19 +02:00
feat: optional path validation during cache restore
This commit is contained in:
+5
-2
@@ -11,6 +11,7 @@ const downloadConcurrency = 8
|
||||
const timeoutInMs = 30000
|
||||
const segmentTimeoutInMs = 600000
|
||||
const lookupOnly = false
|
||||
const pathValidation = 'off'
|
||||
|
||||
test('getDownloadOptions sets defaults', async () => {
|
||||
const actualOptions = getDownloadOptions()
|
||||
@@ -21,7 +22,8 @@ test('getDownloadOptions sets defaults', async () => {
|
||||
downloadConcurrency,
|
||||
timeoutInMs,
|
||||
segmentTimeoutInMs,
|
||||
lookupOnly
|
||||
lookupOnly,
|
||||
pathValidation
|
||||
})
|
||||
})
|
||||
|
||||
@@ -32,7 +34,8 @@ test('getDownloadOptions overrides all settings', async () => {
|
||||
downloadConcurrency: 14,
|
||||
timeoutInMs: 20000,
|
||||
segmentTimeoutInMs: 3600000,
|
||||
lookupOnly: true
|
||||
lookupOnly: true,
|
||||
pathValidation: 'error'
|
||||
}
|
||||
|
||||
const actualOptions = getDownloadOptions(expectedOptions)
|
||||
|
||||
Reference in New Issue
Block a user