New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JBIDE-22303 Server Adapter: Manually set pod deployment path is ignored #1141
Conversation
Can you update the unit tests for that class, to ensure we don't break that feature in the future? |
@scabanovich #1133 (which was merged) added a test class for the server adapter model that you can add your test to |
Test is added. |
@@ -94,6 +95,17 @@ public void shouldReturnProjectThatHasGitRemoteMatchingBuildConfig() { | |||
assertThat(project).isEqualTo(project2); | |||
} | |||
|
|||
@Test | |||
public void testPodPathProperty() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did these tests really fail before your fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because useInferredPodPath and podPath parameters were not assigned to class fields in update().
This doesn't work: http://screencast.com/t/Typn2W7b2nU |
@@ -378,6 +380,7 @@ private void updateServer(IServerWorkingCopy server) throws OpenShiftException { | |||
String serverName = OpenShiftServerUtils.getServerName(getService(), getConnection()); | |||
String host = getHost(getRoute()); | |||
String routeURL = getRouteURL(isSelectDefaultRoute(), getRoute()); | |||
String podPath = useInferredPodPath ? this.podPath : ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
String podPath = useInferredPodPath ? "" : this.podPath;
No description provided.