clarify test

This commit is contained in:
Mahmood Ali 2020-11-09 16:24:22 -05:00
parent a155423ba3
commit 2e5ce5aa96
1 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ locals {
# literal local
dc = "local_dc"
# local that depends on a variable
region = "${var.region_var}.local"
region = "${var.region_var}.example"
}
job "example" {
@ -222,7 +222,7 @@ job "example" {
require.Equal(t, []string{"local_dc"}, out.Datacenters)
require.NotNil(t, out.Region)
require.Equal(t, "default_region.local", *out.Region)
require.Equal(t, "default_region.example", *out.Region)
})
t.Run("set via -var argments", func(t *testing.T) {
@ -236,7 +236,7 @@ job "example" {
require.Equal(t, []string{"local_dc"}, out.Datacenters)
require.NotNil(t, out.Region)
require.Equal(t, "set_region.local", *out.Region)
require.Equal(t, "set_region.example", *out.Region)
})
}