Skip to content

Validate SCB Findings in Unit Tests#520

Merged
JohannesZahn merged 36 commits intomainfrom
feature/findings-validation
Jul 20, 2021
Merged

Validate SCB Findings in Unit Tests#520
JohannesZahn merged 36 commits intomainfrom
feature/findings-validation

Conversation

@JohannesZahn
Copy link
Contributor

@JohannesZahn JohannesZahn commented Jun 24, 2021

Description

Validate Findings in Unit Tests. This is not meant to introduce a reasonable findings schema, it simply implements the code to be able to validate the findings. Currently the findings schema is purposly forgiving so all parser pass the test as they are.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure npm test runs for the whole project.
  • Make codeclimate checks happy
  • Introduce findings-schema
  • Validate all Parsers in unit tests
  • Add new field ip_tcp_stack_layer that should replace osi_layer in the future

Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Co-authored-by: Yannik Fuhrmeister <12710254+fuhrmeistery@users.noreply.github.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn force-pushed the feature/findings-validation branch from 44a6aa2 to d5c2b6c Compare June 29, 2021 13:27
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn changed the title Validate Findings Validate Findings in Unit Tests Jul 6, 2021
@JohannesZahn JohannesZahn force-pushed the feature/findings-validation branch from 5fec3fc to deb4bf7 Compare July 6, 2021 12:39
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn added this to the v3.0.0 milestone Jul 13, 2021
@JohannesZahn JohannesZahn marked this pull request as draft July 13, 2021 12:36
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn marked this pull request as ready for review July 14, 2021 06:10
@JohannesZahn JohannesZahn force-pushed the feature/findings-validation branch 2 times, most recently from dcf29e4 to bdf2e61 Compare July 20, 2021 07:19
…dation

Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn force-pushed the feature/findings-validation branch from 67bec78 to 9d521cb Compare July 20, 2021 09:43
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn linked an issue Jul 20, 2021 that may be closed by this pull request
JohannesZahn and others added 4 commits July 20, 2021 13:06
Change import from var to const

Co-authored-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
replace for loop by functional style code

Co-authored-by: Jannik Hollenbach <jannik.hollenbach@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
Signed-off-by: Johannes Zahn <johannes.zahn@iteratec.com>
@JohannesZahn JohannesZahn enabled auto-merge July 20, 2021 14:07
@JohannesZahn JohannesZahn disabled auto-merge July 20, 2021 14:28
Signed-off-by: GitHub Actions <securecodebox@iteratec.com>
@JohannesZahn JohannesZahn force-pushed the feature/findings-validation branch from 8b88cd7 to 82902cf Compare July 20, 2021 14:35
@JohannesZahn JohannesZahn merged commit d0a3c43 into main Jul 20, 2021
@JohannesZahn JohannesZahn deleted the feature/findings-validation branch July 20, 2021 15:00
@rfelber rfelber changed the title Validate Findings in Unit Tests Validate SCB Findings in Unit Tests Aug 8, 2021
@rfelber rfelber added testing Improvements or additions regarding the test setup and removed enhancement New feature or request labels Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

persistence Implement or update a persistence store testing Improvements or additions regarding the test setup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change "OSI Layer" to TCP/IP Layer

4 participants