Skip to content

Commit

Permalink
improve integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed Dec 12, 2024
1 parent 5f107cf commit c414f8a
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions internal/providers/pluginfw/products/app/app_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,35 @@ const baseResources = `
string_value = "secret"
}
# resource "databricks_sql_endpoint" "this" {
# name = "tf-{var.STICKY_RANDOM}"
# cluster_size = "2X-Small"
# max_num_clusters = 1
resource "databricks_sql_endpoint" "this" {
name = "tf-{var.STICKY_RANDOM}"
cluster_size = "2X-Small"
max_num_clusters = 1
# tags {
# custom_tags {
# key = "Owner"
# value = "eng-dev-ecosystem-team_at_databricks.com"
# }
# }
# }
tags {
custom_tags {
key = "Owner"
value = "eng-dev-ecosystem-team_at_databricks.com"
}
}
}
# resource "databricks_job" "this" {
# name = "tf-{var.STICKY_RANDOM}"
# }
resource "databricks_job" "this" {
name = "tf-{var.STICKY_RANDOM}"
}
# resource "databricks_model_serving" "this" {
# name = "tf-{var.STICKY_RANDOM}"
# config {
# served_models {
# name = "prod_model"
# model_name = "experiment-fixture-model"
# model_version = "1"
# workload_size = "Small"
# scale_to_zero_enabled = true
# }
# }
# }
resource "databricks_model_serving" "this" {
name = "tf-{var.STICKY_RANDOM}"
config {
served_models {
name = "prod_model"
model_name = "experiment-fixture-model"
model_version = "1"
workload_size = "Small"
scale_to_zero_enabled = true
}
}
}
`

func makeTemplate(description string) string {
Expand All @@ -64,32 +64,32 @@ func makeTemplate(description string) string {
permission = "MANAGE"
}
}]
# resources {
# name = "warehouse"
# description = "warehouse for app"
# job {
# id = databricks_job.this.id
# permission = "CAN_MANAGE"
# }
# }
resources {
name = "warehouse"
description = "warehouse for app"
job {
id = databricks_job.this.id
permission = "CAN_MANAGE"
}
}
# resources {
# name = "serving endpoint"
# description = "serving endpoint for app"
# serving_endpoint {
# name = databricks_model_serving.this.name
# permission = "CAN_MANAGE"
# }
# }
resources {
name = "serving endpoint"
description = "serving endpoint for app"
serving_endpoint {
name = databricks_model_serving.this.name
permission = "CAN_MANAGE"
}
}
# resources {
# name = "sql warehouse"
# description = "sql warehouse for app"
# sql_warehouse {
# id = databricks_sql_endpoint.this.id
# permission = "CAN_MANAGE"
# }
# }
resources {
name = "sql warehouse"
description = "sql warehouse for app"
sql_warehouse {
id = databricks_sql_endpoint.this.id
permission = "CAN_MANAGE"
}
}
}`
return fmt.Sprintf(appTemplate, description)
}
Expand Down

0 comments on commit c414f8a

Please sign in to comment.