@@ -411,11 +411,11 @@ new line
411411 ExpectedOutput : ` # test_instance.example will be created
412412 + resource "test_instance" "example" {
413413 + conn_info = {
414- + password = (sensitive)
414+ + password = (sensitive value )
415415 + user = "not-secret"
416416 }
417417 + id = (known after apply)
418- + password = (sensitive)
418+ + password = (sensitive value )
419419 }
420420` ,
421421 },
@@ -3048,7 +3048,7 @@ func TestResourceChange_nestedSet(t *testing.T) {
30483048 ExpectedOutput : ` # test_instance.example will be created
30493049 + resource "test_instance" "example" {
30503050 + ami = "ami-AFTER"
3051- + disks = (sensitive)
3051+ + disks = (sensitive value )
30523052 + id = "i-02ae66f368e8518a9"
30533053
30543054 + root_block_device {
@@ -3146,7 +3146,7 @@ func TestResourceChange_nestedSet(t *testing.T) {
31463146 ~ ami = "ami-BEFORE" -> "ami-AFTER"
31473147 # Warning: this attribute value will be marked as sensitive and will not
31483148 # display in UI output after applying this change.
3149- ~ disks = (sensitive)
3149+ ~ disks = (sensitive value )
31503150 id = "i-02ae66f368e8518a9"
31513151
31523152 + root_block_device {
@@ -3197,7 +3197,7 @@ func TestResourceChange_nestedSet(t *testing.T) {
31973197 ~ ami = "ami-BEFORE" -> "ami-AFTER"
31983198 # Warning: this attribute value will be marked as sensitive and will not
31993199 # display in UI output after applying this change. The value is unchanged.
3200- ~ disks = (sensitive)
3200+ ~ disks = (sensitive value )
32013201 id = "i-02ae66f368e8518a9"
32023202 }
32033203` ,
@@ -3965,7 +3965,7 @@ func TestResourceChange_nestedMap(t *testing.T) {
39653965 ~ ami = "ami-BEFORE" -> "ami-AFTER"
39663966 ~ disks = {
39673967 + "disk_a" = {
3968- + mount_point = (sensitive)
3968+ + mount_point = (sensitive value )
39693969 + size = "50GB"
39703970 },
39713971 }
@@ -5728,18 +5728,18 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
57285728 },
57295729 ExpectedOutput : ` # test_instance.example will be created
57305730 + resource "test_instance" "example" {
5731- + ami = (sensitive)
5731+ + ami = (sensitive value )
57325732 + id = "i-02ae66f368e8518a9"
57335733 + list_field = [
57345734 + "hello",
5735- + (sensitive),
5735+ + (sensitive value ),
57365736 + "!",
57375737 ]
57385738 + map_key = {
57395739 + "breakfast" = 800
5740- + "dinner" = (sensitive)
5740+ + "dinner" = (sensitive value )
57415741 }
5742- + map_whole = (sensitive)
5742+ + map_whole = (sensitive value )
57435743
57445744 + nested_block_list {
57455745 # At least one attribute in this block is (or was) sensitive,
@@ -5882,29 +5882,29 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
58825882 ~ resource "test_instance" "example" {
58835883 # Warning: this attribute value will no longer be marked as sensitive
58845884 # after applying this change.
5885- ~ ami = (sensitive)
5885+ ~ ami = (sensitive value )
58865886 id = "i-02ae66f368e8518a9"
58875887 ~ list_field = [
58885888 # (1 unchanged element hidden)
58895889 "friends",
5890- - (sensitive),
5890+ - (sensitive value ),
58915891 + ".",
58925892 ]
58935893 ~ map_key = {
58945894 # Warning: this attribute value will no longer be marked as sensitive
58955895 # after applying this change.
5896- ~ "dinner" = (sensitive)
5896+ ~ "dinner" = (sensitive value )
58975897 # (1 unchanged element hidden)
58985898 }
58995899 # Warning: this attribute value will no longer be marked as sensitive
59005900 # after applying this change.
5901- ~ map_whole = (sensitive)
5901+ ~ map_whole = (sensitive value )
59025902 # Warning: this attribute value will no longer be marked as sensitive
59035903 # after applying this change.
5904- ~ some_number = (sensitive)
5904+ ~ some_number = (sensitive value )
59055905 # Warning: this attribute value will no longer be marked as sensitive
59065906 # after applying this change.
5907- ~ special = (sensitive)
5907+ ~ special = (sensitive value )
59085908
59095909 # Warning: this block will no longer be marked as sensitive
59105910 # after applying this change.
@@ -6007,18 +6007,18 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
60076007 id = "i-02ae66f368e8518a9"
60086008 ~ list_field = [
60096009 - "hello",
6010- + (sensitive),
6010+ + (sensitive value ),
60116011 "friends",
60126012 ]
60136013 ~ map_key = {
60146014 ~ "breakfast" = 800 -> 700
60156015 # Warning: this attribute value will be marked as sensitive and will not
60166016 # display in UI output after applying this change.
6017- ~ "dinner" = (sensitive)
6017+ ~ "dinner" = (sensitive value )
60186018 }
60196019 # Warning: this attribute value will be marked as sensitive and will not
60206020 # display in UI output after applying this change.
6021- ~ map_whole = (sensitive)
6021+ ~ map_whole = (sensitive value )
60226022
60236023 # Warning: this block will be marked as sensitive and will not
60246024 # display in UI output after applying this change.
@@ -6143,15 +6143,15 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
61436143 ~ ami = (sensitive value)
61446144 id = "i-02ae66f368e8518a9"
61456145 ~ list_field = [
6146- - (sensitive),
6147- + (sensitive),
6146+ - (sensitive value ),
6147+ + (sensitive value ),
61486148 "friends",
61496149 ]
61506150 ~ map_key = {
6151- ~ "dinner" = (sensitive)
6151+ ~ "dinner" = (sensitive value )
61526152 # (1 unchanged element hidden)
61536153 }
6154- ~ map_whole = (sensitive)
6154+ ~ map_whole = (sensitive value )
61556155
61566156 ~ nested_block_map {
61576157 # At least one attribute in this block is (or was) sensitive,
@@ -6289,29 +6289,29 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
62896289 ~ resource "test_instance" "example" {
62906290 # Warning: this attribute value will no longer be marked as sensitive
62916291 # after applying this change. The value is unchanged.
6292- ~ ami = (sensitive)
6292+ ~ ami = (sensitive value )
62936293 id = "i-02ae66f368e8518a9"
62946294 ~ list_field = [
62956295 # (1 unchanged element hidden)
62966296 "friends",
6297- - (sensitive),
6297+ - (sensitive value ),
62986298 + "!",
62996299 ]
63006300 ~ map_key = {
63016301 # Warning: this attribute value will no longer be marked as sensitive
63026302 # after applying this change. The value is unchanged.
6303- ~ "dinner" = (sensitive)
6303+ ~ "dinner" = (sensitive value )
63046304 # (1 unchanged element hidden)
63056305 }
63066306 # Warning: this attribute value will no longer be marked as sensitive
63076307 # after applying this change. The value is unchanged.
6308- ~ map_whole = (sensitive)
6308+ ~ map_whole = (sensitive value )
63096309 # Warning: this attribute value will no longer be marked as sensitive
63106310 # after applying this change. The value is unchanged.
6311- ~ some_number = (sensitive)
6311+ ~ some_number = (sensitive value )
63126312 # Warning: this attribute value will no longer be marked as sensitive
63136313 # after applying this change. The value is unchanged.
6314- ~ special = (sensitive)
6314+ ~ special = (sensitive value )
63156315
63166316 # Warning: this block will no longer be marked as sensitive
63176317 # after applying this change.
@@ -6410,17 +6410,17 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
64106410 },
64116411 ExpectedOutput : ` # test_instance.example will be destroyed
64126412 - resource "test_instance" "example" {
6413- - ami = (sensitive) -> null
6413+ - ami = (sensitive value ) -> null
64146414 - id = "i-02ae66f368e8518a9" -> null
64156415 - list_field = [
64166416 - "hello",
6417- - (sensitive),
6417+ - (sensitive value ),
64186418 ] -> null
64196419 - map_key = {
64206420 - "breakfast" = 800
6421- - "dinner" = (sensitive)
6421+ - "dinner" = (sensitive value )
64226422 } -> null
6423- - map_whole = (sensitive) -> null
6423+ - map_whole = (sensitive value ) -> null
64246424
64256425 - nested_block_set {
64266426 # At least one attribute in this block is (or was) sensitive,
@@ -6492,7 +6492,7 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
64926492 ),
64936493 ExpectedOutput : ` # test_instance.example must be replaced
64946494-/+ resource "test_instance" "example" {
6495- ~ ami = (sensitive) # forces replacement
6495+ ~ ami = (sensitive value ) # forces replacement
64966496 id = "i-02ae66f368e8518a9"
64976497
64986498 ~ nested_block_set { # forces replacement
@@ -6524,7 +6524,7 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
65246524 ),
65256525 ExpectedOutput : ` # test_instance.example must be replaced
65266526-/+ resource "test_instance" "example" {
6527- ~ ami = (sensitive) # forces replacement
6527+ ~ ami = (sensitive value ) # forces replacement
65286528 id = "i-02ae66f368e8518a9"
65296529 }
65306530` ,
@@ -6567,7 +6567,7 @@ func TestResourceChange_sensitiveVariable(t *testing.T) {
65676567 ExpectedOutput : ` # test_instance.example must be replaced
65686568-/+ resource "test_instance" "example" {
65696569 ~ conn_info = { # forces replacement
6570- ~ password = (sensitive)
6570+ ~ password = (sensitive value )
65716571 # (1 unchanged attribute hidden)
65726572 }
65736573 id = "i-02ae66f368e8518a9"
@@ -6824,7 +6824,7 @@ func TestOutputChanges(t *testing.T) {
68246824 },
68256825 `
68266826 ~ a = 1 -> 2
6827- ~ b = (sensitive)
6827+ ~ b = (sensitive value )
68286828 ~ c = false -> true` ,
68296829 },
68306830 }
0 commit comments