Skip to content

(fix) Flaky BoxOAuth detector test #4199

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

abmussani
Copy link
Contributor

Description:

BoxOauth detectors's pattern test is using random password generator for input which does not guarantees inclusion. This PR make sure that define characters in password generation must follow inclusion. The func GenerateRandomPassword is also used by snowflake test. In this PR, I have moved it to pkg/common/utils.go to avoid code duplication, also added test around it.

Note: The func GenerateRandomPassword is only being used in pattern test. I could not find any better place to put it in except utils.go

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@abmussani abmussani requested a review from a team as a code owner June 3, 2025 11:45
@abmussani abmussani requested a review from shahzadhaider1 June 12, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants