Commit Graph

989 Commits

Author SHA1 Message Date
René Pfeuffer
e60bea5f08 Simplify scm test parameters 2018-08-03 10:42:47 +02:00
René Pfeuffer
62f8509e85 Introduce new integration test module 2018-08-03 09:38:13 +02:00
René Pfeuffer
fd873877c4 Fix old integration tests for migration period 2018-08-03 09:28:54 +02:00
René Pfeuffer
f0f57de4b5 Remove error prone getByNamespace method
This method does not report missing permissions correctly.
2018-08-03 08:35:55 +02:00
Philipp Czora
80d4130e03 Group Resource now accepts a list of member's names instead of full user objects 2018-08-02 16:03:17 +02:00
Sebastian Sdorra
99ecc8cba2 implemented rest endpoint for repository types 2018-08-02 11:56:35 +02:00
Johannes Schnatterer
7fd944357d Config DTO: Adds namespace strategy 2018-08-02 10:45:59 +02:00
René Pfeuffer
f191f2833d Fix handling of RepositoryIsNotArchivedException 2018-08-02 08:56:03 +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
Sebastian Sdorra
ea17e536f1 change NamespaceStrategy signature to createNamespace(Repository)
This change allows us to implement NamespaceStrategies, such as by type (git, hg, svn) or manual defined.
The DefaultNamespaceStrategy accepts now a predefined namespace and only if no namespace was set the username of the currently logged in user is used.
2018-08-01 09:43:49 +02: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
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
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
b8897b273a do not use IllegalArgumentException for parameter validation 2018-07-30 16:13:17 +02:00
Philipp Czora
66bc8b75c5 Added unit test for authentication resource 2018-07-26 15:04:50 +02:00
Philipp Czora
e1b3efb5ff Fixed unit test 2018-07-26 13:14:08 +02:00
Johannes Schnatterer
df282ee6a9 Merged 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-25 17:15:01 +02:00
Philipp Czora
11e7548d14 Merged heads 2018-07-24 13:42:51 +02:00
Philipp Czora
4352403631 Merged heads 2018-07-24 13:42:25 +02:00
Philipp Czora
3afd560028 Refactored /me-Resource 2018-07-24 13:02:50 +02:00
Sebastian Sdorra
1f60d76f7c fixed failing unit test 2018-07-24 12:56:58 +02:00
Sebastian Sdorra
0b03372ff9 merge with 2.0.0-m3 to have jenkins and sonarqube 2018-07-23 15:36:10 +02:00
Michael Behlendorf
5dca6d402d Unbind security subject after tests 2018-07-16 11:04:47 +02:00
Sebastian Sdorra
a14e9e1182 merge with 2.0.0-m3 2018-07-16 10:36:29 +02:00
Sebastian Sdorra
82da801280 improve DefaultNamespaceStrategy, added tests and javadoc 2018-07-13 12:10:19 +02:00
Michael Behlendorf
0c60df3ac6 Merge branch 2.0.0-m3 into feature/global_config_v2_endpoint 2018-07-13 11:13:43 +02:00
René Pfeuffer
76ad3dfc89 Fix unit test for delete with archive enabled 2018-07-12 11:00:32 +02:00
René Pfeuffer
4e207713bf Introduce ManagerDaoAdapter for create and modify 2018-07-12 10:15:32 +02:00
René Pfeuffer
a1c1bc1042 Merging base branch back into feature 2018-07-11 14:01:17 +02:00
René Pfeuffer
667cc48e08 Map properties of repositories 2018-07-11 13:47:41 +02:00
René Pfeuffer
617b98c6f3 Use optionals for get by name and namespace 2018-07-11 13:42:09 +02:00
Johannes Schnatterer
e1963d45dd Some polishing during review 2018-07-11 12:03:04 +02:00
René Pfeuffer
f3304e6973 Correct sequence of setting and reading namespace for new repository 2018-07-11 08:25:06 +02:00
René Pfeuffer
dc8ecd5689 Adjust to repository storage with id 2018-07-10 15:31:18 +02:00
Michael Behlendorf
8c68a2de24 Implement global config endpoint v2 2018-07-06 14:45:00 +02:00
Michael Behlendorf
50b6b58692 Remove unused code in GroupRootResourceTest 2018-07-06 13:49:42 +02:00
René Pfeuffer
72cc7d9864 Merge base branch into feature 2018-07-05 15:03:18 +02:00
René Pfeuffer
50d9da8726 Merge base branch into feature 2018-07-05 14:56:33 +02:00
René Pfeuffer
b6c618b0b0 Verify that key values are not changed on update 2018-07-05 13:19:49 +02:00
René Pfeuffer
cad793322c Add test for MapperModule 2018-07-05 12:40:19 +02:00
René Pfeuffer
bbce9b7ca2 Use correct namespace of created repository 2018-07-05 12:19:31 +02:00
René Pfeuffer
4bdcb0cae8 Correct uri for create response 2018-07-05 10:58:26 +02:00
René Pfeuffer
e993cebc0d Implement create repository 2018-07-05 10:52:19 +02:00
René Pfeuffer
c2effbe9c5 Implement update and delete for repository 2018-07-05 10:42:09 +02:00
René Pfeuffer
68e196d576 Create resource collection endpoint for get 2018-07-04 16:45:52 +02:00