Skip to content

Commit

Permalink
Added a buildpack test with the Heroku builder (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor authored Jun 4, 2019
1 parent 6673542 commit 8a67090
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions tests/Oryx.Integration.Tests/NodeEndToEndTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ await EndToEndTestHelper.BuildRunAndAssertAppAsync(
});
}

[Fact]
public async Task CanBuildAndRun_NodeApp_WithBuildpack()
[Theory]
[InlineData("oryxdevms/pack-builder")]
[InlineData("heroku/buildpacks")]
public async Task CanBuildAndRun_NodeApp_WithBuildpack(string builder)
{
// Arrange
var appName = "webfrontend";
Expand All @@ -273,9 +275,9 @@ await EndToEndTestHelper.BuildRunAndAssertAppAsync(
new[]
{
"build", appImageName,
"--no-pull", "--no-color",
"--no-color",
"--path", appVolume.ContainerDir,
"--builder", "oryxdevms/pack-builder"
"--builder", builder
},
appImageName,
8080,
Expand Down
2 changes: 1 addition & 1 deletion tests/SampleApps/nodejs/webfrontend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.get('/api', function (req, res) {
res.send('Hello from webfrontend');
});

var port = process.env.PORT || 80;
var port = process.env.PORT || 8080;
var server = app.listen(port, function () {
console.log('Listening on port ' + port);
});
Expand Down

0 comments on commit 8a67090

Please sign in to comment.