Skip to content

Commit

Permalink
Merge pull request #2150 from toshiba/release/create_package_linked_r…
Browse files Browse the repository at this point in the history
…elease

fix(package): Create package by API can't link release

Reviewed by: [email protected]
Tested by: [email protected]
  • Loading branch information
ag4ums authored Oct 26, 2023
2 parents e95dc4f + f748c7c commit 08aa966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ static abstract class ComponentMixin extends Component {
"setHomepageUrl",
"setVcs",
"setPackageManager",
"releaseId",
"setRelease",
"setPackageType"
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ public void should_document_get_packages_with_all_details() throws Exception {
fieldWithPath("_embedded.sw360:packages.[]vcs").description("VCS(Version Control System) is the URL of the source code"),
fieldWithPath("_embedded.sw360:packages.[]homepageUrl").description("URL of the package website"),
fieldWithPath("_embedded.sw360:packages.[]licenseIds").description("The associated licenses").optional(),
fieldWithPath("_embedded.sw360:packages.[]releaseId").description("The associated release").optional(),
fieldWithPath("_embedded.sw360:packages.[]description").description("Description of the package"),
subsectionWithPath("_embedded.sw360:packages.[]_embedded.sw360:release").description("The release to which the package is linked").optional(),
subsectionWithPath("_embedded.sw360:packages.[]_embedded.createdBy").description("The user who created this component"),
Expand Down Expand Up @@ -258,6 +259,7 @@ public void should_document_get_package() throws Exception {
fieldWithPath("vcs").description("VCS(Version Control System) is the URL of the source code"),
fieldWithPath("homepageUrl").description("URL of the package website"),
fieldWithPath("licenseIds").description("The associated licenses"),
fieldWithPath("releaseId").description("The associated release"),
fieldWithPath("description").description("Description of the package"),
subsectionWithPath("_links").description("<<resources-index-links,Links>> to other resources"),
subsectionWithPath("_embedded.sw360:release").description("The release to which the package is linked"),
Expand Down Expand Up @@ -356,7 +358,7 @@ public void should_document_create_package() throws Exception {
pkg.put("vcs", "git+https://github.com/angular/angular.js.git");
pkg.put("homepageUrl", "https://github.com/angular/angular-sanitize");
pkg.put("licenseIds", licenseIds);
pkg.put("releaseId", "69da0e106074ab7b3856df5fbc3e");
pkg.put("releaseId", "98745");
pkg.put("description", "Sanitizes a html string by stripping all potentially dangerous tokens.");

String accessToken = TestHelper.getAccessToken(mockMvc, testUserId, testUserPassword);
Expand Down Expand Up @@ -389,6 +391,7 @@ public void should_document_create_package() throws Exception {
fieldWithPath("vcs").description("VCS(Version Control System) is the URL of the source code"),
fieldWithPath("homepageUrl").description("URL of the package website"),
fieldWithPath("licenseIds").description("The associated licenses"),
fieldWithPath("releaseId").description("The associated release"),
fieldWithPath("description").description("Description of the package"),
subsectionWithPath("_links").description("<<resources-index-links,Links>> to other resources"),
subsectionWithPath("_embedded.sw360:release").description("The release to which the package is linked"),
Expand Down Expand Up @@ -423,6 +426,7 @@ public void should_document_update_package() throws Exception {
fieldWithPath("vcs").description("VCS(Version Control System) is the URL of the source code"),
fieldWithPath("homepageUrl").description("URL of the package website"),
fieldWithPath("licenseIds").description("The associated licenses"),
fieldWithPath("releaseId").description("The associated release"),
fieldWithPath("description").description("Description of the package"),
subsectionWithPath("_links").description("<<resources-index-links,Links>> to other resources"),
subsectionWithPath("_embedded.sw360:release").description("The release to which the package is linked"),
Expand Down

0 comments on commit 08aa966

Please sign in to comment.