Skip to content
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

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading