File tree Expand file tree Collapse file tree
internal/cmd/affinity-groups/create Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,6 +121,26 @@ func TestParseInput(t *testing.T) {
121121 },
122122 ),
123123 },
124+ {
125+ description : "fails public project without network area and without billing reference" ,
126+ flagValues : fixtureFlagValues (
127+ func (flagValues map [string ]string ) {
128+ flagValues ["label" ] = "scope=PUBLIC"
129+ delete (flagValues , "network-area-id" )
130+ },
131+ ),
132+ isValid : false ,
133+ },
134+ {
135+ description : "fails public project with empty billing reference" ,
136+ flagValues : fixtureFlagValues (
137+ func (flagValues map [string ]string ) {
138+ flagValues ["label" ] = "scope=PUBLIC,billingReference="
139+ delete (flagValues , "network-area-id" )
140+ },
141+ ),
142+ isValid : false ,
143+ },
124144 }
125145 for _ , tt := range tests {
126146 t .Run (tt .description , func (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments