ci: format
This commit is contained in:
parent
fe4c1d0e31
commit
ee75e6844e
2 changed files with 27 additions and 8 deletions
|
|
@ -61,7 +61,9 @@ describe('s3', function()
|
|||
local task = { _extra = nil, modified = '2026-01-01T00:00:00Z' }
|
||||
local id = s3._ensure_sync_id(task)
|
||||
assert.is_not_nil(id)
|
||||
assert.truthy(id:match('^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$'))
|
||||
assert.truthy(
|
||||
id:match('^%x%x%x%x%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%-%x%x%x%x%x%x%x%x%x%x%x%x$')
|
||||
)
|
||||
assert.equals(id, task._extra['_s3_sync_id'])
|
||||
end)
|
||||
|
||||
|
|
@ -79,7 +81,11 @@ describe('s3', function()
|
|||
it('reports success on valid credentials', function()
|
||||
util.system = function(args)
|
||||
if vim.tbl_contains(args, 'get-caller-identity') then
|
||||
return { code = 0, stdout = '{"Account":"123456","Arn":"arn:aws:iam::user/test"}', stderr = '' }
|
||||
return {
|
||||
code = 0,
|
||||
stdout = '{"Account":"123456","Arn":"arn:aws:iam::user/test"}',
|
||||
stderr = '',
|
||||
}
|
||||
end
|
||||
return { code = 0, stdout = '', stderr = '' }
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue