You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Thanks for contributing to the Docker-Selenium project! A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Set basicAuth.embeddedUrl to true (default it is false) to put back the basic auth in GraphQL endpoint (e.g http://admin:[email protected]:4444/graphql). Otherwise, scaler will raise "error": "error requesting selenium grid endpoint: selenium grid returned 401"
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Sensitive information exposure: The changes include handling of basic authentication credentials. While the code doesn't directly expose these credentials, care should be taken to ensure that the basicAuth.embeddedUrl feature doesn't inadvertently expose credentials in logs or other outputs. The security implications of embedding credentials in URLs should be carefully considered and documented.
⚡ Key issues to review
Conditional Logic The new conditional logic for KEDA installation and image setting is complex and may need careful review to ensure it works as intended for all scenarios.
URL Generation The changes to the URL generation logic for basicAuth need to be verified to ensure they correctly handle all cases, especially when basicAuth.embeddedUrl is true.
Why: Using a ternary operator to simplify the URL construction is an effective enhancement that reduces code duplication and improves clarity, making the logic more concise and easier to understand.
9
Maintainability
Extract KEDA image setting logic into a separate function
Consider extracting the KEDA image setting logic into a separate function to improve code readability and maintainability.
Why: Extracting the KEDA image setting logic into a separate function enhances code readability and maintainability by reducing complexity and improving organization.
8
Use variables for common flag combinations to reduce duplication
Consider using variables for common flag combinations to reduce duplication and improve maintainability.
Why: Introducing variables for common flag combinations reduces duplication and enhances maintainability by making the Makefile cleaner and easier to modify in the future.
8
Rename variable to better reflect its purpose
Consider using a more descriptive variable name for TEST_PATCHED_KEDA. A name like USE_CUSTOM_KEDA_IMAGES might better convey its purpose.
Why: The suggestion to rename TEST_PATCHED_KEDA to USE_CUSTOM_KEDA_IMAGES improves code readability by making the variable's purpose clearer, which is beneficial for maintainability.
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.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
A fix for a breaking in change #2401
Fixes #2407
Motivation and Context
If using official KEDA core <= 2.15.1 (or not using a patched version mentioned here - https://github.com/SeleniumHQ/docker-selenium/blob/trunk/.keda/README.md - which means without separate parameters
username
andpassword
for basic auth).Set
basicAuth.embeddedUrl
totrue
(default it isfalse
) to put back the basic auth in GraphQL endpoint (e.g http://admin:[email protected]:4444/graphql). Otherwise, scaler will raise"error": "error requesting selenium grid endpoint: selenium grid returned 401"
Types of changes
Checklist
PR Type
Bug fix, Tests
Description
basicAuth.embeddedUrl
in test scripts and templates to ensure compatibility with older scalers.TEST_PATCHED_KEDA
andBASIC_AUTH_EMBEDDED_URL
for chart testing.Changes walkthrough 📝
chart_test.sh
Add basicAuth and KEDA configuration in test script
tests/charts/make/chart_test.sh
TEST_PATCHED_KEDA
andBASIC_AUTH_EMBEDDED_URL
variables.basicAuth.embeddedUrl
._helpers.tpl
Update URL generation for basicAuth support
charts/selenium-grid/templates/_helpers.tpl
basicAuth.embeddedUrl
is true.Makefile
Integrate basicAuth and KEDA settings in Makefile targets
Makefile
TEST_PATCHED_KEDA
andBASIC_AUTH_EMBEDDED_URL
to chart testtargets.