Skip to content

Commit dbc5874

Browse files
author
Chris Wiechmann
committed
Changelog and unit tests fixed
#141
1 parent ee1d492 commit dbc5874

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.3.5] 2020-11-29
8+
### Added
9+
- Support set the API-Manager REST-API basepath (See issue [#141](https://github.com/Axway-API-Management-Plus/apim-cli/issues/141))
10+
711
## [1.3.4] 2020-11-27
812
### Fixed
913
- java.lang.ClassCastException when trying to change an API (See issue [#131](https://github.com/Axway-API-Management-Plus/apim-cli/issues/131))

modules/apim-adapter/src/test/java/com/axway/lib/CoreCLIOptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ public void testAPIBasePathParam() throws ParseException, AppException {
104104
CLIOptions options = SampleCLIOptions.create(args);
105105
CoreParameters params = (CoreParameters) options.getParams();
106106

107-
Assert.assertEquals(params.getAPIManagerURL(), "https://my-manager:8075/fr/apim/v13/portal");
107+
Assert.assertEquals(params.getApiBasepath(), "/fr/apim/v13/portal");
108108
}
109109
}

modules/apim-adapter/src/test/java/com/axway/lib/CoreParametersTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ public void testAPIBasepath() {
6363
params.setHostname("manager.host");
6464
Assert.assertEquals(params.getApiBasepath(), CoreParameters.DEFAULT_API_BASEPATH);
6565

66-
params.setPort(443);
67-
Assert.assertEquals(params.getAPIManagerURL(), "https://manager.host:443"+CoreParameters.DEFAULT_API_BASEPATH);
68-
6966
params.setApiBasepath("/fr/apim/v13/portal");
70-
Assert.assertEquals(params.getAPIManagerURL(), "https://manager.host:443/fr/apim/v13/portal");
67+
Assert.assertEquals(params.getApiBasepath(), "/fr/apim/v13/portal");
7168
}
7269
}

0 commit comments

Comments
 (0)