mirror of https://github.com/databricks/cli.git
make app creation test short
This commit is contained in:
parent
833a3614a6
commit
af6171d9b3
|
@ -16,12 +16,6 @@ import (
|
||||||
func TestDeployBundleWithApp(t *testing.T) {
|
func TestDeployBundleWithApp(t *testing.T) {
|
||||||
ctx, wt := acc.WorkspaceTest(t)
|
ctx, wt := acc.WorkspaceTest(t)
|
||||||
|
|
||||||
// TODO: should only skip app run when app can be created with no_compute option.
|
|
||||||
if testing.Short() {
|
|
||||||
t.Log("Skip the app creation and run in short mode")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if testutil.GetCloud(t) == testutil.GCP {
|
if testutil.GetCloud(t) == testutil.GCP {
|
||||||
t.Skip("Skipping test for GCP cloud because /api/2.0/apps is temporarily unavailable there.")
|
t.Skip("Skipping test for GCP cloud because /api/2.0/apps is temporarily unavailable there.")
|
||||||
}
|
}
|
||||||
|
@ -80,6 +74,11 @@ env:
|
||||||
- name: JOB_ID
|
- name: JOB_ID
|
||||||
value: "%d"`, job.JobId))
|
value: "%d"`, job.JobId))
|
||||||
|
|
||||||
|
if testing.Short() {
|
||||||
|
t.Log("Skip the app run in short mode")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Try to run the app
|
// Try to run the app
|
||||||
_, out := runResourceWithStderr(t, ctx, root, "test_app")
|
_, out := runResourceWithStderr(t, ctx, root, "test_app")
|
||||||
require.Contains(t, out, app.Url)
|
require.Contains(t, out, app.Url)
|
||||||
|
|
Loading…
Reference in New Issue