Skip to content

Commit

Permalink
Fix function tests requiring an active warehouse
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-asawicki committed Dec 19, 2024
1 parent 02afd6b commit 43436d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/resources/function_java_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ func TestAcc_FunctionJava_InlineBasicDefaultArg(t *testing.T) {
func TestAcc_FunctionJava_InlineFull(t *testing.T) {
_ = testenvs.GetOrSkipTest(t, testenvs.EnableAcceptance)
acc.TestAccPreCheck(t)
t.Setenv(string(testenvs.ConfigureClientOnce), "")

stage, stageCleanup := acc.TestClient().Stage.CreateStage(t)
t.Cleanup(stageCleanup)
Expand Down
5 changes: 5 additions & 0 deletions pkg/resources/function_python_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import (
)

func TestAcc_FunctionPython_InlineBasic(t *testing.T) {
_ = testenvs.GetOrSkipTest(t, testenvs.EnableAcceptance)
acc.TestAccPreCheck(t)
t.Setenv(string(testenvs.ConfigureClientOnce), "")

funcName := "some_function"
argName := "x"
dataType := testdatatypes.DataTypeNumber_36_2
Expand Down Expand Up @@ -110,6 +114,7 @@ func TestAcc_FunctionPython_InlineBasic(t *testing.T) {
func TestAcc_FunctionPython_InlineFull(t *testing.T) {
_ = testenvs.GetOrSkipTest(t, testenvs.EnableAcceptance)
acc.TestAccPreCheck(t)
t.Setenv(string(testenvs.ConfigureClientOnce), "")

secretId := acc.TestClient().Ids.RandomSchemaObjectIdentifier()
secretId2 := acc.TestClient().Ids.RandomSchemaObjectIdentifier()
Expand Down
1 change: 1 addition & 0 deletions pkg/resources/function_scala_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func TestAcc_FunctionScala_InlineBasic(t *testing.T) {
func TestAcc_FunctionScala_InlineFull(t *testing.T) {
_ = testenvs.GetOrSkipTest(t, testenvs.EnableAcceptance)
acc.TestAccPreCheck(t)
t.Setenv(string(testenvs.ConfigureClientOnce), "")

stage, stageCleanup := acc.TestClient().Stage.CreateStage(t)
t.Cleanup(stageCleanup)
Expand Down

0 comments on commit 43436d7

Please sign in to comment.