Skip to content

Commit

Permalink
revert use role sysadmin test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jl committed Oct 12, 2023
1 parent 456406e commit ad2e93c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions file_transfer_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func TestUnitDownloadWithInvalidLocalPath(t *testing.T) {
f.Close()

runDBTest(t, func(dbt *DBTest) {
if _, err = dbt.exec("use role sysadmin"); err != nil {
t.Skip("snowflake admin account not accessible")
}
dbt.mustExec("rm @~/test_get")
sqlText := fmt.Sprintf("put file://%v @~/test_get", testData)
sqlText = strings.ReplaceAll(sqlText, "\\", "\\\\")
Expand Down
3 changes: 3 additions & 0 deletions put_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ func TestPutWithAutoCompressFalse(t *testing.T) {
defer f.Close()

runDBTest(t, func(dbt *DBTest) {
if _, err = dbt.exec("use role sysadmin"); err != nil {
t.Skip("snowflake admin account not accessible")
}
dbt.mustExec("rm @~/test_put_uncompress_file")
sqlText := fmt.Sprintf("put file://%v @~/test_put_uncompress_file auto_compress=FALSE", testData)
sqlText = strings.ReplaceAll(sqlText, "\\", "\\\\")
Expand Down

0 comments on commit ad2e93c

Please sign in to comment.