Skip to content

Fix horizon test to correct build failure#9902

Open
nasc17 wants to merge 1 commit into
Azure:mainfrom
nasc17:nasc/horizonUpdateTest521
Open

Fix horizon test to correct build failure#9902
nasc17 wants to merge 1 commit into
Azure:mainfrom
nasc17:nasc/horizonUpdateTest521

Conversation

@nasc17
Copy link
Copy Markdown
Member

@nasc17 nasc17 commented May 27, 2026


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI review requested due to automatic review settings May 27, 2026 22:01
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Breaking Change Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @nasc17,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR removes a hard-coded admin password in HorizonDB CLI scenario tests by generating a per-run password and introducing a shared password prefix constant.

Changes:

  • Add PASSWORD_PREFIX to the test constants module.
  • Generate admin_password via create_random_name(...) instead of using a fixed literal.
  • Update test import list to include PASSWORD_PREFIX.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/horizondb/azext_horizondb/tests/latest/test_horizondb_commands.py Switches admin password from a fixed value to a generated value using a shared prefix.
src/horizondb/azext_horizondb/tests/latest/constants.py Introduces PASSWORD_PREFIX for reuse across tests.

cluster_name = self.create_random_name(CLUSTER_NAME_PREFIX, CLUSTER_NAME_MAX_LENGTH)
admin_user = 'horizonadmin'
admin_password = 'H0riz0nP@ssw0rd!'
admin_password = self.create_random_name(PASSWORD_PREFIX, 20)

# Constants
CLUSTER_NAME_PREFIX = 'horizondbclitest-'
PASSWORD_PREFIX = 'passwordHorizon%'
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 27, 2026

horizon

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