You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update handling of empty response from latest-package-revision and latest-package-revision-since. Empty map is an acceptable response from latest-package-revision-since. Adresses issue akin to 2641
Copy file name to clipboardExpand all lines: plugin-infra/go-plugin-access/src/com/thoughtworks/go/plugin/access/packagematerial/JsonMessageHandler1_0.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,10 @@ public String requestMessageForLatestRevision(PackageConfiguration packageConfig
Copy file name to clipboardExpand all lines: plugin-infra/go-plugin-access/test/com/thoughtworks/go/plugin/access/packagematerial/JsonMessageHandler1_0Test.java
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,13 @@ public void shouldBuildPackageRevisionFromLatestRevisionResponse() throws Except
assertThat(errorMessageForPackageRevision(""), is("Unable to de-serialize json response. Empty response body"));
273
280
assertThat(errorMessageForPackageRevision("[{\"revision\":\"abc.rpm\"}]"), is("Unable to de-serialize json response. Package revision should be returned as a map"));
274
281
assertThat(errorMessageForPackageRevision("{\"revision\":{}}"), is("Unable to de-serialize json response. Package revision should be of type string"));
275
282
assertThat(errorMessageForPackageRevision("{\"revisionComment\":{}}"), is("Unable to de-serialize json response. Package revision comment should be of type string"));
0 commit comments