@@ -1551,6 +1551,45 @@ func testAcceptance(
15511551 assertBuildpackOutput := assertions .NewTestBuildpackOutputAssertionManager (t , output )
15521552 assertBuildpackOutput .ReportsBuildStep ("Simple Layers Buildpack" )
15531553 })
1554+
1555+ when ("buildpackage is in a registry" , func () {
1556+ it ("adds the buildpacks to the builder and runs them" , func () {
1557+ h .SkipIf (t , ! pack .SupportsFeature (invoke .PlatformRetries ), "" )
1558+ packageImageName = registryConfig .RepoName ("buildpack-" + h .RandString (8 ))
1559+
1560+ packageTomlPath := generatePackageTomlWithOS (t , assert , pack , tmpDir , "package_for_build_cmd.toml" , imageManager .HostOS ())
1561+ packageImage := buildpacks .NewPackageImage (
1562+ t ,
1563+ pack ,
1564+ packageImageName ,
1565+ packageTomlPath ,
1566+ buildpacks .WithRequiredBuildpacks (
1567+ buildpacks .BpFolderSimpleLayersParent ,
1568+ buildpacks .BpFolderSimpleLayers ,
1569+ ),
1570+ buildpacks .WithPublish (),
1571+ )
1572+
1573+ buildpackManager .PrepareBuildModules (tmpDir , packageImage )
1574+
1575+ output := pack .RunSuccessfully (
1576+ "build" , repoName ,
1577+ "-p" , filepath .Join ("testdata" , "mock_app" ),
1578+ "--buildpack" , packageImageName ,
1579+ )
1580+
1581+ assertOutput := assertions .NewOutputAssertionManager (t , output )
1582+ assertOutput .ReportsAddingBuildpack (
1583+ "simple/layers/parent" ,
1584+ "simple-layers-parent-version" ,
1585+ )
1586+ assertOutput .ReportsAddingBuildpack ("simple/layers" , "simple-layers-version" )
1587+ assertOutput .ReportsSuccessfulImageBuild (repoName )
1588+
1589+ assertBuildpackOutput := assertions .NewTestBuildpackOutputAssertionManager (t , output )
1590+ assertBuildpackOutput .ReportsBuildStep ("Simple Layers Buildpack" )
1591+ })
1592+ })
15541593 })
15551594
15561595 when ("the argument is a buildpackage file" , func () {
0 commit comments