Skip to content

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
@abmussani abmussani merged commit 5eb357d into main Jun 25, 2025
11 of 12 checks passed
@abmussani abmussani deleted the hotfix-boxoauth-flaky-test branch June 25, 2025 09:12
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.

4 participants