[config] sort config:show by key name

resolves: #3293
This commit is contained in:
Alex Quick
2018-10-27 15:35:40 -04:00
parent ba4db261ba
commit 34efbbd570
3 changed files with 25 additions and 3 deletions

View File

@@ -56,6 +56,7 @@ func TestExport(t *testing.T) {
Expect(e.Export(ExportFormatDockerArgs)).To(Equal("--env=BAR='BAZ' --env=BAZ='a\nb' --env=FOO='b'\\''ar '"))
Expect(e.Export(ExportFormatShell)).To(Equal("BAR='BAZ' BAZ='a\nb' FOO='b'\\''ar '"))
Expect(e.Export(ExportFormatExports)).To(Equal("export BAR='BAZ'\nexport BAZ='a\nb'\nexport FOO='b'\\''ar '"))
Expect(e.Export(ExportFormatPretty)).To(Equal("BAR: BAZ\nBAZ: a\nb\nFOO: b'ar"))
}
func TestGet(t *testing.T) {