Commit Graph

4811 Commits

Author SHA1 Message Date
Johannes Schnatterer
730c2ae358 Adds test for HgConfigAutoConfigurationResource, its DTO and mappers. 2018-08-06 17:39:05 +02:00
Johannes Schnatterer
45e48e1834 Adds test for HgConfigInstallationsResource, its DTO and mappers. 2018-08-06 17:00:50 +02:00
Johannes Schnatterer
7d59975c80 Adds test for HgConfigPackageResource, its DTO and mappers. 2018-08-06 16:21:46 +02:00
Johannes Schnatterer
c371369032 Maven: Don't package ces-build-lib into plugins. 2018-08-06 14:09:24 +02:00
Johannes Schnatterer
3d13d8ad1c Introduces assertJ for more efficient and maintainable testing. 2018-08-06 14:08:57 +02:00
Johannes Schnatterer
d327298bd1 Adds jackson2 resteasy provider to plugins for testing.
Otherwise the tests using Resteasy mocks will fail with:
"org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object"
2018-08-06 13:47:04 +02:00
Johannes Schnatterer
fc0676d511 Moves jackson annotations dependency to core.
Will be needed by plugins in future.
2018-08-06 12:57:44 +02:00
Johannes Schnatterer
0179cc3369 Adds profile for rest docs to plugins module.
It's redundant (also configured in webapp) but would fail the core
build if activated.
2018-08-06 11:52:31 +02:00
Johannes Schnatterer
a07c9c18dd Gets rid of redundant dependency declarations in plugins and webapp.
It's better to define the "web"/REST dependencies that are used by
plugins once in core, instead of redundant in webapp and plugins.
This should create better awareness when changing the dependency version
(changing in core is always critical due to API downward compatibility).
2018-08-06 11:36:08 +02:00
Johannes Schnatterer
b65a8c6b8d Implements Hg Config Sub Resources 2018-08-02 18:36:28 +02:00
Johannes Schnatterer
7107d14bce Makes BaseMapper and CollectionToDtoMapper available for plugins 2018-08-02 18:33:36 +02:00
Johannes Schnatterer
1c52b33229 Brings mapstruct processor back to plugin and webapp. 2018-08-02 15:22:41 +02:00
Johannes Schnatterer
8c8d908378 Config Resource DTO Mappers: Make use of BaseMapper.
More DRY.
2018-08-02 15:03:30 +02:00
Johannes Schnatterer
e28faf3029 Create CollectionToDtoMapper in core module.
See commit 689e5ae95645768b024dee52c10451c944a41527.
Useful for hg plugin.
2018-08-02 14:45:04 +02:00
Johannes Schnatterer
62087521be Config Resources: Makes permission names publicly available 2018-08-02 14:16:26 +02:00
Johannes Schnatterer
988dfbd689 Config Resources: Makes REST API docs for 403 more precise 2018-08-02 13:21:07 +02:00
Johannes Schnatterer
982d502203 Config Resources: Gets rid of unnecessary UriInfo param 2018-08-02 13:18:21 +02:00
Johannes Schnatterer
54354590ac SvnPlugin Config: Adds v2 endpoint 2018-08-02 13:04:06 +02:00
Johannes Schnatterer
8b16a0251a VndMedia Type classes: Adds private constructor 2018-08-02 13:02:43 +02:00
Johannes Schnatterer
f20865c658 HgPlugin Config: Minor corrections 2018-08-02 11:56:06 +02:00
Johannes Schnatterer
31540a7ecc Makes REST API doc for config endpoints more precise 2018-08-02 11:52:30 +02:00
Johannes Schnatterer
eee325e185 HgPlugin Config: Adds v2 endpoint 2018-08-02 10:59:34 +02:00
Johannes Schnatterer
79f807e809 Git Plugin Config: Gets rid of maven warning.
Mapstruct "attributes" not mapped -> Field of HAL base class should be
ignored.
2018-08-02 10:53:13 +02:00
Johannes Schnatterer
7fd944357d Config DTO: Adds namespace strategy 2018-08-02 10:45:59 +02:00
Johannes Schnatterer
94582554ca Git Plugin Config: Adds test for empty config 2018-08-01 16:29:37 +02:00
Johannes Schnatterer
aed70d3544 Git Plugin Config: Create fine-grained configuration permissions.
No more hard-coded isAdmin() checks.
Also adds more tests.
2018-08-01 16:21:05 +02:00
Johannes Schnatterer
86af96bd83 GitConfigResourceTest: Realizes missing asserts 2018-08-01 15:34:17 +02:00
Johannes Schnatterer
fc77ae3a47 Adapts tests to new GitResource URL 2018-08-01 15:15:07 +02:00
Johannes Schnatterer
59b60d104c GitConfigDto: Use camel case, get rid of base class.
There's no parent module for a shared SimpleRepositoryConfigDto for git,
hg and svn. scm-plugins and core are too generic.
The redundancy (one property) does not hurt too much right now.
2018-08-01 14:44:42 +02:00
Johannes Schnatterer
0592e70bc6 Make also LinkBuilder's methods and inner classes accessible for plugins 2018-08-01 14:42:41 +02:00
Johannes Schnatterer
48e940e496 Changes URL for new Git config to /config/git.
Fits well with "global" config available at /config
2018-08-01 14:13:45 +02:00
Johannes Schnatterer
4910744e1d Make LinkBuilder accessible for plugins 2018-08-01 14:13:10 +02:00
Johannes Schnatterer
7c8fee5640 Move Mapper binding to GitServletModule 2018-08-01 14:11:27 +02:00
Johannes Schnatterer
02327b55f3 Makes pom.xmls more DRY 2018-08-01 11:42:40 +02:00
Johannes Schnatterer
35231fb202 Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-08-01 10:30:38 +02:00
René Pfeuffer
44d96f29ad Initialize missing user database at startup 2018-08-01 09:59:23 +02:00
Johannes Schnatterer
b27f4c277c Merged in feature/global_config_v2_endpoint (pull request #51)
Feature/global config v2 endpoint
2018-07-31 14:25:49 +00:00
Johannes Schnatterer
4dc905d49a Close branch feature/global_config_v2_endpoint 2018-07-31 14:25:49 +00:00
Johannes Schnatterer
c3b7703f2b Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-31 16:21:40 +02:00
Johannes Schnatterer
865929b328 Renames globalConfig to config.
From an SCMM point of view there is only one config, so no "global" necessary.
The others configs are provided by plugins.
2018-07-31 14:47:15 +02:00
Johannes Schnatterer
1db45a7892 Updates Shiro Static Permission to deterministic version.
Contains PR that can generate interfaces.
2018-07-31 14:42:47 +02:00
Johannes Schnatterer
ca93735514 Return no content on PUT /config 2018-07-31 14:14:21 +02:00
Johannes Schnatterer
912dea6d6e Simplifies GlobalConfigDto.
Use camel case everywhere and no XML annotation.
2018-07-31 14:13:41 +02:00
Johannes Schnatterer
9aaca22942 DTO Config Mapper: Adds tests for all properties 2018-07-31 13:43:43 +02:00
Johannes Schnatterer
c7ce170513 Config DTO Mapper: Adds tests for all properties 2018-07-31 13:18:27 +02:00
Sebastian Sdorra
54b47ae74b merge with branch feature/ui-for-scm2 2018-07-31 08:28:40 +02:00
Sebastian Sdorra
9d7a76ed62 close branch feature/ui-for-scm2 2018-07-31 08:21:52 +02:00
Johannes Schnatterer
7572580ac1 Create fine-grained configuration permissions.
No more hard-coded isAdmin() checks.
2018-07-30 17:41:00 +02:00
Philipp Czora
ea5ef13cfb Added tests for AuthenticationResource 2018-07-30 17:07:22 +02:00
Sebastian Sdorra
dc0ed6b695 remove legacy exception handling from AuthenticationResource 2018-07-30 16:19:21 +02:00