-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Quantum] Show required parameters in CLI Reference documentation #5130
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
82d6786
Flag required params in workspace commands
7378c6d
Fix azdev style violations
8b6e153
Restore _params.py
e561aef
Apply configured_default to workspace_name_type
47f1cde
Delete required=False on workspace_name_type
ccc2515
Show more parameters as Required
4b5042b
Show job parameters as Required
10902c2
Show target parameters as Required
eb7b529
Fix output of az quantum target show
d168641
Delete commented-out lines
1d12c9a
Go back to using show_command for job and target
4882655
Add required parameters in help examples
a88c931
Delete help example and trailing whitespace
e36337d
Add test_job_errors
8c6d505
Add unit tests
7a35d0a
Delete unused imports and commented-out code
10f22cc
Delete more unused imports and commented-out code
a173e10
Empty commit to trigger CI/CD check pipeline (like /azp run)
e9787a4
Remove capsys from tests
705ce75
Ensure test failure if command with missing parameters doesn’t fail
dfcb55a
Add comment about TODO in utils.py
9a017cb
Revise the 'az quantum target show' error message
ed2c6fb
Restore version number to 0.16.0
d6d8c1d
Correct 'az quantum workspace delete' help example
2c722d9
Modify help example to pass CLI Linter check
240a5e8
Add note to help example for consistency with related example
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
21 changes: 21 additions & 0 deletions
21
src/quantum/azext_quantum/tests/latest/test_quantum_offerings.py
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # -------------------------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # -------------------------------------------------------------------------------------------- | ||
|
|
||
| import pytest | ||
|
|
||
| from azure.cli.testsdk import ScenarioTest | ||
| from .utils import issue_cmd_with_param_missing | ||
|
|
||
|
|
||
| class QuantumOfferingsScenarioTest(ScenarioTest): | ||
|
|
||
| # @pytest.fixture(autouse=True) | ||
| # def _pass_fixtures(self, capsys): | ||
| # self.capsys = capsys | ||
| # # See "TODO" in issue_cmd_with_param_missing un utils.py | ||
|
|
||
| def test_offerings_errors(self): | ||
| issue_cmd_with_param_missing(self, "az quantum offerings accept-terms", "az quantum offerings accept-terms -p MyProviderId -k MySKU -l MyLocation\nOnce terms have been reviewed, accept the invoking this command.") | ||
| issue_cmd_with_param_missing(self, "az quantum offerings show-terms", "az quantum offerings show-terms -p MyProviderId -k MySKU -l MyLocation\nUse a Provider Id and SKU from `az quantum offerings list` to review the terms.") |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.