Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Dec 5, 2024
1 parent f2675c4 commit 14cbbf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Terraform deploy
run: |
pushd ./terraform/tests/
TF_VAR_model_name="test" terraform apply -target null_resource.simple_deployment_juju_wait_deployment -auto-approve
terraform apply -var "model=test" -target null_resource.simple_deployment_juju_wait_deployment -auto-approve
popd
lib-check:
Expand Down
3 changes: 2 additions & 1 deletion terraform/tests/simple_deployment.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module "mongodb" {
source = "../"
app_name = var.app_name
juju_model_name = var.juju_model_name
model = var.model
units = var.simple_mongodb_units
config = {
profile = "testing"
Expand All @@ -14,6 +14,7 @@ module "mongodb" {
resource "null_resource" "simple_deployment_juju_wait_deployment" {
provisioner "local-exec" {
command = <<-EOT
juju-wait -v --model ${var.model}
EOT
}
}
2 changes: 1 addition & 1 deletion terraform/tests/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "juju_model_name" {
variable "model" {
description = "Model name"
type = string
}
Expand Down

0 comments on commit 14cbbf4

Please sign in to comment.