-
Notifications
You must be signed in to change notification settings - Fork 65
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
Handle binaries and sourcecode data section parts at PDS and SecHub side #1316
Merged
de-jcup
merged 19 commits into
develop
from
feature-1167-handle-binaries-on-PDS-server-side
Jun 1, 2022
Merged
Handle binaries and sourcecode data section parts at PDS and SecHub side #1316
de-jcup
merged 19 commits into
develop
from
feature-1167-handle-binaries-on-PDS-server-side
Jun 1, 2022
Conversation
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
- Introduce apache commons compress library for tar archives # 1167 - implementing PDSTarSupport which archive inspection and filtering inclusive path transformation
de-jcup
changed the title
Start implementing support for binaries on PDS side #1167
Handle binaries and sourcecode data section parts at PDS and SecHub side
May 9, 2022
- replaced PDSScanType with ScanType - moved new and old archive parts for #1167 to sechub-commons-archive
- to make things easier Tar and ZipSupport are now both inside ArchiveSupport - also integrated PDSFileUnzipSupport into ArchiveSupport - moved test resources for tar and zipfile to new gradle sub project
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
May 11, 2022 06:20
17298cf
to
f34d4c0
Compare
- implemented transformation while extracting same logic used for TAR and ZIP - some refactoring/renaming - simplified some parts - added tests - added special logging for sechub client execution on integration tests: elapsed time is now calculated and shown
- introduced id inside mock adapter configuration class - changed log behaviour for mock adapters - changed IntegrationTestMockMode so the currently used variants will use the "zero wait" definitions instead - reduced times to wait inside adapters - changed behavior of role checking mechanism inside integration test framework - some integration test methods did run very long but did execute the same action, only tests were different. So integrated them into one test, so much faster because precondition checks, scenario intialization and action to test are done only one time and then all tests happens. time
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
May 13, 2022 15:30
f34d4c0
to
d9169a3
Compare
- some minor changes - created new gradle task `cleanIntegrationTestData` and integrated in to `integrationtest` task so will be executed on every server build automaticaly and ensures growing ids are always reset - Growing scenarios abstract implementation does now create main prefix automatically - added test case - every `CleanScenario` has been changed to `GrowingScenario` and inherits now AbstractGrowingSecHubServerTestScenario
- Introducing marker interfaces for tests being necessary for separating documentation and "normal" integration tests. - Implemented separation automation for test execution
- for the integration tests for binary scans with PDS it was necessary to have a better overview of the current profiles and test scenarios
- refactored adapter config strategies, introduced two interfaces without generics, simplifed much - Every PDS executor does now use the PDSAdapterConfigurationStrategy so we have one central configuration option for all common PDS parts - The integration tests fails because green is returned, but no longer execution exceptions
- to avoid implementing always same builder logic for every PDS adapter a refactoring was done: - PDSAdapterConfigData is contained by every PDSAdapterConfig variant. PDS relevant config data is stored there now. - PDSAdapterConfiguratoris also contained now in every pds adapter config variant and is used for configuration by common PDSAdapterConfigurationStrategy - The data and the configuration is implemented in one class: PDSAdapterDataConfigurator - documented PDS adapter configuration in architecture concepts
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
May 25, 2022 06:25
916178f
to
fc23c0c
Compare
- renamed also the assertSechubReport parts to assertReportUnordered and removed deprecation. Reason: we still need this. because integration pds script tests which do a filewalk and return multiple results can have different orderings. And than we need still the old implementation. (we could change this later to the new object based approach as well) - fixed flaky access level test - enhanced test api
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
May 25, 2022 07:25
fc23c0c
to
3390eca
Compare
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
May 25, 2022 10:00
d622c6a
to
5386162
Compare
- documentation - minor changes - added missing spdx headers
winzj
requested changes
May 31, 2022
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 to me. A lot of useful changes and improvements added with this pull request.
I found some smaller things that might need some changes. Please look at my comments for detailed information.
...ub-adapter-pds/src/main/java/com/mercedesbenz/sechub/adapter/pds/PDSAdapterConfigurator.java
Show resolved
Hide resolved
...ub-commons-archive/src/main/java/com/mercedesbenz/sechub/commons/archive/ArchiveSupport.java
Show resolved
Hide resolved
sechub-developertools/scripts/container/postgres/postgresql.conf
Outdated
Show resolved
Hide resolved
sechub-doc/src/docs/asciidoc/diagrams/diagram_pds_adapter_configuration_overview.puml
Show resolved
Hide resolved
sechub-doc/src/docs/asciidoc/documents/shared/concepts/concept_archive_extraction.adoc
Outdated
Show resolved
Hide resolved
...integrationtest/src/main/java/com/mercedesbenz/sechub/integrationtest/internal/MockData.java
Outdated
Show resolved
Hide resolved
sechub-pds/src/main/java/com/mercedesbenz/sechub/pds/UploadSizeConfiguration.java
Outdated
Show resolved
Hide resolved
sechub-scan/src/main/java/com/mercedesbenz/sechub/domain/scan/product/ProductExecutorData.java
Outdated
Show resolved
Hide resolved
sechub-sereco/src/test/resources/nessus/nessus_7.0.2.result.xml
Outdated
Show resolved
Hide resolved
sechub-testframework/src/main/java/com/mercedesbenz/sechub/test/TestURLBuilder.java
Outdated
Show resolved
Hide resolved
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
June 1, 2022 14:14
5253ff8
to
c6f99aa
Compare
- removed unnecessary /irritating javadoc - marked method as deprecated - reverted unnecessary replacement of "archive" to "tar" - updated apply-header.sh so plantuml and puml files do now have spdx headers automatically as well - fixed typos - removed duplicated diagram - changed upload size variables for PDS - improved javadoc - renamed variables
de-jcup
force-pushed
the
feature-1167-handle-binaries-on-PDS-server-side
branch
from
June 1, 2022 14:15
c6f99aa
to
ce0ac1f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR handles most parts from #729. It ...
binaries.tar
with data secion parts on PDS server side #1167sourcecode.zip
with data section parts on PDS server side #1319sechub-commons-archive
#1323