@@ -99,6 +99,58 @@ Detection Order (Extensions):
9999 ├ test.bp.two@test.bp.two.version (optional)
100100 └ test.bp.three@test.bp.three.version
101101`
102+ expectedRemoteOutputWithoutExtensions = `
103+ REMOTE:
104+
105+ Description: Some remote description
106+
107+ Created By:
108+ Name: Pack CLI
109+ Version: 1.2.3
110+
111+ Trusted: No
112+
113+ Stack:
114+ ID: test.stack.id
115+
116+ Lifecycle:
117+ Version: 6.7.8
118+ Buildpack APIs:
119+ Deprecated: (none)
120+ Supported: 1.2, 2.3
121+ Platform APIs:
122+ Deprecated: 0.1, 1.2
123+ Supported: 4.5
124+
125+ Run Images:
126+ first/local (user-configured)
127+ second/local (user-configured)
128+ some/run-image
129+ first/default
130+ second/default
131+
132+ Buildpacks:
133+ ID NAME VERSION HOMEPAGE
134+ test.top.nested - test.top.nested.version -
135+ test.nested - http://geocities.com/top-bp
136+ test.bp.one - test.bp.one.version http://geocities.com/cool-bp
137+ test.bp.two - test.bp.two.version -
138+ test.bp.three - test.bp.three.version -
139+
140+ Detection Order:
141+ ├ Group #1:
142+ │ ├ test.top.nested@test.top.nested.version
143+ │ │ └ Group #1:
144+ │ │ ├ test.nested
145+ │ │ │ └ Group #1:
146+ │ │ │ └ test.bp.one@test.bp.one.version (optional)
147+ │ │ ├ test.bp.three@test.bp.three.version (optional)
148+ │ │ └ test.nested.two@test.nested.two.version
149+ │ │ └ Group #2:
150+ │ │ └ test.bp.one@test.bp.one.version (optional)[cyclic]
151+ │ └ test.bp.two@test.bp.two.version (optional)
152+ └ test.bp.three@test.bp.three.version
153+ `
102154
103155 expectedLocalOutput = `
104156LOCAL:
@@ -164,6 +216,60 @@ Detection Order (Extensions):
164216 ├ test.bp.two@test.bp.two.version (optional)
165217 └ test.bp.three@test.bp.three.version
166218`
219+
220+ expectedLocalOutputWithoutExtensions = `
221+ LOCAL:
222+
223+ Description: Some local description
224+
225+ Created By:
226+ Name: Pack CLI
227+ Version: 4.5.6
228+
229+ Trusted: No
230+
231+ Stack:
232+ ID: test.stack.id
233+
234+ Lifecycle:
235+ Version: 4.5.6
236+ Buildpack APIs:
237+ Deprecated: 4.5, 6.7
238+ Supported: 8.9, 10.11
239+ Platform APIs:
240+ Deprecated: (none)
241+ Supported: 7.8
242+
243+ Run Images:
244+ first/local (user-configured)
245+ second/local (user-configured)
246+ some/run-image
247+ first/local-default
248+ second/local-default
249+
250+ Buildpacks:
251+ ID NAME VERSION HOMEPAGE
252+ test.top.nested - test.top.nested.version -
253+ test.nested - http://geocities.com/top-bp
254+ test.bp.one - test.bp.one.version http://geocities.com/cool-bp
255+ test.bp.two - test.bp.two.version -
256+ test.bp.three - test.bp.three.version -
257+
258+ Detection Order:
259+ ├ Group #1:
260+ │ ├ test.top.nested@test.top.nested.version
261+ │ │ └ Group #1:
262+ │ │ ├ test.nested
263+ │ │ │ └ Group #1:
264+ │ │ │ └ test.bp.one@test.bp.one.version (optional)
265+ │ │ ├ test.bp.three@test.bp.three.version (optional)
266+ │ │ └ test.nested.two@test.nested.two.version
267+ │ │ └ Group #2:
268+ │ │ └ test.bp.one@test.bp.one.version (optional)[cyclic]
269+ │ └ test.bp.two@test.bp.two.version (optional)
270+ └ test.bp.three@test.bp.three.version
271+ `
272+
167273 expectedVerboseStack = `
168274Stack:
169275 ID: test.stack.id
@@ -184,10 +290,6 @@ Run Images:
184290 expectedEmptyBuildpacks = `
185291Buildpacks:
186292 (none)
187- `
188- expectedEmptyExtensions = `
189- Extensions:
190- (none)
191293`
192294 expectedEmptyOrder = `
193295Detection Order:
@@ -508,7 +610,7 @@ REMOTE:
508610 })
509611
510612 when ("no extensions are specified" , func () {
511- it ("displays extensions as (none)" , func () {
613+ it ("displays no extensions as (none)" , func () {
512614 localInfo .Extensions = []dist.ModuleInfo {}
513615 remoteInfo .Extensions = []dist.ModuleInfo {}
514616
@@ -518,7 +620,9 @@ REMOTE:
518620 err := humanReadableWriter .Print (logger , localRunImages , localInfo , remoteInfo , nil , nil , sharedBuilderInfo )
519621 assert .Nil (err )
520622
521- assert .Contains (outBuf .String (), expectedEmptyExtensions )
623+ assert .Contains (outBuf .String (), "Inspecting builder: 'test-builder'" )
624+ assert .Contains (outBuf .String (), expectedRemoteOutputWithoutExtensions )
625+ assert .Contains (outBuf .String (), expectedLocalOutputWithoutExtensions )
522626 })
523627 })
524628
0 commit comments