Update tests that set permissions to also include 'DOWNLOAD' permission and tests that test functions using queries

Description

Changes in stack-181 introduced a new permission type: DOWNLOAD, which determines whether a file is able to be downloaded. Change tests that specify permission to also include DOWNLOAD permissions.
Tests involving functions that use queries need to sleep for a few seconds before using that function because queries are now eventually consistent instead of immediately consistent.

Environment

None

Status

Assignee

Ziming Dong

Reporter

Ziming Dong

Labels

None

Validator

Xavier Schildwachter

Release Version History

None

Fix versions

Priority

Major