From e498238e3e4031e5b816837dd3c9add02665e4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=BCller?= Date: Tue, 30 Jul 2019 16:04:04 +0200 Subject: [PATCH] MGR-66 removed IDs from datasources and action, fixed sorting (#12) --- .../conf/datasources/ds-applications.xml | 45 ++--- .../conf/datasources/ds-connections.xml | 11 +- application-home/conf/datasources/ds-jars.xml | 4 +- .../conf/datasources/ds-permissions.xml | 12 +- .../conf/datasources/ds-repositories.xml | 20 +-- .../conf/datasources/ds-resources.xml | 16 +- .../conf/datasources/ds-roles.xml | 12 +- .../conf/datasources/ds-sites.xml | 12 +- .../conf/datasources/ds-subjects.xml | 10 +- .../conf/datasources/ds-templates.xml | 6 +- .../manager/service/ManagerService.java | 1 - .../manager/business/RepositoriesTest.java | 4 +- .../DataBaseConnectionsTest-testOverview.xml | 10 +- .../xml/GroupsTest-testCreateGroup-action.xml | 3 +- .../GroupsTest-testCreateGroupNameExists.xml | 6 +- .../xml/GroupsTest-testShowGroups.xml | 6 +- .../GroupsTest-testShowGroupsFilterName.xml | 158 +++++++++--------- ...GroupsTest-testUpdateAdminGroup-action.xml | 3 +- .../xml/GroupsTest-testUpdateGroup-action.xml | 3 +- .../xml/PermissionsTest-testCreate-action.xml | 6 +- .../PermissionsTest-testCreateNameExists.xml | 6 +- .../PermissionsTest-testShowPermission.xml | 6 - .../PermissionsTest-testShowPermissions.xml | 31 ++-- .../xml/PermissionsTest-testUpdate-action.xml | 12 +- .../PlatformPropertiesTest-testShowAll.xml | 3 +- ...iesTest-testCreateRepositoryNameExists.xml | 3 +- .../RepositoriesTest-testShowRepositories.xml | 25 ++- .../RepositoriesTest-testShowRepository.xml | 8 +- ...toriesTest-testUpdateRepository-action.xml | 8 +- .../xml/RoleTest-testCreate-action.xml | 3 +- .../xml/RoleTest-testCreateNameExists.xml | 6 +- .../resources/xml/RoleTest-testShowAll.xml | 16 +- .../resources/xml/RoleTest-testShowOne.xml | 6 - .../xml/RoleTest-testUpdate-action.xml | 9 +- .../xml/SitesTest-testCreateSite-action.xml | 3 +- ...SitesTest-testCreateSiteValidationFail.xml | 3 +- .../resources/xml/SitesTest-testShowSite.xml | 6 - .../resources/xml/SitesTest-testShowSites.xml | 18 +- .../xml/SubjectsTest-testCreateNameExists.xml | 3 +- .../SubjectsTest-testCreateValidationFail.xml | 3 +- .../xml/SubjectsTest-testShowAll.xml | 10 +- .../xml/SubjectsTest-testShowOne.xml | 6 - .../xml/SubjectsTest-testUpdate-action.xml | 6 - 43 files changed, 202 insertions(+), 346 deletions(-) diff --git a/application-home/conf/datasources/ds-applications.xml b/application-home/conf/datasources/ds-applications.xml index 85640e7..b74cb8a 100644 --- a/application-home/conf/datasources/ds-applications.xml +++ b/application-home/conf/datasources/ds-applications.xml @@ -10,18 +10,15 @@ - - - - + - + @@ -38,14 +35,14 @@ - + edit - + delete @@ -66,9 +63,6 @@ - - - @@ -117,20 +111,23 @@ - - - - - + + + - + + - + + + + + - + @@ -138,7 +135,8 @@ - + edit @@ -162,13 +160,16 @@ - - - + + + + + + diff --git a/application-home/conf/datasources/ds-connections.xml b/application-home/conf/datasources/ds-connections.xml index ba7bfc7..d29805d 100644 --- a/application-home/conf/datasources/ds-connections.xml +++ b/application-home/conf/datasources/ds-connections.xml @@ -16,9 +16,6 @@ - @@ -52,21 +49,21 @@ - + edit - + delete - + start - + reload diff --git a/application-home/conf/datasources/ds-jars.xml b/application-home/conf/datasources/ds-jars.xml index 0889aac..15c82b5 100644 --- a/application-home/conf/datasources/ds-jars.xml +++ b/application-home/conf/datasources/ds-jars.xml @@ -18,7 +18,7 @@ - + @@ -52,7 +52,7 @@ - + diff --git a/application-home/conf/datasources/ds-permissions.xml b/application-home/conf/datasources/ds-permissions.xml index 138769b..eb42769 100644 --- a/application-home/conf/datasources/ds-permissions.xml +++ b/application-home/conf/datasources/ds-permissions.xml @@ -12,11 +12,8 @@ - - - - + @@ -39,7 +36,7 @@ - + edit @@ -47,7 +44,7 @@ + target="/applications/update/${appid}?form_action=delete-permission&permissionid=${current.id}#tab_permissions"> delete @@ -69,9 +66,6 @@ - - - diff --git a/application-home/conf/datasources/ds-repositories.xml b/application-home/conf/datasources/ds-repositories.xml index 855f25d..1fbf5fb 100644 --- a/application-home/conf/datasources/ds-repositories.xml +++ b/application-home/conf/datasources/ds-repositories.xml @@ -27,27 +27,30 @@ - - - + + + + led_orange + + led_green led_red @@ -66,14 +69,14 @@ - + edit - + delete @@ -81,7 +84,7 @@ - + reload @@ -90,7 +93,7 @@ - + deploy @@ -112,9 +115,6 @@ - - - diff --git a/application-home/conf/datasources/ds-resources.xml b/application-home/conf/datasources/ds-resources.xml index efee39e..2f075b6 100644 --- a/application-home/conf/datasources/ds-resources.xml +++ b/application-home/conf/datasources/ds-resources.xml @@ -1,6 +1,5 @@ - @@ -15,16 +14,19 @@ + + + - + + @@ -32,15 +34,13 @@ - + upload - + edit diff --git a/application-home/conf/datasources/ds-roles.xml b/application-home/conf/datasources/ds-roles.xml index 39a4bc8..b2668b2 100644 --- a/application-home/conf/datasources/ds-roles.xml +++ b/application-home/conf/datasources/ds-roles.xml @@ -13,11 +13,8 @@ - - - - + @@ -40,7 +37,7 @@ - + edit @@ -48,7 +45,7 @@ + target="/applications/update/${appid}?form_action=delete-role&roleid=${current.id}#tab_roles"> delete @@ -70,9 +67,6 @@ - - - diff --git a/application-home/conf/datasources/ds-sites.xml b/application-home/conf/datasources/ds-sites.xml index cd8cc89..1e42951 100644 --- a/application-home/conf/datasources/ds-sites.xml +++ b/application-home/conf/datasources/ds-sites.xml @@ -10,9 +10,6 @@ - @@ -56,14 +53,14 @@ - + edit - + delete @@ -71,7 +68,7 @@ - + reload @@ -91,9 +88,6 @@ - - - diff --git a/application-home/conf/datasources/ds-subjects.xml b/application-home/conf/datasources/ds-subjects.xml index 9225b9e..b3fe70e 100644 --- a/application-home/conf/datasources/ds-subjects.xml +++ b/application-home/conf/datasources/ds-subjects.xml @@ -12,9 +12,6 @@ - - - @@ -46,14 +43,14 @@ - + edit - + delete @@ -74,9 +71,6 @@ - - - diff --git a/application-home/conf/datasources/ds-templates.xml b/application-home/conf/datasources/ds-templates.xml index 8260121..81327b9 100644 --- a/application-home/conf/datasources/ds-templates.xml +++ b/application-home/conf/datasources/ds-templates.xml @@ -10,12 +10,8 @@ - - - - - + diff --git a/src/main/java/org/appng/application/manager/service/ManagerService.java b/src/main/java/org/appng/application/manager/service/ManagerService.java index afa1f6e..0c893ff 100644 --- a/src/main/java/org/appng/application/manager/service/ManagerService.java +++ b/src/main/java/org/appng/application/manager/service/ManagerService.java @@ -797,7 +797,6 @@ public DataContainer searchApplications(FieldProcessor fp, Integer siteId, Integ Page applications = siteApplicationRepository.search(searchQuery, pageable); data.setPage(applications); } else { - // page uses wrong property path application.x Page allApplications = applicationRepository.search(pageable); List applications = new ArrayList(); Site site = siteRepository.findOne(siteId); diff --git a/src/test/java/org/appng/application/manager/business/RepositoriesTest.java b/src/test/java/org/appng/application/manager/business/RepositoriesTest.java index 57e74da..66b5b63 100644 --- a/src/test/java/org/appng/application/manager/business/RepositoriesTest.java +++ b/src/test/java/org/appng/application/manager/business/RepositoriesTest.java @@ -80,8 +80,8 @@ public void testShowRepository() throws Exception { siteDatasource.perform("test"); XPathDifferenceHandler differenceListener = new XPathDifferenceHandler(false); + differenceListener.ignoreDifference("/datasource[1]/data[1]/result[1]/field[3]/value[1]/text()[1]"); differenceListener.ignoreDifference("/datasource[1]/data[1]/result[1]/field[4]/value[1]/text()[1]"); - differenceListener.ignoreDifference("/datasource[1]/data[1]/result[1]/field[5]/value[1]/text()[1]"); validate(siteDatasource.getDatasource(), differenceListener); } @@ -109,8 +109,8 @@ public void testUpdateRepository() throws Exception { .withParam(FORM_ACTION, "update").getCallableAction(repoForm); XPathDifferenceHandler differenceListener = new XPathDifferenceHandler(false); + differenceListener.ignoreDifference("/action[1]/data[1]/result[1]/field[3]/value[1]/text()[1]"); differenceListener.ignoreDifference("/action[1]/data[1]/result[1]/field[4]/value[1]/text()[1]"); - differenceListener.ignoreDifference("/action[1]/data[1]/result[1]/field[5]/value[1]/text()[1]"); FieldProcessor fieldProcessor = callableAction.perform(); validate(callableAction.getAction(), "-action", differenceListener); diff --git a/src/test/resources/xml/DataBaseConnectionsTest-testOverview.xml b/src/test/resources/xml/DataBaseConnectionsTest-testOverview.xml index cf29f4f..8b74f49 100644 --- a/src/test/resources/xml/DataBaseConnectionsTest-testOverview.xml +++ b/src/test/resources/xml/DataBaseConnectionsTest-testOverview.xml @@ -13,9 +13,6 @@ - @@ -42,11 +39,11 @@ - + edit - + start @@ -56,9 +53,6 @@ - - 1 - HSQL diff --git a/src/test/resources/xml/GroupsTest-testCreateGroup-action.xml b/src/test/resources/xml/GroupsTest-testCreateGroup-action.xml index bc554b2..cffde54 100644 --- a/src/test/resources/xml/GroupsTest-testCreateGroup-action.xml +++ b/src/test/resources/xml/GroupsTest-testCreateGroup-action.xml @@ -19,8 +19,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens diff --git a/src/test/resources/xml/GroupsTest-testCreateGroupNameExists.xml b/src/test/resources/xml/GroupsTest-testCreateGroupNameExists.xml index b57d7a0..9e1cb9a 100644 --- a/src/test/resources/xml/GroupsTest-testCreateGroupNameExists.xml +++ b/src/test/resources/xml/GroupsTest-testCreateGroupNameExists.xml @@ -19,14 +19,12 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens - A group with that name already - exists! + A group with that name already exists! diff --git a/src/test/resources/xml/GroupsTest-testShowGroups.xml b/src/test/resources/xml/GroupsTest-testShowGroups.xml index e1497b6..734659c 100644 --- a/src/test/resources/xml/GroupsTest-testShowGroups.xml +++ b/src/test/resources/xml/GroupsTest-testShowGroups.xml @@ -74,8 +74,7 @@ delete - Do you really want to delete the group "users"? - + Do you really want to delete the group "users"? @@ -94,8 +93,7 @@ delete - Do you really want to delete the group "admin"? - + Do you really want to delete the group "admin"? diff --git a/src/test/resources/xml/GroupsTest-testShowGroupsFilterName.xml b/src/test/resources/xml/GroupsTest-testShowGroupsFilterName.xml index 5bc8f17..2a2d189 100644 --- a/src/test/resources/xml/GroupsTest-testShowGroupsFilterName.xml +++ b/src/test/resources/xml/GroupsTest-testShowGroupsFilterName.xml @@ -1,81 +1,83 @@ - - Groups - - - - - - admin - - - - - - - - - - - - - - - - - - - - new - - - - - - - - - edit - - - - - - - - delete - Do you really want to delete the group "${current.name}"? - - - - - - - Name - - - - - - admin - - - admins - - - - - edit - - - - delete - Do you really want to delete the group "admin"? - - - - - + + Groups + + + + + + admin + + + + + + + + + + + + + + + + + + + + new + + + + + + + + + edit + + + + + + + + delete + Do you really want to delete the group + "${current.name}"? + + + + + + + Name + + + + + + admin + + + admins + + + + + edit + + + + delete + Do you really want to delete the group "admin"? + + + + + diff --git a/src/test/resources/xml/GroupsTest-testUpdateAdminGroup-action.xml b/src/test/resources/xml/GroupsTest-testUpdateAdminGroup-action.xml index 83324e2..67e81b2 100644 --- a/src/test/resources/xml/GroupsTest-testUpdateAdminGroup-action.xml +++ b/src/test/resources/xml/GroupsTest-testUpdateAdminGroup-action.xml @@ -20,8 +20,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens diff --git a/src/test/resources/xml/GroupsTest-testUpdateGroup-action.xml b/src/test/resources/xml/GroupsTest-testUpdateGroup-action.xml index 7774873..1978657 100644 --- a/src/test/resources/xml/GroupsTest-testUpdateGroup-action.xml +++ b/src/test/resources/xml/GroupsTest-testUpdateGroup-action.xml @@ -20,8 +20,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens diff --git a/src/test/resources/xml/PermissionsTest-testCreate-action.xml b/src/test/resources/xml/PermissionsTest-testCreate-action.xml index fde66f3..ac4c402 100644 --- a/src/test/resources/xml/PermissionsTest-testCreate-action.xml +++ b/src/test/resources/xml/PermissionsTest-testCreate-action.xml @@ -18,8 +18,7 @@ Field must not be empty - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, dots and hyphens @@ -36,8 +35,7 @@ - Permission has been - created. + Permission has been created. diff --git a/src/test/resources/xml/PermissionsTest-testCreateNameExists.xml b/src/test/resources/xml/PermissionsTest-testCreateNameExists.xml index 15e0be3..881da7e 100644 --- a/src/test/resources/xml/PermissionsTest-testCreateNameExists.xml +++ b/src/test/resources/xml/PermissionsTest-testCreateNameExists.xml @@ -18,14 +18,12 @@ Field must not be empty - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, dots and hyphens - A permission with this name - already exists! + A permission with this name already exists! diff --git a/src/test/resources/xml/PermissionsTest-testShowPermission.xml b/src/test/resources/xml/PermissionsTest-testShowPermission.xml index 8eabf2b..076cceb 100644 --- a/src/test/resources/xml/PermissionsTest-testShowPermission.xml +++ b/src/test/resources/xml/PermissionsTest-testShowPermission.xml @@ -6,9 +6,6 @@ 1 - - - @@ -19,9 +16,6 @@ - - 1 - do.this diff --git a/src/test/resources/xml/PermissionsTest-testShowPermissions.xml b/src/test/resources/xml/PermissionsTest-testShowPermissions.xml index 3e65b29..b9cfa9b 100644 --- a/src/test/resources/xml/PermissionsTest-testShowPermissions.xml +++ b/src/test/resources/xml/PermissionsTest-testShowPermissions.xml @@ -9,9 +9,6 @@ 1 - - - @@ -36,8 +33,8 @@ - + @@ -45,7 +42,7 @@ edit + target="/applications/update/1?form_action=delete-permission&permissionid=${current.id}#tab_permissions"> @@ -60,11 +57,8 @@ - - 1 - - do.this + do.that description @@ -73,26 +67,23 @@ application - edit + target="/applications/update/1?form_action=delete-permission&permissionid=2#tab_permissions"> delete Do you really want to delete the permission - "do.this"? + "do.that"? - - 2 - - do.that + do.this description @@ -101,17 +92,17 @@ application - edit + target="/applications/update/1?form_action=delete-permission&permissionid=1#tab_permissions"> delete Do you really want to delete the permission - "do.that"? + "do.this"? diff --git a/src/test/resources/xml/PermissionsTest-testUpdate-action.xml b/src/test/resources/xml/PermissionsTest-testUpdate-action.xml index 3bfb1ab..cb6df44 100644 --- a/src/test/resources/xml/PermissionsTest-testUpdate-action.xml +++ b/src/test/resources/xml/PermissionsTest-testUpdate-action.xml @@ -12,9 +12,6 @@ 1 - - - @@ -22,8 +19,7 @@ Field must not be empty - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, dots and hyphens @@ -40,8 +36,7 @@ - Permission has been - updated. + Permission has been updated. @@ -50,9 +45,6 @@ - - 1 - do.somethingelse diff --git a/src/test/resources/xml/PlatformPropertiesTest-testShowAll.xml b/src/test/resources/xml/PlatformPropertiesTest-testShowAll.xml index 1ed9832..8caad00 100644 --- a/src/test/resources/xml/PlatformPropertiesTest-testShowAll.xml +++ b/src/test/resources/xml/PlatformPropertiesTest-testShowAll.xml @@ -42,8 +42,7 @@ reload - Do you really want to reload the - platform? + Do you really want to reload the platform? diff --git a/src/test/resources/xml/RepositoriesTest-testCreateRepositoryNameExists.xml b/src/test/resources/xml/RepositoriesTest-testCreateRepositoryNameExists.xml index 7d2f336..0f299ed 100644 --- a/src/test/resources/xml/RepositoriesTest-testCreateRepositoryNameExists.xml +++ b/src/test/resources/xml/RepositoriesTest-testCreateRepositoryNameExists.xml @@ -20,8 +20,7 @@ - A repository with this name - already exists! + A repository with this name already exists! diff --git a/src/test/resources/xml/RepositoriesTest-testShowRepositories.xml b/src/test/resources/xml/RepositoriesTest-testShowRepositories.xml index 57a3c84..3f7360e 100644 --- a/src/test/resources/xml/RepositoriesTest-testShowRepositories.xml +++ b/src/test/resources/xml/RepositoriesTest-testShowRepositories.xml @@ -7,27 +7,30 @@ - - - + + + + led_orange + + led_green led_red @@ -46,14 +49,15 @@ - + edit - + @@ -62,7 +66,7 @@ Do you really want to delete the repository "#{name}"? - + @@ -72,7 +76,8 @@ Do you really want to reload the repository "#{name}"? - + @@ -86,9 +91,6 @@ - - 1 - Local @@ -123,9 +125,6 @@ - - 3 - Delete me diff --git a/src/test/resources/xml/RepositoriesTest-testShowRepository.xml b/src/test/resources/xml/RepositoriesTest-testShowRepository.xml index a291657..8fc7632 100644 --- a/src/test/resources/xml/RepositoriesTest-testShowRepository.xml +++ b/src/test/resources/xml/RepositoriesTest-testShowRepository.xml @@ -6,9 +6,6 @@ 1 - - - @@ -54,9 +51,6 @@ - 2019-05-15 10:10:44 + 2019-07-30 15:14:44 file:///home/mm/workspace/appng/appng-manager/target/ diff --git a/src/test/resources/xml/RepositoriesTest-testUpdateRepository-action.xml b/src/test/resources/xml/RepositoriesTest-testUpdateRepository-action.xml index 3936a95..885e343 100644 --- a/src/test/resources/xml/RepositoriesTest-testUpdateRepository-action.xml +++ b/src/test/resources/xml/RepositoriesTest-testUpdateRepository-action.xml @@ -10,9 +10,6 @@ update - - - @@ -76,9 +73,6 @@ - 2019-05-15 10:10:44 + 2019-07-30 15:14:44 file:///home/mm/workspace/appng/appng-manager/target/ diff --git a/src/test/resources/xml/RoleTest-testCreate-action.xml b/src/test/resources/xml/RoleTest-testCreate-action.xml index 4cebdf6..3e58321 100644 --- a/src/test/resources/xml/RoleTest-testCreate-action.xml +++ b/src/test/resources/xml/RoleTest-testCreate-action.xml @@ -20,8 +20,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens diff --git a/src/test/resources/xml/RoleTest-testCreateNameExists.xml b/src/test/resources/xml/RoleTest-testCreateNameExists.xml index 08a1886..0948bb7 100644 --- a/src/test/resources/xml/RoleTest-testCreateNameExists.xml +++ b/src/test/resources/xml/RoleTest-testCreateNameExists.xml @@ -20,14 +20,12 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens - A Role with this name already - exists. + A Role with this name already exists. diff --git a/src/test/resources/xml/RoleTest-testShowAll.xml b/src/test/resources/xml/RoleTest-testShowAll.xml index e4ae538..08f0da6 100644 --- a/src/test/resources/xml/RoleTest-testShowAll.xml +++ b/src/test/resources/xml/RoleTest-testShowAll.xml @@ -10,11 +10,8 @@ - - - - + @@ -37,7 +34,8 @@ - + @@ -45,14 +43,13 @@ edit + target="/applications/update/1?form_action=delete-role&roleid=${current.id}#tab_roles"> delete - Do you - really want to delete the role "#{name}"? + Do you really want to delete the role "#{name}"? @@ -60,9 +57,6 @@ - - 1 - role1 diff --git a/src/test/resources/xml/RoleTest-testShowOne.xml b/src/test/resources/xml/RoleTest-testShowOne.xml index 37db281..4e454c1 100644 --- a/src/test/resources/xml/RoleTest-testShowOne.xml +++ b/src/test/resources/xml/RoleTest-testShowOne.xml @@ -6,9 +6,6 @@ 1 - - - @@ -30,9 +27,6 @@ - - 1 - role1 diff --git a/src/test/resources/xml/RoleTest-testUpdate-action.xml b/src/test/resources/xml/RoleTest-testUpdate-action.xml index f48f88d..c3f5c03 100644 --- a/src/test/resources/xml/RoleTest-testUpdate-action.xml +++ b/src/test/resources/xml/RoleTest-testUpdate-action.xml @@ -11,9 +11,6 @@ 1 - - - @@ -24,8 +21,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers, spaces, dots, underscores and hyphens @@ -62,9 +58,6 @@ - - 1 - role.updated diff --git a/src/test/resources/xml/SitesTest-testCreateSite-action.xml b/src/test/resources/xml/SitesTest-testCreateSite-action.xml index 77a33bf..07a1e65 100644 --- a/src/test/resources/xml/SitesTest-testCreateSite-action.xml +++ b/src/test/resources/xml/SitesTest-testCreateSite-action.xml @@ -19,8 +19,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers and hyphens diff --git a/src/test/resources/xml/SitesTest-testCreateSiteValidationFail.xml b/src/test/resources/xml/SitesTest-testCreateSiteValidationFail.xml index 298d83c..fce1a4e 100644 --- a/src/test/resources/xml/SitesTest-testCreateSiteValidationFail.xml +++ b/src/test/resources/xml/SitesTest-testCreateSiteValidationFail.xml @@ -19,8 +19,7 @@ Enter at most 64 characters - Please enter a valid name, which may only consist of - letters, + Please enter a valid name, which may only consist of letters, numbers and hyphens diff --git a/src/test/resources/xml/SitesTest-testShowSite.xml b/src/test/resources/xml/SitesTest-testShowSite.xml index 7770508..5e6a7ab 100644 --- a/src/test/resources/xml/SitesTest-testShowSite.xml +++ b/src/test/resources/xml/SitesTest-testShowSite.xml @@ -6,9 +6,6 @@ 1 - - - @@ -34,9 +31,6 @@ Template - - 1 - localhost diff --git a/src/test/resources/xml/SitesTest-testShowSites.xml b/src/test/resources/xml/SitesTest-testShowSites.xml index f72e1ce..64aea76 100644 --- a/src/test/resources/xml/SitesTest-testShowSites.xml +++ b/src/test/resources/xml/SitesTest-testShowSites.xml @@ -7,9 +7,6 @@ - @@ -53,23 +50,22 @@ - + edit - + delete - Do you - really want to delete the site "#{name}"? + Do you really want to delete the site "#{name}"? - + @@ -82,9 +78,6 @@ - - 1 - localhost @@ -125,9 +118,6 @@ - - 3 - site2 diff --git a/src/test/resources/xml/SubjectsTest-testCreateNameExists.xml b/src/test/resources/xml/SubjectsTest-testCreateNameExists.xml index b3610c1..161da9b 100644 --- a/src/test/resources/xml/SubjectsTest-testCreateNameExists.xml +++ b/src/test/resources/xml/SubjectsTest-testCreateNameExists.xml @@ -24,8 +24,7 @@ - Another user with this username - already exists. + Another user with this username already exists. diff --git a/src/test/resources/xml/SubjectsTest-testCreateValidationFail.xml b/src/test/resources/xml/SubjectsTest-testCreateValidationFail.xml index e319f7d..49f1130 100644 --- a/src/test/resources/xml/SubjectsTest-testCreateValidationFail.xml +++ b/src/test/resources/xml/SubjectsTest-testCreateValidationFail.xml @@ -89,8 +89,7 @@ - Please confirm - the password. + Please confirm the password. diff --git a/src/test/resources/xml/SubjectsTest-testShowAll.xml b/src/test/resources/xml/SubjectsTest-testShowAll.xml index e6d58cc..dd1c8d8 100644 --- a/src/test/resources/xml/SubjectsTest-testShowAll.xml +++ b/src/test/resources/xml/SubjectsTest-testShowAll.xml @@ -9,9 +9,6 @@ - - - @@ -43,14 +40,14 @@ - + edit - + @@ -77,9 +74,6 @@ - - 1 - admin diff --git a/src/test/resources/xml/SubjectsTest-testShowOne.xml b/src/test/resources/xml/SubjectsTest-testShowOne.xml index a4a6441..c176fcd 100644 --- a/src/test/resources/xml/SubjectsTest-testShowOne.xml +++ b/src/test/resources/xml/SubjectsTest-testShowOne.xml @@ -6,9 +6,6 @@ 1 - - - @@ -571,9 +568,6 @@ - - 1 - admin diff --git a/src/test/resources/xml/SubjectsTest-testUpdate-action.xml b/src/test/resources/xml/SubjectsTest-testUpdate-action.xml index c888486..7c31df0 100644 --- a/src/test/resources/xml/SubjectsTest-testUpdate-action.xml +++ b/src/test/resources/xml/SubjectsTest-testUpdate-action.xml @@ -10,9 +10,6 @@ 1 - - - @@ -610,9 +607,6 @@ - - 1 - admin