Skip to content
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

Merged
merged 23 commits into from
Dec 6, 2024
Merged

Conversation

@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch 3 times, most recently from 5cce323 to ad4ca93 Compare October 25, 2024 06:12
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch from ad4ca93 to 27232ad Compare October 25, 2024 07:04
@de-jcup de-jcup self-assigned this Oct 25, 2024
@de-jcup de-jcup changed the title Feature 3521 templates and assets Provide templates and assets Oct 25, 2024
- 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
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch 2 times, most recently from 6e1dacb to 7332704 Compare November 11, 2024 09:09
- 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
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch 2 times, most recently from f9c63f7 to eca68d8 Compare November 11, 2024 15:32
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch 3 times, most recently from 4b7af4c to 5c13f87 Compare November 15, 2024 12:05
- 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
@de-jcup de-jcup marked this pull request as draft November 15, 2024 13:38
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch from 5c13f87 to e346ecf Compare November 15, 2024 13:38
- 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
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch from 404adcb to 3f6e709 Compare November 18, 2024 15:00
- introduced new usecase for PDS job execution
  (makes it easier for developers to find the relevant parts)
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch 3 times, most recently from 426b7c9 to d4e4399 Compare November 20, 2024 10:04
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch from d4e4399 to 68ec5d7 Compare November 27, 2024 13:56
@de-jcup de-jcup requested a review from winzj November 29, 2024 10:23
@de-jcup de-jcup marked this pull request as ready for review November 29, 2024 10:24
Copy link
Member

@winzj winzj left a 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.

- 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
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch 2 times, most recently from a1d5845 to 2260f40 Compare December 5, 2024 08:58
- randomness test fixed
- added tests for not found variants for
  nextCanceledOrEndedJobsWithEncryptionPoolIdLowerThan
- improved tests
@de-jcup de-jcup force-pushed the feature-3521-templates-and-assets branch from 2260f40 to 5795a83 Compare December 5, 2024 09:04
@de-jcup de-jcup requested a review from winzj December 5, 2024 09:31
Copy link
Member

@winzj winzj left a 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 🚀

@de-jcup de-jcup merged commit e1510aa into develop Dec 6, 2024
2 checks passed
@de-jcup de-jcup deleted the feature-3521-templates-and-assets branch December 6, 2024 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants