File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
internal/cmd/secrets-manager/instance Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -95,13 +95,15 @@ func TestParseInput(t *testing.T) {
95
95
flagValues : map [string ]string {
96
96
projectIdFlag : testProjectId ,
97
97
instanceNameFlag : "" ,
98
+ aclFlag : "" ,
98
99
},
99
100
isValid : true ,
100
101
expectedModel : & inputModel {
101
102
GlobalFlagModel : & globalflags.GlobalFlagModel {
102
103
ProjectId : testProjectId ,
103
104
},
104
105
InstanceName : utils .Ptr ("" ),
106
+ Acls : & []string {},
105
107
},
106
108
},
107
109
{
@@ -121,13 +123,6 @@ func TestParseInput(t *testing.T) {
121
123
model .Acls = nil
122
124
}),
123
125
},
124
- {
125
- description : "acl empty" ,
126
- flagValues : fixtureFlagValues (func (flagValues map [string ]string ) {
127
- flagValues [aclFlag ] = ""
128
- }),
129
- isValid : false ,
130
- },
131
126
{
132
127
description : "repeated acl flags" ,
133
128
flagValues : fixtureFlagValues (),
Original file line number Diff line number Diff line change @@ -127,7 +127,10 @@ func TestParseInput(t *testing.T) {
127
127
projectIdFlag : testProjectId ,
128
128
aclFlag : "" ,
129
129
},
130
- isValid : false ,
130
+ isValid : true ,
131
+ expectedModel : fixtureInputModel (func (model * inputModel ) {
132
+ model .Acls = & []string {}
133
+ }),
131
134
},
132
135
{
133
136
description : "project id missing" ,
You can’t perform that action at this time.
0 commit comments