@@ -16,6 +16,8 @@ import (
1616
1717func TestComputeMetadataMutator (t * testing.T ) {
1818 b := & bundle.Bundle {
19+ RootPath : "parent/my_bundle" ,
20+ SyncRootPath : "parent" ,
1921 Config : config.Root {
2022 Workspace : config.Workspace {
2123 RootPath :
"/Users/[email protected] " ,
@@ -55,9 +57,9 @@ func TestComputeMetadataMutator(t *testing.T) {
5557 },
5658 }
5759
58- bundletest .SetLocation (b , "resources.jobs.my-job-1" , "a/b/c" )
59- bundletest .SetLocation (b , "resources.jobs.my-job-2" , "d/e/f" )
60- bundletest .SetLocation (b , "resources.pipelines.my-pipeline" , "abc" )
60+ bundletest .SetLocation (b , "resources.jobs.my-job-1" , "parent/my_bundle/ a/b/c" )
61+ bundletest .SetLocation (b , "resources.jobs.my-job-2" , "parent/my_bundle/ d/e/f" )
62+ bundletest .SetLocation (b , "resources.pipelines.my-pipeline" , "parent/my_bundle/ abc" )
6163
6264 expectedMetadata := metadata.Metadata {
6365 Version : metadata .Version ,
@@ -79,11 +81,11 @@ func TestComputeMetadataMutator(t *testing.T) {
7981 Resources : metadata.Resources {
8082 Jobs : map [string ]* metadata.Job {
8183 "my-job-1" : {
82- RelativePath : "a/b/c" ,
84+ RelativePath : "my_bundle/ a/b/c" ,
8385 ID : "1111" ,
8486 },
8587 "my-job-2" : {
86- RelativePath : "d/e/f" ,
88+ RelativePath : "my_bundle/ d/e/f" ,
8789 ID : "2222" ,
8890 },
8991 },
0 commit comments