@@ -31,9 +31,9 @@ func TestUpdateAppCommand_Run(t *testing.T) {
3131 Description : & description ,
3232 MaturityLevel : & maturityLevel ,
3333 BusinessCriticality : & businessCriticality ,
34- Labels : & map [ string ] string {
35- "environment" : "production" ,
36- "region" : "us-east" ,
34+ Labels : & []model. LabelEntry {
35+ { Key : "environment" , Value : "production" } ,
36+ { Key : "region" , Value : "us-east" } ,
3737 },
3838 UserOwners : & []string {"JohnD" , "Dave Rice" },
3939 GroupOwners : & []string {"DevOps" },
@@ -67,9 +67,9 @@ func TestUpdateAppCommand_Run_Error(t *testing.T) {
6767 Description : & description ,
6868 MaturityLevel : & maturityLevel ,
6969 BusinessCriticality : & businessCriticality ,
70- Labels : & map [ string ] string {
71- "environment" : "production" ,
72- "region" : "us-east" ,
70+ Labels : & []model. LabelEntry {
71+ { Key : "environment" , Value : "production" } ,
72+ { Key : "region" , Value : "us-east" } ,
7373 },
7474 UserOwners : & []string {"JohnD" , "Dave Rice" },
7575 GroupOwners : & []string {"DevOps" },
@@ -127,7 +127,7 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
127127 expectsPayload : & model.AppDescriptor {
128128 ApplicationKey : "app-key" ,
129129 LabelUpdates : & model.LabelUpdates {
130- Add : []model.LabelKeyValue {
130+ Add : []model.LabelEntry {
131131 {Key : "environment" , Value : "production" },
132132 },
133133 },
@@ -142,7 +142,7 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
142142 expectsPayload : & model.AppDescriptor {
143143 ApplicationKey : "app-key" ,
144144 LabelUpdates : & model.LabelUpdates {
145- Add : []model.LabelKeyValue {
145+ Add : []model.LabelEntry {
146146 {Key : "environment" , Value : "production" },
147147 {Key : "region" , Value : "us-east" },
148148 },
@@ -158,7 +158,7 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
158158 expectsPayload : & model.AppDescriptor {
159159 ApplicationKey : "app-key" ,
160160 LabelUpdates : & model.LabelUpdates {
161- Add : []model.LabelKeyValue {
161+ Add : []model.LabelEntry {
162162 {Key : "environment" , Value : "production" },
163163 {Key : "environment" , Value : "staging" },
164164 {Key : "region" , Value : "us-east" },
@@ -175,7 +175,7 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
175175 expectsPayload : & model.AppDescriptor {
176176 ApplicationKey : "app-key" ,
177177 LabelUpdates : & model.LabelUpdates {
178- Remove : []model.LabelKeyValue {
178+ Remove : []model.LabelEntry {
179179 {Key : "infra-version" , Value : "v1.0" },
180180 },
181181 },
@@ -190,7 +190,7 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
190190 expectsPayload : & model.AppDescriptor {
191191 ApplicationKey : "app-key" ,
192192 LabelUpdates : & model.LabelUpdates {
193- Remove : []model.LabelKeyValue {
193+ Remove : []model.LabelEntry {
194194 {Key : "infra-version" , Value : "v1.0" },
195195 {Key : "region" , Value : "us-west" },
196196 },
@@ -207,12 +207,12 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
207207 expectsPayload : & model.AppDescriptor {
208208 ApplicationKey : "app-key" ,
209209 LabelUpdates : & model.LabelUpdates {
210- Add : []model.LabelKeyValue {
210+ Add : []model.LabelEntry {
211211 {Key : "environment" , Value : "production" },
212212 {Key : "environment" , Value : "staging" },
213213 {Key : "region" , Value : "us-east" },
214214 },
215- Remove : []model.LabelKeyValue {
215+ Remove : []model.LabelEntry {
216216 {Key : "infra-version" , Value : "v1.0" },
217217 {Key : "region" , Value : "us-west" },
218218 },
@@ -246,10 +246,10 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
246246 Description : stringPtr ("Updated description" ),
247247 MaturityLevel : stringPtr ("production" ),
248248 LabelUpdates : & model.LabelUpdates {
249- Add : []model.LabelKeyValue {
249+ Add : []model.LabelEntry {
250250 {Key : "environment" , Value : "production" },
251251 },
252- Remove : []model.LabelKeyValue {
252+ Remove : []model.LabelEntry {
253253 {Key : "old-label" , Value : "old-value" },
254254 },
255255 },
@@ -282,7 +282,7 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
282282 expectsPayload : & model.AppDescriptor {
283283 ApplicationKey : "app-key" ,
284284 LabelUpdates : & model.LabelUpdates {
285- Add : []model.LabelKeyValue {
285+ Add : []model.LabelEntry {
286286 {Key : "key1" , Value : "value1" },
287287 {Key : "key2" , Value : "value2" },
288288 },
@@ -299,8 +299,8 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
299299 expectsPayload : & model.AppDescriptor {
300300 ApplicationKey : "app-key" ,
301301 LabelUpdates : & model.LabelUpdates {
302- Add : []model.LabelKeyValue {},
303- Remove : []model.LabelKeyValue {
302+ Add : []model.LabelEntry {},
303+ Remove : []model.LabelEntry {
304304 {Key : "key" , Value : "value" },
305305 },
306306 },
@@ -316,10 +316,10 @@ func TestUpdateAppCommand_FlagsSuite(t *testing.T) {
316316 expectsPayload : & model.AppDescriptor {
317317 ApplicationKey : "app-key" ,
318318 LabelUpdates : & model.LabelUpdates {
319- Add : []model.LabelKeyValue {
319+ Add : []model.LabelEntry {
320320 {Key : "key" , Value : "value" },
321321 },
322- Remove : []model.LabelKeyValue {},
322+ Remove : []model.LabelEntry {},
323323 },
324324 },
325325 },
0 commit comments