Skip to content

Commit 85fc5dd

Browse files
author
Natalie Arellano
committed
Update test assertions with ignored lines
Signed-off-by: Natalie Arellano <[email protected]>
1 parent 8061a79 commit 85fc5dd

File tree

8 files changed

+18
-6
lines changed

8 files changed

+18
-6
lines changed

content/docs/buildpack-author-guide/create-buildpack/adding-bill-of-materials.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ pack inspect-image test-ruby-app
2121
<!--+- "{{execute}}"+-->
2222
You should see the following:
2323

24-
<!-- test:assert=contains -->
24+
<!-- test:assert=contains;ignore-lines=... -->
2525
```text
2626
Run Images:
2727
cnbs/sample-stack-run:jammy
28+
...
2829
2930
Buildpacks:
3031
ID VERSION HOMEPAGE

content/docs/buildpack-author-guide/create-buildpack/building-blocks-cnb.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ The `pack build` command takes in your Ruby sample app as the `--path` argument
116116

117117
After running the command, you should see that it failed to detect, as the `detect` script is currently written to simply error out.
118118

119-
<!-- test:assert=contains -->
119+
<!-- test:assert=contains;ignore-lines=... -->
120120
```
121121
===> DETECTING
122+
...
122123
err: examples/[email protected] (1)
124+
...
123125
ERROR: No buildpack groups passed detection.
124126
ERROR: failed to detect: buildpack(s) failed with err
125127
```

content/docs/buildpack-author-guide/create-buildpack/caching.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ it will download the gems:
256256
<!-- test:assert=contains;ignore-lines=... -->
257257
```text
258258
===> BUILDING
259+
...
259260
---> Ruby Buildpack
260261
---> Downloading and extracting Ruby
261262
---> Installing gems
@@ -274,6 +275,7 @@ you will see the new caching logic at work during the `BUILDING` phase:
274275
<!-- test:assert=contains;ignore-lines=... -->
275276
```text
276277
===> BUILDING
278+
...
277279
---> Ruby Buildpack
278280
---> Downloading and extracting Ruby
279281
---> Reusing gems

content/docs/buildpack-author-guide/create-buildpack/make-buildpack-configurable.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ pack build test-ruby-app --path ./ruby-sample-app --buildpack ./ruby-buildpack
126126
127127
You will notice that version of Ruby specified in the app's `.ruby-version` file is downloaded.
128128
129-
<!-- test:assert=contains -->
129+
<!-- test:assert=contains;ignore-lines=... -->
130130
```text
131131
===> BUILDING
132+
...
132133
---> Ruby Buildpack
133134
---> Downloading and extracting Ruby 3.1.0
134135
```

katacoda/scenarios/buildpack-author-guide/adding-bill-of-materials.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ pack inspect-image test-ruby-app
1717
```{{execute}}
1818
You should see the following:
1919
20-
<!-- test:assert=contains -->
20+
<!-- test:assert=contains;ignore-lines=... -->
2121
```text
2222
Run Images:
2323
cnbs/sample-stack-run:jammy
24+
...
2425

2526
Buildpacks:
2627
ID VERSION HOMEPAGE

katacoda/scenarios/buildpack-author-guide/building-blocks-cnb.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ The `pack build` command takes in your Ruby sample app as the `--path` argument
109109
110110
After running the command, you should see that it failed to detect, as the `detect` script is currently written to simply error out.
111111
112-
<!-- test:assert=contains -->
112+
<!-- test:assert=contains;ignore-lines=... -->
113113
```
114114
===> DETECTING
115+
...
115116
err: examples/[email protected] (1)
117+
...
116118
ERROR: No buildpack groups passed detection.
117119
ERROR: failed to detect: buildpack(s) failed with err
118120
```

katacoda/scenarios/buildpack-author-guide/caching.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ it will download the gems:
251251
<!-- test:assert=contains;ignore-lines=... -->
252252
```text
253253
===> BUILDING
254+
...
254255
---> Ruby Buildpack
255256
---> Downloading and extracting Ruby
256257
---> Installing gems
@@ -268,6 +269,7 @@ you will see the new caching logic at work during the `BUILDING` phase:
268269
<!-- test:assert=contains;ignore-lines=... -->
269270
```text
270271
===> BUILDING
272+
...
271273
---> Ruby Buildpack
272274
---> Downloading and extracting Ruby
273275
---> Reusing gems

katacoda/scenarios/buildpack-author-guide/make-buildpack-configurable.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ pack build test-ruby-app --path ./ruby-sample-app --buildpack ./ruby-buildpack
122122
123123
You will notice that version of Ruby specified in the app's `.ruby-version` file is downloaded.
124124
125-
<!-- test:assert=contains -->
125+
<!-- test:assert=contains;ignore-lines=... -->
126126
```text
127127
===> BUILDING
128+
...
128129
---> Ruby Buildpack
129130
---> Downloading and extracting Ruby 3.1.0
130131
```

0 commit comments

Comments
 (0)