22 lines
480 B
HCL
22 lines
480 B
HCL
|
run "terraform-plan" {
|
||
|
command = plan
|
||
|
|
||
|
variables {
|
||
|
application_name = "test-application"
|
||
|
namespace = "test-namespace"
|
||
|
image = {
|
||
|
name = "container.localdomain/test-image"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
assert {
|
||
|
condition = var.application_name == "test-application"
|
||
|
error_message = "incorrect application name"
|
||
|
}
|
||
|
|
||
|
assert {
|
||
|
condition = kubernetes_deployment_v1.deployment.spec[0].replicas == "1"
|
||
|
error_message = "invalid number of replicas"
|
||
|
}
|
||
|
}
|