-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide templates and assets #3545
Conversation
5cce323
to
ad4ca93
Compare
ad4ca93
to
27232ad
Compare
- usecases for asset CRUD operations - AssertFile entity + DB parts - assert service - TestUtil enhanced, now a dedicated sub folder can be defined for temporary files - implemented asset storages (+ AbstractSharedVolumeStorage) - introduced asset storage factories
6e1dacb
to
7332704
Compare
- formatted code - wrote unit tests - wrote integration test - wrote DB tests - wrote RESTdoc tests - implemented logic inside asset service - wrote DAUI actions - added missing license headers
f9c63f7
to
eca68d8
Compare
4b7af4c
to
5c13f87
Compare
- it is now ensured on every pds job call, that the assets in storage are same as in db. Same logic for admin create/update operation is used. - improved PDSWebScanJobScenario12IntTest which does now uses templates and assets. The test ensures that the PDS instance will receive the pds template meta data. - changed templateDefinition format. Assets now no longer an array but only one entry. Means we have 1:n relation here from asset to templates and no longer m:n. - added unit tests - introduced TemplateData resolver in commons-model which can be used from PDS and wrapper applications - introduced TemplateData inside SecHub convfiguration file - Template and Asset REST controller are now annotated with profile admin access
5c13f87
to
e346ecf
Compare
- introduced TestAPI.executeResilient which is a short term for executeRunnableAndAcceptAssertionsMaximumTimes(4, runnable, 500); - all time relevant parts inside integration test TemplateScenario1IntTest do now use this for testing
404adcb
to
3f6e709
Compare
- introduced new usecase for PDS job execution (makes it easier for developers to find the relevant parts)
426b7c9
to
d4e4399
Compare
d4e4399
to
68ec5d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, I just found some small parts to change.
Please let me know if I made any false assumptions in my propositions somewhere.
.../src/main/java/com/mercedesbenz/sechub/domain/administration/AdministrationAPIConstants.java
Show resolved
Hide resolved
...ain/java/com/mercedesbenz/sechub/domain/administration/project/ProjectDetailInformation.java
Outdated
Show resolved
Hide resolved
.../main/java/com/mercedesbenz/sechub/domain/administration/project/ProjectTemplateService.java
Outdated
Show resolved
Hide resolved
...s-core/src/main/java/com/mercedesbenz/sechub/commons/core/ConfigurationFailureException.java
Outdated
Show resolved
Hide resolved
sechub-doc/src/docs/asciidoc/documents/shared/snippet/pds-param-template-metadata-syntax.json
Outdated
Show resolved
Hide resolved
...ain/java/com/mercedesbenz/sechub/storage/sharevolume/spring/AbstractSharedVolumeStorage.java
Outdated
Show resolved
Hide resolved
...ain/java/com/mercedesbenz/sechub/storage/sharevolume/spring/AbstractSharedVolumeStorage.java
Outdated
Show resolved
Hide resolved
...b-scan/src/test/java/com/mercedesbenz/sechub/domain/scan/asset/AssetFileInformationTest.java
Outdated
Show resolved
Hide resolved
...b-scan/src/test/java/com/mercedesbenz/sechub/domain/scan/asset/AssetFileInformationTest.java
Outdated
Show resolved
Hide resolved
...b-scan/src/test/java/com/mercedesbenz/sechub/domain/scan/asset/AssetFileInformationTest.java
Outdated
Show resolved
Hide resolved
- added comments - moved from encryption package to own template package (shared kernel) - renamed class SecHubProjectTemplates to SecHubProjectTemplateData - created common logic for assignment and unassignment - wrote tests for ProjectTemplateService
- removed auto wire annotation where not necessary - made some fields final - fixed typos - removed unnecessary log output
a1d5845
to
2260f40
Compare
- randomness test fixed - added tests for not found variants for nextCanceledOrEndedJobsWithEncryptionPoolIdLowerThan - improved tests
2260f40
to
5795a83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me 🚀
This PR