@@ -131,7 +131,7 @@ var _ = Describe("Get", func() {
131131 Eventually (session .Out ).Should (Say ("type: value" ))
132132 Eventually (session .Out ).Should (Say ("value: potatoes" ))
133133 Eventually (session .Out ).Should (Say (`metadata:
134- some: metadata` ))
134+ some: metadata` ))
135135 })
136136
137137 Context ("with --quiet flag" , func () {
@@ -169,8 +169,8 @@ var _ = Describe("Get", func() {
169169 Eventually (session ).Should (Exit (0 ))
170170 contents := string (bytes .TrimSpace (session .Out .Contents ()))
171171 Eventually (contents ).Should (Equal (`versions:
172- - potatoes
173- - tomatoes` ))
172+ - potatoes
173+ - tomatoes` ))
174174 })
175175 })
176176
@@ -231,7 +231,7 @@ tomatoes`))
231231 Eventually (session .Out ).Should (Say ("type: password" ))
232232 Eventually (session .Out ).Should (Say ("value: potatoes" ))
233233 Eventually (session .Out ).Should (Say (`metadata:
234- some: metadata` ))
234+ some: metadata` ))
235235 })
236236
237237 It ("gets a secret by ID" , func () {
@@ -296,16 +296,16 @@ tomatoes`))
296296
297297 Eventually (session ).Should (Exit (0 ))
298298 Eventually (session .Out ).Should (Say (`versions:
299- - id: ` + uuid + `
300- name: my-password
301- type: password
302- value: old-password
303- version_created_at: "` + timestamp + `"
304- - id: ` + uuid + `
305- name: my-password
306- type: password
307- value: new-password
308- version_created_at: "` + timestamp + `"
299+ - id: ` + uuid + `
300+ name: my-password
301+ type: password
302+ value: old-password
303+ version_created_at: "` + timestamp + `"
304+ - id: ` + uuid + `
305+ name: my-password
306+ type: password
307+ value: new-password
308+ version_created_at: "` + timestamp + `"
309309` ))
310310
311311 })
@@ -327,8 +327,8 @@ tomatoes`))
327327 Eventually (session ).Should (Exit (0 ))
328328 contents := string (bytes .TrimSpace (session .Out .Contents ()))
329329 Eventually (contents ).Should (Equal (`versions:
330- - new-password
331- - old-password` ))
330+ - new-password
331+ - old-password` ))
332332 })
333333 })
334334
@@ -351,12 +351,11 @@ tomatoes`))
351351 Eventually (session .Out ).Should (Say ("name: json-secret" ))
352352 Eventually (session .Out ).Should (Say ("type: json" ))
353353 Eventually (session .Out ).Should (Say (`value:
354- an:
355- - array
356- foo: bar
357- nested:
358- a: 1` ))
359-
354+ an:
355+ - array
356+ foo: bar
357+ nested:
358+ a: 1` ))
360359 })
361360
362361 It ("gets a json secret with metadata" , func () {
@@ -375,13 +374,13 @@ tomatoes`))
375374 Eventually (session .Out ).Should (Say ("name: json-secret" ))
376375 Eventually (session .Out ).Should (Say ("type: json" ))
377376 Eventually (session .Out ).Should (Say (`value:
378- an:
379- - array
380- foo: bar
381- nested:
382- a: 1` ))
377+ an:
378+ - array
379+ foo: bar
380+ nested:
381+ a: 1` ))
383382 Eventually (session .Out ).Should (Say (`metadata:
384- some: metadata` ))
383+ some: metadata` ))
385384 })
386385
387386 Context ("with --output-json flag" , func () {
@@ -456,10 +455,10 @@ tomatoes`))
456455 Eventually (session ).Should (Exit (0 ))
457456 contents := string (bytes .TrimSpace (session .Out .Contents ()))
458457 Eventually (contents ).Should (Equal (`an:
459- - array
458+ - array
460459foo: bar
461460nested:
462- a: 1` ))
461+ a: 1` ))
463462 })
464463 })
465464
@@ -478,8 +477,8 @@ nested:
478477 Eventually (session ).Should (Exit (0 ))
479478 contents := string (bytes .TrimSpace (session .Out .Contents ()))
480479 Eventually (contents ).Should (Equal (`versions:
481- - secret: newSecret
482- - secret: oldSecret` ))
480+ - secret: newSecret
481+ - secret: oldSecret` ))
483482 })
484483 })
485484 })
@@ -524,7 +523,7 @@ nested:
524523 Eventually (session .Out ).Should (Say ("certificate: my-cert" ))
525524 Eventually (session .Out ).Should (Say ("private_key: my-priv" ))
526525 Eventually (session .Out ).Should (Say (`metadata:
527- some: metadata` ))
526+ some: metadata` ))
528527 })
529528
530529 Context ("with --key flag" , func () {
@@ -606,12 +605,12 @@ private_key: '----begin----my-priv-----end------'`))
606605
607606 Eventually (session ).Should (Exit (0 ))
608607 Eventually (string (bytes .TrimSpace (session .Out .Contents ()))).Should (Equal (`versions:
609- - ca: '----begin----my-new-ca-----end------'
610- certificate: '----begin----my-new-cert-----end------'
611- private_key: '----begin----my-new-priv-----end------'
612- - ca: '----begin----my-old-ca-----end------'
613- certificate: '----begin----my-old-cert-----end------'
614- private_key: '----begin----my-old-priv-----end------'` ))
608+ - ca: '----begin----my-new-ca-----end------'
609+ certificate: '----begin----my-new-cert-----end------'
610+ private_key: '----begin----my-new-priv-----end------'
611+ - ca: '----begin----my-old-ca-----end------'
612+ certificate: '----begin----my-old-cert-----end------'
613+ private_key: '----begin----my-old-priv-----end------'` ))
615614 })
616615 })
617616
@@ -680,7 +679,7 @@ private_key: |-
680679 Eventually (session .Out ).Should (Say ("private_key: some-private-key" ))
681680 Eventually (session .Out ).Should (Say ("public_key: some-public-key" ))
682681 Eventually (session .Out ).Should (Say (`metadata:
683- some: metadata` ))
682+ some: metadata` ))
684683 })
685684
686685 Context ("with --quiet flag" , func () {
@@ -728,10 +727,10 @@ private_key: |-
728727 Eventually (session ).Should (Exit (0 ))
729728 contents := string (bytes .TrimSpace (session .Out .Contents ()))
730729 Eventually (contents ).Should (Equal (`versions:
731- - private_key: new-private-key
732- public_key: new-public-key
733- - private_key: old-private-key
734- public_key: old-public-key` ))
730+ - private_key: new-private-key
731+ public_key: new-public-key
732+ - private_key: old-private-key
733+ public_key: old-public-key` ))
735734 })
736735 })
737736
@@ -796,7 +795,7 @@ private_key: |-
796795 Eventually (session .Out ).Should (Say (`password_hash: passw0rd-H4\$h` ))
797796 Eventually (session .Out ).Should (Say ("username: my-username" ))
798797 Eventually (session .Out ).Should (Say (`metadata:
799- some: metadata` ))
798+ some: metadata` ))
800799 })
801800
802801 Context ("with --quiet flag" , func () {
0 commit comments