-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dwillist <[email protected]>
- Loading branch information
Showing
14 changed files
with
351 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ package buildpacks | |
import ( | ||
"fmt" | ||
"io/ioutil" | ||
"os" | ||
"path/filepath" | ||
"testing" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A pretty cool asset Ayyyy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just another asset. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Just another-nother asset. |
33 changes: 33 additions & 0 deletions
33
acceptance/testdata/mock_buildpacks/with_assets/all-assets-buildpack/buildpack.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
api = "0.2" | ||
|
||
[buildpack] | ||
id = "all-assets/asset-buildpack" | ||
version = "all-assets-builapck-version" | ||
name = "All Assets Buildpack Buildpack" | ||
|
||
[[stacks]] | ||
id = "pack.test.stack" | ||
|
||
[[assets]] | ||
id = "asset A" | ||
sha256 = "797b3f6bf2b2c10a8299d51dfdbcfed329d3c133fdc7e695beddbe8f70b49da9" | ||
name = "A Asset" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetAURI }}" | ||
version = "1.2.3" | ||
|
||
[[assets]] | ||
id = "asset C" | ||
sha256 = "339b5181dac7c2d01cbbd6fff90f541f0350864f03a02f05faf852baa2826064" | ||
name = "C Asset" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetCURI }}" | ||
version = "1.3.5" | ||
|
||
[[assets]] | ||
id = "asset B" | ||
name = "B Asset" | ||
sha256 = "61eea2ec4053ca25b9bd5d7bebaba48ee5398569aa1da5bc3541cbab1d09b86b" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetBURI }}" | ||
version = "4.5.6" |
14 changes: 14 additions & 0 deletions
14
acceptance/testdata/mock_buildpacks/with_assets/nested-assets-buildpack/buildpack.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
api = "0.2" | ||
|
||
[buildpack] | ||
id = "simple/nested" | ||
version = "nested-version" | ||
name = "Nested Asset Buildpack" | ||
|
||
[[order]] | ||
[[order.group]] | ||
id = "simple/asset-buildpack" | ||
version = "simple-asset-buildpack-version" | ||
[[order.group]] | ||
id = "second-simple/asset-buildpack" | ||
version = "second-simple-asset-buildpack-version" |
26 changes: 26 additions & 0 deletions
26
acceptance/testdata/mock_buildpacks/with_assets/second-simple-buildpack/buildpack.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
api = "0.2" | ||
|
||
[buildpack] | ||
id = "second-simple/asset-buildpack" | ||
version = "second-simple-asset-buildpack-version" | ||
name = "Second Simple Asset Buildpack Buildpack" | ||
|
||
[[stacks]] | ||
id = "pack.test.stack" | ||
|
||
|
||
[[assets]] | ||
id = "asset C" | ||
sha256 = "339b5181dac7c2d01cbbd6fff90f541f0350864f03a02f05faf852baa2826064" | ||
name = "C Asset" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetCURI }}" | ||
version = "1.3.5" | ||
|
||
[[assets]] | ||
id = "asset B repeat" | ||
name = "B Asset Repeat" | ||
sha256 = "61eea2ec4053ca25b9bd5d7bebaba48ee5398569aa1da5bc3541cbab1d09b86b" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetBURI }}" | ||
version = "4.5.6" |
25 changes: 25 additions & 0 deletions
25
acceptance/testdata/mock_buildpacks/with_assets/simple-buildpack/buildpack.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
api = "0.2" | ||
|
||
[buildpack] | ||
id = "simple/asset-buildpack" | ||
version = "simple-asset-buildpack-version" | ||
name = "Simple Asset Buildpack Buildpack" | ||
|
||
[[stacks]] | ||
id = "pack.test.stack" | ||
|
||
[[assets]] | ||
id = "asset A" | ||
sha256 = "797b3f6bf2b2c10a8299d51dfdbcfed329d3c133fdc7e695beddbe8f70b49da9" | ||
name = "A Asset" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetAURI }}" | ||
version = "1.2.3" | ||
|
||
[[assets]] | ||
id = "asset B" | ||
name = "B Asset" | ||
sha256 = "61eea2ec4053ca25b9bd5d7bebaba48ee5398569aa1da5bc3541cbab1d09b86b" | ||
stacks = ["pack.test.stack"] | ||
uri = "{{ .assetBURI }}" | ||
version = "4.5.6" |
Oops, something went wrong.