Skip to content

Commit

Permalink
Changed 1.1.x version constraints to 2.0.x everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
illyaMs committed Mar 11, 2019
1 parent ecf5744 commit 0b1096f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and services such as requests routing, authentication, rate limiting, etc.
| 3.1.x, 3.2.x | >= 0.9, <0.13 | >= 6.0.0 |
| 3.3.x, 3.4.x | >= 0.9, <0.14 | >= 6.0.0 |
| 3.5.x | >= 0.9, <0.15 | >= 6.0.0 |
| 3.6.x | >= 0.9, <1.1.x | >= 6.0.0 |
| 3.6.x | >= 0.9, <2.0.0 | >= 6.0.0 |

Notes:
* Kong Dashboard 3.3.0 is only partially compatible with Kong 0.13. It does not support the new Service and Route
Expand Down
4 changes: 2 additions & 2 deletions bin/kong-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ function start(argv) {
terminal.error("This version of Kong dashboard doesn't support Kong v0.9 and lower.");
process.exit(1);
}
if (semver.gte(version, '1.1.0')) {
terminal.error("This version of Kong dashboard doesn't support Kong v1.1 and higher.");
if (semver.gte(version, '2.0.0')) {
terminal.error("This version of Kong dashboard doesn't support Kong v2.0 and higher.");
process.exit(1);
}
terminal.success("Connected to Kong on " + argv.kongUrl + ".");
Expand Down
6 changes: 3 additions & 3 deletions tests/cases/plugins/basic-auth.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Basic Auth plugin testing:', () => {
'config': {'hide_credentials': true, 'anonymous': anonymousConsumer.id},
'enabled': true
};
} else if (semver.satisfies(process.env.KONG_VERSION, '>=0.15.0 < 1.1.0')) {
} else if (semver.satisfies(process.env.KONG_VERSION, '>=0.15.0 < 2.0.0')) {
inputs = {
'name': 'basic-auth',
'run_on' : 'first',
Expand Down Expand Up @@ -195,7 +195,7 @@ describe('Basic Auth plugin testing:', () => {
'api_id': 'All',
'config-hide_credentials': true
};
} else if (semver.satisfies(process.env.KONG_VERSION, '>=0.15.0 < 1.1.0')) {
} else if (semver.satisfies(process.env.KONG_VERSION, '>=0.15.0 < 2.0.0')) {
inputs = {
'name': 'basic-auth',
'run_on' : 'first',
Expand All @@ -210,7 +210,7 @@ describe('Basic Auth plugin testing:', () => {
name: 'basic-auth',
config: {hide_credentials: false}
});
} else if (semver.satisfies(process.env.KONG_VERSION, '>=0.15.0 < 1.1.0')) {
} else if (semver.satisfies(process.env.KONG_VERSION, '>=0.15.0 < 2.0.0')) {
Kong.createPlugin({
name: 'basic-auth',
run_on: 'first',
Expand Down
2 changes: 1 addition & 1 deletion tests/cases/sidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Sidebar testing', () => {
if (semver.satisfies(process.env.KONG_VERSION, '0.9.x')) {
expect(Sidebar.getLinkElement('Certificates').isPresent()).toBeFalsy();
}
else if (semver.satisfies(process.env.KONG_VERSION, '>=0.10.0 < 1.1.0')) {
else if (semver.satisfies(process.env.KONG_VERSION, '>=0.10.0 < 2.0.0')) {
expect(Sidebar.getLinkElement('Certificates').isPresent()).toBeTruthy();
}
else {
Expand Down

0 comments on commit 0b1096f

Please sign in to comment.