@@ -16,7 +16,7 @@ function teardown {
16
16
run aws_get_instance_tags " fake-id" " us-east-1"
17
17
assert_success
18
18
19
- local readonly expected=$( cat << END_HEREDOC
19
+ local -r expected=$( cat << END_HEREDOC
20
20
{
21
21
"Tags": []
22
22
}
@@ -27,16 +27,16 @@ END_HEREDOC
27
27
}
28
28
29
29
@test " aws_get_instance_tags non-empty" {
30
- local readonly tag_key=" foo"
31
- local readonly tag_value=" bar"
30
+ local -r tag_key=" foo"
31
+ local -r tag_value=" bar"
32
32
33
33
local instance_id
34
34
instance_id=$( create_mock_instance_with_tags " $tag_key " " $tag_value " )
35
35
36
36
run aws_get_instance_tags " $instance_id " " us-east-1"
37
37
assert_success
38
38
39
- local readonly expected=$( cat << END_HEREDOC
39
+ local -r expected=$( cat << END_HEREDOC
40
40
{
41
41
"Tags": [
42
42
{
@@ -72,7 +72,7 @@ END_HEREDOC
72
72
run aws_describe_asg " fake-asg-name" " us-east-1"
73
73
assert_success
74
74
75
- local readonly expected=$( cat << END_HEREDOC
75
+ local -r expected=$( cat << END_HEREDOC
76
76
{
77
77
"AutoScalingGroups": []
78
78
}
@@ -83,11 +83,11 @@ END_HEREDOC
83
83
}
84
84
85
85
@test " aws_describe_asg non-empty" {
86
- local readonly asg_name=" foo"
87
- local readonly min_size=1
88
- local readonly max_size=3
89
- local readonly region=" us-east-1"
90
- local readonly azs=" ${region} a"
86
+ local -r asg_name=" foo"
87
+ local -r min_size=1
88
+ local -r max_size=3
89
+ local -r region=" us-east-1"
90
+ local -r azs=" ${region} a"
91
91
92
92
create_mock_asg " $asg_name " " $min_size " " $max_size " " $azs "
93
93
@@ -111,7 +111,7 @@ END_HEREDOC
111
111
run aws_describe_instances_in_asg " fake-asg-name" " us-east-1"
112
112
assert_success
113
113
114
- local readonly expected=$( cat << END_HEREDOC
114
+ local -r expected=$( cat << END_HEREDOC
115
115
{
116
116
"Reservations": []
117
117
}
@@ -122,11 +122,11 @@ END_HEREDOC
122
122
}
123
123
124
124
@test " aws_describe_instances_in_asg non-empty" {
125
- local readonly asg_name=" foo"
126
- local readonly min_size=1
127
- local readonly max_size=3
128
- local readonly region=" us-east-1"
129
- local readonly azs=" ${region} a"
125
+ local -r asg_name=" foo"
126
+ local -r min_size=1
127
+ local -r max_size=3
128
+ local -r region=" us-east-1"
129
+ local -r azs=" ${region} a"
130
130
131
131
create_mock_asg " $asg_name " " $min_size " " $max_size " " $azs "
132
132
@@ -142,7 +142,7 @@ END_HEREDOC
142
142
run aws_get_instances_with_tag " Name" " Value" " us-east-1"
143
143
assert_success
144
144
145
- local readonly expected=$( cat << END_HEREDOC
145
+ local -r expected=$( cat << END_HEREDOC
146
146
{
147
147
"Reservations": []
148
148
}
0 commit comments