Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Fix kong version gate
Browse files Browse the repository at this point in the history
  • Loading branch information
shaynevanasperen committed Nov 5, 2019
1 parent 59d3257 commit 68b1d2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Kongverge/Workflow/Workflow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public async Task<int> Execute()
if (version < lowestSupportedVersion)
{
return ExitWithCode.Return(ExitCode.HostVersionNotSupported,
$"This version of Kongverge can only support Kong enterprise from version {lowestSupportedVersion}.x");
$"This version of Kongverge can only support Kong enterprise from version {lowestSupportedVersion}-x");
}
}
else
{
const double lowestSupportedVersion = 1.1;
const double lowestSupportedVersion = 1.4;
if (version < lowestSupportedVersion)
{
return ExitWithCode.Return(ExitCode.HostVersionNotSupported,
Expand Down
8 changes: 4 additions & 4 deletions test/Kongverge.Tests/Workflow/CommonWorkflowScenarios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public void Scenario2() =>
{ "0.36-2-enterprise-edition" },
{ "0.37-1-enterprise-edition" },
{ "0.37-2-enterprise-edition" },
{ "1.1.0" },
{ "1.2.0" },
{ "1.3.0" },
{ "1.4.0" }
{ "1.4.0" },
{ "1.4.2" },
{ "1.5.1" },
{ "1.5.2" }
})
.BDDfy();
}
Expand Down
2 changes: 1 addition & 1 deletion test/Kongverge.Tests/Workflow/WorkflowSteps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected WorkflowSteps()

protected void KongIsNotReachable() => GetMock<IKongAdminReader>().Setup(x => x.GetConfiguration()).Throws<HttpRequestException>();

protected void KongIsReachable() => KongIsReachable("1.1.0");
protected void KongIsReachable() => KongIsReachable("1.4.0");

protected void KongIsReachable(string version) => GetMock<IKongAdminReader>()
.Setup(x => x.GetConfiguration())
Expand Down

0 comments on commit 68b1d2e

Please sign in to comment.