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

Slighly Refactor scbctl Code Setup To Avoid Issues With Flags During Testing #2533

Merged

Conversation

J12934
Copy link
Member

@J12934 J12934 commented Jun 22, 2024

Description

@Freedisch i've slightly refactored the code so that the tests can use the actual command without redefining it again in the test.

Also added some more test cases and a --name flag to allow user to overwrite the name of the generated scan.

Checklist

  • Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
  • Make sure that all your commits are signed-off and that you are added to the Contributors file.
  • Make sure that all CI finish successfully.
  • Optional (but appreciated): Make sure that all commits are Verified.

J12934 added 8 commits June 22, 2024 20:03
…ition

Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
… 99% of users

Also add some more context to the related error. should hopefully help user understand what wrong there

Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
@J12934 J12934 added testing Improvements or additions regarding the test setup cli Issues regarding the CLI Integration labels Jun 22, 2024
@J12934 J12934 self-assigned this Jun 22, 2024
Copy link

netlify bot commented Jun 22, 2024

Deploy Preview for docs-securecodebox canceled.

Name Link
🔨 Latest commit 89a8cfd
🔍 Latest deploy log https://app.netlify.com/sites/docs-securecodebox/deploys/66771f48f68d6c0008cd0c87

Signed-off-by: Jannik Hollenbach <jannik@hollenbach.de>
@J12934 J12934 changed the title Slighly Refactor Scbctl Code Setup To Avoid Issues With Flags During Testing Slighly Refactor scbctl Code Setup To Avoid Issues With Flags During Testing Jun 22, 2024
@J12934 J12934 requested a review from Freedisch June 24, 2024 14:16
@J12934 J12934 merged commit f96d1b7 into secureCodeBox:main Jun 25, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues regarding the CLI Integration testing Improvements or additions regarding the test setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants