Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anvial committed Jul 2, 2024
1 parent f1a2dc9 commit a8f18d8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 5 additions & 1 deletion docs/resources/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "juju_application" "this" {
}
}
resource "juju_application" "placement_example" {
resource "juju_application" "placement_and_storage_example" {
name = "placement-example"
model = juju_model.development.name
charm {
Expand All @@ -45,6 +45,10 @@ resource "juju_application" "placement_example" {
units = 3
placement = "0,1,2"
storage = {
files = "101M"
}
config = {
external-hostname = "..."
}
Expand Down
1 change: 0 additions & 1 deletion internal/provider/resource_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
Expand Down
9 changes: 3 additions & 6 deletions internal/provider/resource_application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,7 @@ func TestAcc_ResourceApplication_Storage(t *testing.T) {
modelName := acctest.RandomWithPrefix("tf-test-application-storage")
appName := "test-app-storage"

storageConstraints := map[string]string{"label": "files", "size": "102M"}

// trace plan
t.Log(testAccResourceApplicationStorage(modelName, appName, storageConstraints))
storageConstraints := map[string]string{"label": "runner", "size": "102M"}

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down Expand Up @@ -905,9 +902,9 @@ resource "juju_application" "{{.AppName}}" {
model = juju_model.{{.ModelName}}.name
name = "{{.AppName}}"
charm {
name = "ubuntu"
name = "github-runner"
channel = "latest/stable"
revision = 24
revision = 177
}
storage_directives = {
Expand Down

0 comments on commit a8f18d8

Please sign in to comment.