forked from eclipse-sw360/sw360
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse-sw360#540 from siemens/feat/NewFieldDomain…
…ForProject-539 feat(Projects): Added new field "domain" to project summary tested-by: [email protected] review-by: [email protected]
- Loading branch information
Showing
8 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
import org.eclipse.sw360.datahandler.thrift.projects.ProjectRelationship; | ||
import org.eclipse.sw360.datahandler.thrift.projects.ProjectType; | ||
import org.eclipse.sw360.datahandler.thrift.users.User; | ||
import org.eclipse.sw360.rest.resourceserver.Sw360ResourceServer; | ||
import org.eclipse.sw360.rest.resourceserver.TestHelper; | ||
import org.eclipse.sw360.rest.resourceserver.attachment.Sw360AttachmentService; | ||
import org.eclipse.sw360.rest.resourceserver.licenseinfo.Sw360LicenseInfoService; | ||
|
@@ -118,6 +119,7 @@ public void before() throws TException, IOException { | |
project.setProjectType(ProjectType.PRODUCT); | ||
project.setVersion("1.0.2"); | ||
project.setDescription("Emerald Web provides a suite of components for Critical Infrastructures."); | ||
project.setDomain("Hardware"); | ||
project.setCreatedOn("2016-12-15"); | ||
project.setCreatedBy("[email protected]"); | ||
project.setModerators(new HashSet<>(Arrays.asList("[email protected]", "[email protected]"))); | ||
|
@@ -155,6 +157,7 @@ public void before() throws TException, IOException { | |
project2.setVersion("2.0.1"); | ||
project2.setProjectType(ProjectType.PRODUCT); | ||
project2.setDescription("Orange Web provides a suite of components for documentation."); | ||
project.setDomain("Hardware"); | ||
project2.setCreatedOn("2016-12-17"); | ||
project2.setCreatedBy("[email protected]"); | ||
project2.setBusinessUnit("sw360 EX DF"); | ||
|
@@ -302,6 +305,7 @@ public void should_document_get_project() throws Exception { | |
fieldWithPath("createdOn").description("The date the project was created"), | ||
fieldWithPath("description").description("The project description"), | ||
fieldWithPath("projectType").description("The project type, possible values are: " + Arrays.asList(ProjectType.values())), | ||
fieldWithPath("domain").description("The domain, possible values are:" + Sw360ResourceServer.DOMAIN.toString()), | ||
fieldWithPath("visibility").description("The project visibility, possible values are: " + Arrays.asList(Visibility.values())), | ||
fieldWithPath("businessUnit").description("The business unit this project belongs to"), | ||
fieldWithPath("externalIds").description("When projects are imported from other tools, the external ids can be stored here"), | ||
|
@@ -547,6 +551,7 @@ public void should_document_update_project() throws Exception { | |
fieldWithPath("version").description("The project version"), | ||
fieldWithPath("createdOn").description("The date the project was created"), | ||
fieldWithPath("description").description("The project description"), | ||
fieldWithPath("domain").description("The domain, possible values are:" + Sw360ResourceServer.DOMAIN.toString()), | ||
fieldWithPath("projectType").description("The project type, possible values are: " | ||
+ Arrays.asList(ProjectType.values())), | ||
fieldWithPath("visibility").description("The project visibility, possible values are: " | ||
|