From 294c0261491c5e569b7cbde7e8be33a57760fbba Mon Sep 17 00:00:00 2001 From: Forest Eckhardt Date: Thu, 7 Nov 2024 16:26:55 +0000 Subject: [PATCH] Updates the supply test to use different buildpack --- fixtures/supply/dotnet_app/Startup.cs | 16 ++++++++-------- src/dotnetcore/integration/supply_test.go | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/fixtures/supply/dotnet_app/Startup.cs b/fixtures/supply/dotnet_app/Startup.cs index 6fbecc16a..96e757333 100644 --- a/fixtures/supply/dotnet_app/Startup.cs +++ b/fixtures/supply/dotnet_app/Startup.cs @@ -11,15 +11,15 @@ public void Configure(IApplicationBuilder app) { app.Run(context => { - var bosh2 = new Process(); - bosh2.StartInfo.FileName = "bosh2"; - bosh2.StartInfo.Arguments = "--version"; - bosh2.StartInfo.RedirectStandardOutput = true; - bosh2.Start(); + var go = new Process(); + go.StartInfo.FileName = "go"; + go.StartInfo.Arguments = "version"; + go.StartInfo.RedirectStandardOutput = true; + go.Start(); - var output = bosh2.StandardOutput.ReadToEnd(); - bosh2.WaitForExit(); - return context.Response.WriteAsync("bosh2: " + output); + var output = go.StandardOutput.ReadToEnd(); + go.WaitForExit(); + return context.Response.WriteAsync("go: " + output); }); } } diff --git a/src/dotnetcore/integration/supply_test.go b/src/dotnetcore/integration/supply_test.go index d96a8b383..1bd795952 100644 --- a/src/dotnetcore/integration/supply_test.go +++ b/src/dotnetcore/integration/supply_test.go @@ -29,15 +29,15 @@ func testSupply(t *testing.T, context spec.G, it spec.S) { it.Before(func() { app = cutlass.New(filepath.Join(settings.FixturesPath, "supply", "dotnet_app")) app.Buildpacks = []string{ - "https://buildpacks.cloudfoundry.org/fixtures/new_supply_bosh2.zip", + "https://github.com/cloudfoundry/go-buildpack/#master", "dotnet_core_buildpack", } }) it("finds the supplied dependency in the runtime container", func() { PushAppAndConfirm(t, app) - Expect(app.Stdout.String()).To(ContainSubstring("SUPPLYING BOSH2")) - Expect(app.GetBody("/")).To(MatchRegexp("bosh2: version 2.0.1-74fad57")) + Expect(app.Stdout.String()).To(ContainSubstring("Installing go")) + Expect(app.GetBody("/")).To(MatchRegexp("go: go version go\\d+.\\d+.\\d+ linux/amd64")) }) }) })