Skip to content

Commit 093b55f

Browse files
committed
Imports revert
1 parent 350fc2a commit 093b55f

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

internal/remotestate/backend/gcs/config_test.go

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package gcs_test
33
import (
44
"testing"
55

6-
gcsbackend "github.com/gruntwork-io/terragrunt/internal/remotestate/backend/gcs"
6+
gcs "github.com/gruntwork-io/terragrunt/internal/remotestate/backend/gcs"
77
"github.com/gruntwork-io/terragrunt/test/helpers/logger"
88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
@@ -16,80 +16,80 @@ func TestConfig_IsEqual(t *testing.T) {
1616

1717
testCases := []struct { //nolint: govet
1818
name string
19-
cfg gcsbackend.Config
20-
comparableCfg gcsbackend.Config
19+
cfg gcs.Config
20+
comparableCfg gcs.Config
2121
shouldBeEqual bool
2222
}{
2323
{
2424
"equal-both-empty",
25-
gcsbackend.Config{},
26-
gcsbackend.Config{},
25+
gcs.Config{},
26+
gcs.Config{},
2727
true,
2828
},
2929
{
3030
"equal-empty-and-nil",
31-
gcsbackend.Config{},
31+
gcs.Config{},
3232
nil,
3333
true,
3434
},
3535
{
3636
"equal-one-key",
37-
gcsbackend.Config{"foo": "bar"},
38-
gcsbackend.Config{"foo": "bar"},
37+
gcs.Config{"foo": "bar"},
38+
gcs.Config{"foo": "bar"},
3939
true,
4040
},
4141
{
4242
"equal-multiple-keys",
43-
gcsbackend.Config{"foo": "bar", "baz": []string{"a", "b", "c"}, "blah": 123, "bool": true},
44-
gcsbackend.Config{"foo": "bar", "baz": []string{"a", "b", "c"}, "blah": 123, "bool": true},
43+
gcs.Config{"foo": "bar", "baz": []string{"a", "b", "c"}, "blah": 123, "bool": true},
44+
gcs.Config{"foo": "bar", "baz": []string{"a", "b", "c"}, "blah": 123, "bool": true},
4545
true,
4646
},
4747
{
4848
"equal-encrypt-bool-handling",
49-
gcsbackend.Config{"encrypt": true},
50-
gcsbackend.Config{"encrypt": "true"},
49+
gcs.Config{"encrypt": true},
50+
gcs.Config{"encrypt": "true"},
5151
true,
5252
},
5353
{
5454
"equal-general-bool-handling",
55-
gcsbackend.Config{"something": true, "encrypt": true},
56-
gcsbackend.Config{"something": "true", "encrypt": "true"},
55+
gcs.Config{"something": true, "encrypt": true},
56+
gcs.Config{"something": "true", "encrypt": "true"},
5757
true,
5858
},
5959
{
6060
"equal-ignore-gcs-labels",
61-
gcsbackend.Config{"foo": "bar", "gcs_bucket_labels": []map[string]string{{"foo": "bar"}}},
62-
gcsbackend.Config{"foo": "bar"},
61+
gcs.Config{"foo": "bar", "gcs_bucket_labels": []map[string]string{{"foo": "bar"}}},
62+
gcs.Config{"foo": "bar"},
6363
true,
6464
},
6565
{
6666
"unequal-values",
67-
gcsbackend.Config{"foo": "bar"},
68-
gcsbackend.Config{"foo": "different"},
67+
gcs.Config{"foo": "bar"},
68+
gcs.Config{"foo": "different"},
6969
false,
7070
},
7171
{
7272
"unequal-non-empty-cfg-nil",
73-
gcsbackend.Config{"foo": "bar"},
73+
gcs.Config{"foo": "bar"},
7474
nil,
7575
false,
7676
},
7777
{
7878
"unequal-general-bool-handling",
79-
gcsbackend.Config{"something": true},
80-
gcsbackend.Config{"something": "false"},
79+
gcs.Config{"something": true},
80+
gcs.Config{"something": "false"},
8181
false,
8282
},
8383
{
8484
"equal-null-ignored",
85-
gcsbackend.Config{"something": "foo"},
86-
gcsbackend.Config{"something": "foo", "ignored-because-null": nil},
85+
gcs.Config{"something": "foo"},
86+
gcs.Config{"something": "foo", "ignored-because-null": nil},
8787
true,
8888
},
8989
{
9090
"terragrunt-only-configs-remain-intact",
91-
gcsbackend.Config{"something": "foo", "skip_bucket_creation": true},
92-
gcsbackend.Config{"something": "foo"},
91+
gcs.Config{"something": "foo", "skip_bucket_creation": true},
92+
gcs.Config{"something": "foo"},
9393
true,
9494
},
9595
}
@@ -112,60 +112,60 @@ func TestParseExtendedGCSConfig_StringBoolCoercion(t *testing.T) {
112112

113113
testCases := []struct { //nolint: govet
114114
name string
115-
config gcsbackend.Config
116-
check func(t *testing.T, cfg *gcsbackend.ExtendedRemoteStateConfigGCS)
115+
config gcs.Config
116+
check func(t *testing.T, cfg *gcs.ExtendedRemoteStateConfigGCS)
117117
}{
118118
{
119119
"skip-bucket-versioning-string-true",
120-
gcsbackend.Config{
120+
gcs.Config{
121121
"bucket": "my-bucket",
122122
"skip_bucket_versioning": "true",
123123
},
124-
func(t *testing.T, cfg *gcsbackend.ExtendedRemoteStateConfigGCS) {
124+
func(t *testing.T, cfg *gcs.ExtendedRemoteStateConfigGCS) {
125125
t.Helper()
126126
assert.True(t, cfg.SkipBucketVersioning)
127127
},
128128
},
129129
{
130130
"skip-bucket-versioning-string-false",
131-
gcsbackend.Config{
131+
gcs.Config{
132132
"bucket": "my-bucket",
133133
"skip_bucket_versioning": "false",
134134
},
135-
func(t *testing.T, cfg *gcsbackend.ExtendedRemoteStateConfigGCS) {
135+
func(t *testing.T, cfg *gcs.ExtendedRemoteStateConfigGCS) {
136136
t.Helper()
137137
assert.False(t, cfg.SkipBucketVersioning)
138138
},
139139
},
140140
{
141141
"skip-bucket-creation-string-true",
142-
gcsbackend.Config{
142+
gcs.Config{
143143
"bucket": "my-bucket",
144144
"skip_bucket_creation": "true",
145145
},
146-
func(t *testing.T, cfg *gcsbackend.ExtendedRemoteStateConfigGCS) {
146+
func(t *testing.T, cfg *gcs.ExtendedRemoteStateConfigGCS) {
147147
t.Helper()
148148
assert.True(t, cfg.SkipBucketCreation)
149149
},
150150
},
151151
{
152152
"enable-bucket-policy-only-string-true",
153-
gcsbackend.Config{
153+
gcs.Config{
154154
"bucket": "my-bucket",
155155
"enable_bucket_policy_only": "true",
156156
},
157-
func(t *testing.T, cfg *gcsbackend.ExtendedRemoteStateConfigGCS) {
157+
func(t *testing.T, cfg *gcs.ExtendedRemoteStateConfigGCS) {
158158
t.Helper()
159159
assert.True(t, cfg.EnableBucketPolicyOnly)
160160
},
161161
},
162162
{
163163
"native-bool-still-works",
164-
gcsbackend.Config{
164+
gcs.Config{
165165
"bucket": "my-bucket",
166166
"skip_bucket_versioning": true,
167167
},
168-
func(t *testing.T, cfg *gcsbackend.ExtendedRemoteStateConfigGCS) {
168+
func(t *testing.T, cfg *gcs.ExtendedRemoteStateConfigGCS) {
169169
t.Helper()
170170
assert.True(t, cfg.SkipBucketVersioning)
171171
},
@@ -189,7 +189,7 @@ func TestParseExtendedGCSConfig_StringBoolCoercion(t *testing.T) {
189189
func TestParseExtendedGCSConfig_InvalidStringBool(t *testing.T) {
190190
t.Parallel()
191191

192-
cfg := gcsbackend.Config{
192+
cfg := gcs.Config{
193193
"bucket": "my-bucket",
194194
"skip_bucket_versioning": "maybe",
195195
}

0 commit comments

Comments
 (0)