-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase target name to 128 and target controller id to 256 (#849)
* Increase target name to 128 and target controller id to 256 * Fix test failures by using constant NamedEntity.NAME_MAX_SIZE + 1 * Use constant NamedEntity.NAME_MAX_SIZE + 1 for mgmt-resource tests * Add db migration scripts to increase the controllerId and name limit * Fix review issues * Use correct constant field for junit tests * Change Hawkbit documentation url of application-<db>.properties * Add new line at the end of db migration scripts * Update assertion description * Revert copyright years to its creator year * Add DDI-, AMQP- and controller management-tests Signed-off-by: Florian Ruschbaschan <[email protected]>
- Loading branch information
1 parent
568848b
commit f6c0edf
Showing
21 changed files
with
427 additions
and
337 deletions.
There are no files selected for viewing
164 changes: 84 additions & 80 deletions
164
...c/test/java/org/eclipse/hawkbit/integration/AmqpMessageHandlerServiceIntegrationTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
...in/resources/db/migration/DB2/V1_12_12__change_length_of_controller_id_and_name___DB2.sql
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER TABLE sp_distribution_set ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_distribution_set_type ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_distributionset_tag ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_base_software_module ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_rollout ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_rolloutgroup ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_software_module_type ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_target ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_target_filter_query ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
ALTER TABLE sp_target_tag ALTER COLUMN name SET DATA TYPE VARCHAR(128); | ||
|
||
|
||
ALTER TABLE sp_target ALTER COLUMN controller_id SET DATA TYPE VARCHAR(256); |
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
13 changes: 13 additions & 0 deletions
13
...main/resources/db/migration/H2/V1_12_12__change_length_of_controller_id_and_name___H2.sql
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER TABLE sp_distribution_set ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_distribution_set_type ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_distributionset_tag ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_base_software_module ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_rollout ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_rolloutgroup ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_software_module_type ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_target ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_target_filter_query ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_target_tag ALTER COLUMN name VARCHAR(128); | ||
|
||
|
||
ALTER TABLE sp_target ALTER COLUMN controller_id VARCHAR(256); |
13 changes: 13 additions & 0 deletions
13
...esources/db/migration/MYSQL/V1_12_12__change_length_of_controller_id_and_name___MYSQL.sql
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER TABLE sp_distribution_set MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_distribution_set_type MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_distributionset_tag MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_base_software_module MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_rollout MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_rolloutgroup MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_software_module_type MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_target MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_target_filter_query MODIFY name VARCHAR(128); | ||
ALTER TABLE sp_target_tag MODIFY name VARCHAR(128); | ||
|
||
|
||
ALTER TABLE sp_target MODIFY controller_id VARCHAR(256); |
13 changes: 13 additions & 0 deletions
13
...b/migration/SQL_SERVER/V1_12_12__change_length_of_controller_id_and_name___SQL_SERVER.sql
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ALTER TABLE sp_distribution_set ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_distribution_set_type ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_distributionset_tag ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_base_software_module ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_rollout ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_rolloutgroup ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_software_module_type ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_target ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_target_filter_query ALTER COLUMN name VARCHAR(128); | ||
ALTER TABLE sp_target_tag ALTER COLUMN name VARCHAR(128); | ||
|
||
|
||
ALTER TABLE sp_target ALTER COLUMN controller_id VARCHAR(256); |
386 changes: 193 additions & 193 deletions
386
...sitory-jpa/src/test/java/org/eclipse/hawkbit/repository/jpa/ControllerManagementTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.